auth

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenKey = "daydream_token"
)

Variables

This section is empty.

Functions

func Enforce

func Enforce(vs ...interface{}) (bool, error)

func Enforcer added in v0.1.1

func Enforcer() *casbin.Enforcer

func Init

func Init() error

func LoadPolicy

func LoadPolicy() error

func SavePolicy

func SavePolicy() error

Types

type User

type User struct {
	ID    int64 `json:"id"`
	State bool  `json:"state"`
}

Jump to

Keyboard shortcuts

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