config

package
v0.0.56 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuth2ServerSetting

type OAuth2ServerSetting struct {
	Enabled                bool          `json:"enabled" yaml:"enabled"`
	AccessTokenExpireTime  time.Duration `json:"access_token_expire_time" yaml:"accessTokenExpireTime"`
	RefreshTokenExpireTime time.Duration `json:"refresh_token_expire_time" yaml:"refreshTokenExpireTime"`
}
var Setting *OAuth2ServerSetting = &OAuth2ServerSetting{
	Enabled:                false,
	AccessTokenExpireTime:  time.Hour * 8,
	RefreshTokenExpireTime: time.Hour * 24 * 100,
}

Jump to

Keyboard shortcuts

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