Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLocalUserApi ¶
func NewRpcUserClient ¶
func NewRpcUserClient(discovery *service_discovery.ServiceDiscoveryClientConfig) *rpcUserClient
Types ¶
type Instance ¶
type Instance func() UserFacade
type UserFacade ¶
type UserFacade interface { Initialize(config string) error GetUser(id int32) (*mtproto.User, error) GetUserList(idList []int32) ([]*mtproto.User, error) GetUserByPhoneNumber(phone string) (*mtproto.User, error) CheckPhoneNumberExist(phoneNumber string) bool CheckBannedByPhoneNumber(phoneNumber string) bool }
func NewUserFacade ¶
func NewUserFacade(name, config string) (inst UserFacade, err error)
Click to show internal directories.
Click to hide internal directories.