Back to godoc.org

Package handler

v0.6.0
Latest Go to latest

The latest major version is .

Published: Sep 28, 2019 | License: MIT | Module: github.com/SonicRoshan/Velocity

Index

type ServiceHandler

type ServiceHandler struct {
	// contains filtered or unexported fields
}

ServiceHandler is used to handle all the jwt service functions

func (ServiceHandler) AccessAndRefreshTokens

func (serviceHandler ServiceHandler) AccessAndRefreshTokens(
	ctx context.Context,
	request *proto.JWTData,
	response *proto.AccessAndRefreshToken) error

AccessAndRefreshTokens is used to generate access and refresh tokens

func (ServiceHandler) FreshToken

func (serviceHandler ServiceHandler) FreshToken(
	ctx context.Context, request *proto.JWTData, response *proto.Token) error

FreshToken is used to generate fresh token

func (*ServiceHandler) Init

func (serviceHandler *ServiceHandler) Init()

Init is used to initialize

func (ServiceHandler) RefreshTokens

func (serviceHandler ServiceHandler) RefreshTokens(
	ctx context.Context,
	request *proto.Token,
	response *proto.AccessAndRefreshToken) error

RefreshTokens is used to make access and refresh token based on refresh token

func (ServiceHandler) ValidateToken

func (serviceHandler ServiceHandler) ValidateToken(
	ctx context.Context, request *proto.Token, response *proto.Claims) error

ValidateToken is used to validate a token

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier