config

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = NewConfig()

Config config

Functions

func NewConfig

func NewConfig() *sConfig

NewConfig new config

Types

type Authority

type Authority struct {
	Enable bool
}

type Jwt

type Jwt struct {
	Sso    bool   `json:"sso"`
	Secret string `json:"secret"`
	Token  *Token `json:"token"`
}

type Log

type Log struct {
	Enable bool
}

type Middleware

type Middleware struct {
	Authority *Authority
	Log       *Log
}

type Token

type Token struct {
	Expire        uint `json:"expire"`
	RefreshExpire uint `json:"refreshExprire"`
}

Jump to

Keyboard shortcuts

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