svc

package
v0.0.0-...-2502acc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePageToken

func DecodePageToken(ptoken string) (offset, limit int32, err error)

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

func EncodePageToken(offset, limit int32) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL