node_guard

package
v0.0.0-...-8f9ce2e Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(l *goapp.Lifecycle, conf *config.Config)

Types

type GuardManager

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

func (*GuardManager) GetUser

func (g *GuardManager) GetUser(username string) (guard.GuardUser, error)

type JwtToken

type JwtToken struct {
	User  *base.Reference `json:"user"`
	Key   []byte          `json:"key"`
	Roles []string        `json:"roles"`
}

type JwtTokenHandler

type JwtTokenHandler struct {
}

func (*JwtTokenHandler) GetStruct

func (h *JwtTokenHandler) GetStruct() (base.NodeData, base.NodeMeta)

type JwtTokenMeta

type JwtTokenMeta struct {
	Expiration time.Time `json:"expiration"`
}

Jump to

Keyboard shortcuts

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