config

package
v0.0.0-...-2fe61dc Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const AUTH_OPERATION_URL_CREATE = "AUTH_OPERATION_URL_CREATE"
View Source
const AUTH_OPERATION_URL_DELETE = "AUTH_OPERATION_URL_DELETE"
View Source
const AUTH_OPERATION_URL_QUERY = "AUTH_OPERATION_URL_QUERY"
View Source
const AUTH_OPERATION_URL_UPDATE = "AUTH_OPERATION_URL_UPDATE"

Variables

View Source
var Proxys = map[string][]string{
	"/baidu":  []string{"https://www.baidu.com$extra"},
	"/github": []string{"https://github.com$extra"},
}

Functions

func NewABACAuth

func NewABACAuth() koa.PluginMultiArg

func URLPolicy

func URLPolicy(subject any, environment any, object any, operation any) bool

func UserPolicy

func UserPolicy(subject any, environment any, object any, operation any) bool

Types

type Config

type Config struct {
	Server struct {
		Name string
		Port int
	}
	Database    string
	JsonMaxSize int `yaml:"jsonMaxSize"`
}

Jump to

Keyboard shortcuts

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