Documentation ¶
Index ¶
- type AuthServer
- func (server *AuthServer) GetSignInToken(ctx context.Context, msg *generated.UserTokenRequest) (*generated.UserTokenResponse, error)
- func (server *AuthServer) GetSignUpToken(ctx context.Context, msg *generated.UserTokenRequest) (*generated.UserTokenResponse, error)
- func (server *AuthServer) Listen() error
- func (server *AuthServer) Ping(ctx context.Context, msg *generated.Empty) (*generated.PingResponse, error)
- func (server *AuthServer) RefreshAccessToken(ctx context.Context, msg *generated.AccessTokenRequest) (*generated.UserTokenResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthServer ¶
AuthServer is a grpc server for managing authentication and authorisation.
func NewAuthServer ¶
func NewAuthServer(app inits.App) AuthServer
NewAuthServer creates a new server instance.
func (*AuthServer) GetSignInToken ¶
func (server *AuthServer) GetSignInToken(ctx context.Context, msg *generated.UserTokenRequest) (*generated.UserTokenResponse, error)
GetSignInToken
func (*AuthServer) GetSignUpToken ¶
func (server *AuthServer) GetSignUpToken(ctx context.Context, msg *generated.UserTokenRequest) (*generated.UserTokenResponse, error)
GetSignUpToken
func (*AuthServer) Listen ¶
func (server *AuthServer) Listen() error
Listen makes the server listen on specified port.
func (*AuthServer) Ping ¶
func (server *AuthServer) Ping(ctx context.Context, msg *generated.Empty) (*generated.PingResponse, error)
Ping says Pong.
func (*AuthServer) RefreshAccessToken ¶
func (server *AuthServer) RefreshAccessToken(ctx context.Context, msg *generated.AccessTokenRequest) (*generated.UserTokenResponse, error)
RefreshAccessToken
Click to show internal directories.
Click to hide internal directories.