authentication

package
v0.0.0-...-76f7c0c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Repository   store.DatabaseRepository
	Cache        cache.Client
	AuthService  *RPCConfig
	EventEmitter queue.EventEmitter
}

func NewHandler

func NewHandler(repo store.DatabaseRepository, cacheClient cache.Client, authConfig *RPCConfig, eventEmitter queue.EventEmitter) *Handler

func (*Handler) Login

func (h *Handler) Login(c *gin.Context)

func (*Handler) Logout

func (h *Handler) Logout(c *gin.Context)

func (*Handler) RefreshToken

func (h *Handler) RefreshToken(c *gin.Context)

func (*Handler) ShowLogin

func (h *Handler) ShowLogin(c *gin.Context)

func (*Handler) SignUp

func (h *Handler) SignUp(c *gin.Context)

type RPCConfig

type RPCConfig struct {
	Client      authPb.AuthClient
	CallOptions []grpc.CallOption
	Deadline    int64
}

Jump to

Keyboard shortcuts

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