config

package
v0.0.0-...-c48d56e Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Path        = "config.json"
	IdentityKey = "userid"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenAddr   string `json:"listen_addr"`
	ClientId     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
	// BubblediffUi 用于允许跨域访问
	BubblediffUi string `json:"bubblediff_ui"`
	Mongo        struct {
		Url         string `json:"url"`
		Collections struct {
			User string `json:"user"`
			Task string `json:"task"`
		} `json:"collections"`
	} `json:"mongo"`
	Redis struct {
		Addr     string `json:"addr"`
		Password string `json:"password"`
	} `json:"redis"`
	Cos struct {
		BucketUrl  string `json:"bucket_url"`
		ServiceUrl string `json:"service_url"`
		SecretId   string `json:"secret_id"`
		SecretKey  string `json:"secret_key"`
	} `json:"cos"`
	Env string `json:"env"`
}

func Get

func Get() *Config

Jump to

Keyboard shortcuts

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