Documentation ¶
Index ¶
- type Auth
- type Authn
- type EntryService
- func (e *EntryService) Current(ctx context.Context, _ *pb.Empty) (*pb.PlayerMessage, error)
- func (e *EntryService) Invite(ctx context.Context, req *pb.PlayerMessage) (*pb.PlayerMessage, error)
- func (e *EntryService) Login(ctx context.Context, req *pb.LoginRequest) (*pb.PlayerMessage, error)
- func (e *EntryService) SignUp(ctx context.Context, req *pb.PlayerPassword) (*pb.PlayerMessage, error)
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authn ¶
type Authn struct {
// contains filtered or unexported fields
}
func (*Authn) CurrPlayer ¶
CurrPlayer returns the current player from an incoming metadata.MD. If the authorization has expired within refreshWindow of expiring, the authorization may be refreshed and updated (using grpc.SetHeader) on the passed in context.
type EntryService ¶
type EntryService struct {
// contains filtered or unexported fields
}
func NewEntryService ¶
func NewEntryService(auth Auth, store Storage) *EntryService
func (*EntryService) Current ¶
func (e *EntryService) Current(ctx context.Context, _ *pb.Empty) (*pb.PlayerMessage, error)
func (*EntryService) Invite ¶
func (e *EntryService) Invite(ctx context.Context, req *pb.PlayerMessage) (*pb.PlayerMessage, error)
func (*EntryService) Login ¶
func (e *EntryService) Login(ctx context.Context, req *pb.LoginRequest) (*pb.PlayerMessage, error)
func (*EntryService) SignUp ¶
func (e *EntryService) SignUp(ctx context.Context, req *pb.PlayerPassword) (*pb.PlayerMessage, error)
Click to show internal directories.
Click to hide internal directories.