config

package
v1.0.2-0...-fe75df2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(host string, jwt_secret string)

Types

type AppInfo

type AppInfo struct {
	Name     string `json:"name"`
	Version  string `json:"version"`
	Homepage string `json:"homepage"`
	Bugs     string `json:"bugs"`
	Author   Author `json:"author"`
}

type ApplicationConfig

type ApplicationConfig struct {
	Host      string  `json:"host"`
	JWTSecret string  `json:"jwt_secret"`
	App       AppInfo `json:"app"`
}
var Config *ApplicationConfig

type Author

type Author struct {
	Email string `json:"email"`
	Name  string `json:"name"`
	Url   string `json:"url"`
}

Jump to

Keyboard shortcuts

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