server

package
v0.0.0-...-4553ce1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthServer

type AuthServer struct {
	*gin.Engine
	inits.App
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL