Documentation ¶
Index ¶
- func ConvertEntityToProto(entity *Entity) *authenticator_pb.Entity
- type Authenticator
- func (auth *Authenticator) Authenticate(appID string, token []byte) (*Entity, error)
- func (auth *Authenticator) Connect(host string, options *core.Options) error
- func (auth *Authenticator) CreateEntity(entity *Entity) error
- func (auth *Authenticator) DeleteEntity(appID string) error
- func (auth *Authenticator) Disconnect()
- func (auth *Authenticator) GetChannel() (string, error)
- func (auth *Authenticator) GetEndpoint() (*core.Endpoint, error)
- func (auth *Authenticator) GetEntities(startID string, count int32) ([]*Entity, int32, error)
- func (auth *Authenticator) GetEntity(appID string) (*Entity, error)
- func (auth *Authenticator) UpdateEntity(entity *Entity) error
- func (auth *Authenticator) UpdateEntityKey(appID string, key string) error
- type Entity
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertEntityToProto ¶
func ConvertEntityToProto(entity *Entity) *authenticator_pb.Entity
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶
func NewAuthenticator(options *Options) *Authenticator
func NewAuthenticatorWithClient ¶
func NewAuthenticatorWithClient(client *core.Client, options *Options) *Authenticator
func (*Authenticator) Authenticate ¶
func (auth *Authenticator) Authenticate(appID string, token []byte) (*Entity, error)
func (*Authenticator) Connect ¶
func (auth *Authenticator) Connect(host string, options *core.Options) error
func (*Authenticator) CreateEntity ¶
func (auth *Authenticator) CreateEntity(entity *Entity) error
func (*Authenticator) DeleteEntity ¶
func (auth *Authenticator) DeleteEntity(appID string) error
func (*Authenticator) Disconnect ¶
func (auth *Authenticator) Disconnect()
func (*Authenticator) GetChannel ¶
func (auth *Authenticator) GetChannel() (string, error)
func (*Authenticator) GetEndpoint ¶
func (auth *Authenticator) GetEndpoint() (*core.Endpoint, error)
func (*Authenticator) GetEntities ¶
func (*Authenticator) GetEntity ¶
func (auth *Authenticator) GetEntity(appID string) (*Entity, error)
func (*Authenticator) UpdateEntity ¶
func (auth *Authenticator) UpdateEntity(entity *Entity) error
func (*Authenticator) UpdateEntityKey ¶
func (auth *Authenticator) UpdateEntityKey(appID string, key string) error
Click to show internal directories.
Click to hide internal directories.