Documentation ¶
Overview ¶
Package api is a generated protocol buffer package.
It is generated from these files:
github.com/tomogoma/authms/api/users.proto
It has these top-level messages:
UserName UserType VerifLogin Facebook Group Device User GetDetailsReq
Index ¶
- func RegisterUsersHandler(s server.Server, hdlr UsersHandler, opts ...server.HandlerOption)
- type Device
- func (*Device) Descriptor() ([]byte, []int)
- func (m *Device) GetCreated() string
- func (m *Device) GetDeviceID() string
- func (m *Device) GetID() string
- func (m *Device) GetLastUpdated() string
- func (m *Device) GetUserID() string
- func (*Device) ProtoMessage()
- func (m *Device) Reset()
- func (m *Device) String() string
- type Facebook
- func (*Facebook) Descriptor() ([]byte, []int)
- func (m *Facebook) GetCreated() string
- func (m *Facebook) GetFacebookID() string
- func (m *Facebook) GetID() string
- func (m *Facebook) GetLastUpdated() string
- func (m *Facebook) GetUserID() string
- func (m *Facebook) GetVerified() bool
- func (*Facebook) ProtoMessage()
- func (m *Facebook) Reset()
- func (m *Facebook) String() string
- type GetDetailsReq
- type Group
- func (*Group) Descriptor() ([]byte, []int)
- func (m *Group) GetAccessLevel() float32
- func (m *Group) GetCreated() string
- func (m *Group) GetID() string
- func (m *Group) GetLastUpdated() string
- func (m *Group) GetName() string
- func (*Group) ProtoMessage()
- func (m *Group) Reset()
- func (m *Group) String() string
- type Guard
- type Key
- type KeyGenerator
- type KeyStore
- type Option
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetCreated() string
- func (m *User) GetDevices() []*Device
- func (m *User) GetEmail() *VerifLogin
- func (m *User) GetFacebook() *Facebook
- func (m *User) GetGroups() []*Group
- func (m *User) GetID() string
- func (m *User) GetJWT() string
- func (m *User) GetLastUpdated() string
- func (m *User) GetPhone() *VerifLogin
- func (m *User) GetType() *UserType
- func (m *User) GetUsername() *UserName
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- type UserName
- func (*UserName) Descriptor() ([]byte, []int)
- func (m *UserName) GetCreated() string
- func (m *UserName) GetID() string
- func (m *UserName) GetLastUpdated() string
- func (m *UserName) GetUserID() string
- func (m *UserName) GetValue() string
- func (*UserName) ProtoMessage()
- func (m *UserName) Reset()
- func (m *UserName) String() string
- type UserType
- type Users
- type UsersClient
- type UsersHandler
- type VerifLogin
- func (*VerifLogin) Descriptor() ([]byte, []int)
- func (m *VerifLogin) GetCreated() string
- func (m *VerifLogin) GetID() string
- func (m *VerifLogin) GetLastUpdated() string
- func (m *VerifLogin) GetUserID() string
- func (m *VerifLogin) GetValue() string
- func (m *VerifLogin) GetVerified() bool
- func (*VerifLogin) ProtoMessage()
- func (m *VerifLogin) Reset()
- func (m *VerifLogin) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUsersHandler ¶
func RegisterUsersHandler(s server.Server, hdlr UsersHandler, opts ...server.HandlerOption)
Types ¶
type Device ¶
type Device struct { ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"` UserID string `protobuf:"bytes,2,opt,name=userID" json:"userID,omitempty"` DeviceID string `protobuf:"bytes,3,opt,name=deviceID" json:"deviceID,omitempty"` Created string `protobuf:"bytes,4,opt,name=created" json:"created,omitempty"` LastUpdated string `protobuf:"bytes,5,opt,name=lastUpdated" json:"lastUpdated,omitempty"` }
func (*Device) Descriptor ¶
func (*Device) GetCreated ¶
func (*Device) GetDeviceID ¶
func (*Device) GetLastUpdated ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
type Facebook ¶
type Facebook struct { ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"` UserID string `protobuf:"bytes,2,opt,name=userID" json:"userID,omitempty"` FacebookID string `protobuf:"bytes,3,opt,name=facebookID" json:"facebookID,omitempty"` Verified bool `protobuf:"varint,4,opt,name=verified" json:"verified,omitempty"` Created string `protobuf:"bytes,5,opt,name=created" json:"created,omitempty"` LastUpdated string `protobuf:"bytes,6,opt,name=lastUpdated" json:"lastUpdated,omitempty"` }
func (*Facebook) Descriptor ¶
func (*Facebook) GetCreated ¶
func (*Facebook) GetFacebookID ¶
func (*Facebook) GetLastUpdated ¶
func (*Facebook) GetVerified ¶
func (*Facebook) ProtoMessage ¶
func (*Facebook) ProtoMessage()
type GetDetailsReq ¶
type GetDetailsReq struct { APIKey string `protobuf:"bytes,1,opt,name=APIKey" json:"APIKey,omitempty"` JWT string `protobuf:"bytes,2,opt,name=JWT" json:"JWT,omitempty"` UserID string `protobuf:"bytes,3,opt,name=userID" json:"userID,omitempty"` }
func (*GetDetailsReq) Descriptor ¶
func (*GetDetailsReq) Descriptor() ([]byte, []int)
func (*GetDetailsReq) GetAPIKey ¶
func (m *GetDetailsReq) GetAPIKey() string
func (*GetDetailsReq) GetJWT ¶
func (m *GetDetailsReq) GetJWT() string
func (*GetDetailsReq) GetUserID ¶
func (m *GetDetailsReq) GetUserID() string
func (*GetDetailsReq) ProtoMessage ¶
func (*GetDetailsReq) ProtoMessage()
func (*GetDetailsReq) Reset ¶
func (m *GetDetailsReq) Reset()
func (*GetDetailsReq) String ¶
func (m *GetDetailsReq) String() string
type Group ¶
type Group struct { ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` AccessLevel float32 `protobuf:"fixed32,3,opt,name=accessLevel" json:"accessLevel,omitempty"` Created string `protobuf:"bytes,4,opt,name=created" json:"created,omitempty"` LastUpdated string `protobuf:"bytes,5,opt,name=lastUpdated" json:"lastUpdated,omitempty"` }
func (*Group) Descriptor ¶
func (*Group) GetAccessLevel ¶
func (*Group) GetCreated ¶
func (*Group) GetLastUpdated ¶
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
type Guard ¶
type Guard struct { errors.ClErrCheck errors.AuthErrCheck // contains filtered or unexported fields }
type KeyGenerator ¶
type Option ¶
type Option func(*Guard)
func WithKeyGenerator ¶
func WithKeyGenerator(kg KeyGenerator) Option
func WithMasterKey ¶
type User ¶
type User struct { ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"` JWT string `protobuf:"bytes,2,opt,name=JWT" json:"JWT,omitempty"` Type *UserType `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"` Username *UserName `protobuf:"bytes,4,opt,name=username" json:"username,omitempty"` Phone *VerifLogin `protobuf:"bytes,5,opt,name=phone" json:"phone,omitempty"` Email *VerifLogin `protobuf:"bytes,6,opt,name=email" json:"email,omitempty"` Facebook *Facebook `protobuf:"bytes,7,opt,name=facebook" json:"facebook,omitempty"` Groups []*Group `protobuf:"bytes,8,rep,name=groups" json:"groups,omitempty"` Devices []*Device `protobuf:"bytes,9,rep,name=devices" json:"devices,omitempty"` Created string `protobuf:"bytes,10,opt,name=created" json:"created,omitempty"` LastUpdated string `protobuf:"bytes,11,opt,name=lastUpdated" json:"lastUpdated,omitempty"` }
func (*User) Descriptor ¶
func (*User) GetCreated ¶
func (*User) GetDevices ¶
func (*User) GetEmail ¶
func (m *User) GetEmail() *VerifLogin
func (*User) GetFacebook ¶
func (*User) GetLastUpdated ¶
func (*User) GetPhone ¶
func (m *User) GetPhone() *VerifLogin
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
type UserName ¶
type UserName struct { ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"` UserID string `protobuf:"bytes,2,opt,name=userID" json:"userID,omitempty"` Value string `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"` Created string `protobuf:"bytes,4,opt,name=created" json:"created,omitempty"` LastUpdated string `protobuf:"bytes,5,opt,name=lastUpdated" json:"lastUpdated,omitempty"` }
func (*UserName) Descriptor ¶
func (*UserName) GetCreated ¶
func (*UserName) GetLastUpdated ¶
func (*UserName) ProtoMessage ¶
func (*UserName) ProtoMessage()
type UserType ¶
type UserType struct { ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Created string `protobuf:"bytes,3,opt,name=created" json:"created,omitempty"` LastUpdated string `protobuf:"bytes,4,opt,name=lastUpdated" json:"lastUpdated,omitempty"` }
func (*UserType) Descriptor ¶
func (*UserType) GetCreated ¶
func (*UserType) GetLastUpdated ¶
func (*UserType) ProtoMessage ¶
func (*UserType) ProtoMessage()
type UsersClient ¶
type UsersClient interface {
GetDetails(ctx context.Context, in *GetDetailsReq, opts ...client.CallOption) (*User, error)
}
func NewUsersClient ¶
func NewUsersClient(serviceName string, c client.Client) UsersClient
type UsersHandler ¶
type UsersHandler interface {
GetDetails(context.Context, *GetDetailsReq, *User) error
}
type VerifLogin ¶
type VerifLogin struct { ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"` UserID string `protobuf:"bytes,2,opt,name=userID" json:"userID,omitempty"` Value string `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"` Verified bool `protobuf:"varint,4,opt,name=verified" json:"verified,omitempty"` Created string `protobuf:"bytes,5,opt,name=created" json:"created,omitempty"` LastUpdated string `protobuf:"bytes,6,opt,name=lastUpdated" json:"lastUpdated,omitempty"` }
func (*VerifLogin) Descriptor ¶
func (*VerifLogin) Descriptor() ([]byte, []int)
func (*VerifLogin) GetCreated ¶
func (m *VerifLogin) GetCreated() string
func (*VerifLogin) GetID ¶
func (m *VerifLogin) GetID() string
func (*VerifLogin) GetLastUpdated ¶
func (m *VerifLogin) GetLastUpdated() string
func (*VerifLogin) GetUserID ¶
func (m *VerifLogin) GetUserID() string
func (*VerifLogin) GetValue ¶
func (m *VerifLogin) GetValue() string
func (*VerifLogin) GetVerified ¶
func (m *VerifLogin) GetVerified() bool
func (*VerifLogin) ProtoMessage ¶
func (*VerifLogin) ProtoMessage()
func (*VerifLogin) Reset ¶
func (m *VerifLogin) Reset()
func (*VerifLogin) String ¶
func (m *VerifLogin) String() string
Click to show internal directories.
Click to hide internal directories.