Documentation ¶
Index ¶
- func DecodePageToken(ptoken string) (offset, limit int32, err error)
- func EncodePageToken(offset, limit int32) string
- func NewContactsServer(database *gorm.DB) (pb.ContactsServer, error)
- func NewGroupsServer(database *gorm.DB) (pb.GroupsServer, error)
- func NewProfilesServer(database *gorm.DB) (pb.ProfilesServer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePageToken ¶
DecodePageToken decodes page token from the user's request. Return error if provided token is malformed or contains ivalid values, otherwise return offset, limit.
func EncodePageToken ¶
EncodePageToken encodes offset and limit to a string in application specific format (offset:limit) in base64 encoding.
func NewContactsServer ¶
func NewContactsServer(database *gorm.DB) (pb.ContactsServer, error)
NewContactsServer returns an instance of the default contacts server interface
func NewGroupsServer ¶
func NewGroupsServer(database *gorm.DB) (pb.GroupsServer, error)
NewGroupsServer returns an instance of the default groups server interface
func NewProfilesServer ¶
func NewProfilesServer(database *gorm.DB) (pb.ProfilesServer, error)
NewProfilesServer returns an instance of the default profiles server interface
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.