config

package
v2.0.0-...-1ed8dcf Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config *config
)

Functions

func ExistAppID

func ExistAppID(appID string) bool

func Init

func Init()

Types

type AppConfig

type AppConfig struct {
	ID                  string   `mapstructure:"id"`
	Secret              string   `mapstructure:"secret"`
	RedisAccessTokenKey []string `mapstructure:"redis_access_token_key"`
	RedisJsAPITicketKey []string `mapstructure:"redis_js_api_ticket_key"`
	RefreshDuration     int64    `mapstructure:"refresh_duration"`
	Type                string   `mapstructure:"type"`
}

func GetApp

func GetApp(appID string) *AppConfig

func GetApps

func GetApps() []*AppConfig

Jump to

Keyboard shortcuts

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