stateful

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

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

func NewAuthentication

func NewAuthentication(gRPC config.GRPC, jwt jwt.IJWT) (*Authentication, error)

func (*Authentication) Authenticate

func (s *Authentication) Authenticate(ctx context.Context, tokenFn func() (string, error), fullMethod string) (authorization services.IAuthorization, err error)

type Authorization added in v0.0.20

type Authorization struct {
	ID    []byte
	Claim *jwt.Common
}

func NewAuthorization added in v0.0.20

func NewAuthorization(id []byte, claim *jwt.Common) *Authorization

func (*Authorization) GetClaim added in v0.0.20

func (a *Authorization) GetClaim() interface{}

func (*Authorization) GetID added in v0.0.20

func (a *Authorization) GetID() []byte

Jump to

Keyboard shortcuts

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