models

package
v0.0.0-...-4b6388e Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultPassword

type DefaultPassword struct {
	Admin  string
	Public string
}

默认用户的密码

type HttpConfig

type HttpConfig struct {
	Addr string
}

chi api 配置

type JWTConfig

type JWTConfig struct {
	TokenClaim string
	TokenAuth  *jwtauth.JWTAuth
}

JWT配置

func (*JWTConfig) Authenticate

func (jwtcfg *JWTConfig) Authenticate(r *http.Request) (string, string, error)

func (*JWTConfig) Authenticator

func (jwtcfg *JWTConfig) Authenticator() func(http.Handler) http.Handler

授权中间件

func (*JWTConfig) Decode

func (jwtcfg *JWTConfig) Decode(r *http.Request) (string, string)

func (*JWTConfig) Encoding

func (jwtcfg *JWTConfig) Encoding(name string) string

func (*JWTConfig) Verifier

func (jwtcfg *JWTConfig) Verifier() func(http.Handler) http.Handler

type Neo4jConfig

type Neo4jConfig struct {
	Addr     string
	UserName string
	Password string
}

neo4j 配置

Jump to

Keyboard shortcuts

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