module

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJWT

func NewJWT(name string) interfaces2.IModules

Types

type JWT

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

JWT openssl genrsa -out private.key 2048

func (*JWT) GenerateToken

func (t *JWT) GenerateToken(data jwt.MapClaims) (string, error)

func (*JWT) Init

func (t *JWT) Init(_ interfaces2.IEngine, cfg map[string]interface{}) error

func (*JWT) Name

func (t *JWT) Name() string

func (*JWT) Stop

func (t *JWT) Stop() error

func (*JWT) Type

func (t *JWT) Type() string

type JWTConfig

type JWTConfig struct {
	PrivateKey string        `yaml:"private_key"`
	Expire     time.Duration `yaml:"expire"`
}

type Mock

type Mock struct {
	NamePkg string
}

func (*Mock) Init

func (t *Mock) Init(_ interfaces.IEngine, _ map[string]interface{}) error

func (*Mock) Name

func (t *Mock) Name() string

func (*Mock) Stop

func (t *Mock) Stop() error

func (*Mock) Type

func (t *Mock) Type() string

Jump to

Keyboard shortcuts

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