handler

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorization

type Authorization struct {
	*Config
	*micro.Service
	// contains filtered or unexported fields
}

func New

func New(conf *Config, service *micro.Service) (*Authorization, error)

func (*Authorization) Create

func (a *Authorization) Create(ctx context.Context, in *authz.Claims, out *authz.Token) (err error)

func (*Authorization) Invalidate

func (a *Authorization) Invalidate(ctx context.Context, in *authz.Claims, out *authz.Claims) error

func (*Authorization) Validate

func (a *Authorization) Validate(ctx context.Context, in *authz.Token, out *authz.Claims) error

type Config

type Config struct {
	MongoUrl   string `json:"mongourl"`
	PrivateKey string `json:"privatekey"`
}

Jump to

Keyboard shortcuts

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