What is the function of the proteins in the cell membrane?

They act as channel proteins, carrier proteins or are purely structural.