config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type ConfigData

type ConfigData struct {
	Openai struct {
		Username string `json:"username" yaml:"username"`
		Password string `json:"password" yaml:"password"`
	} `json:"openai" yaml:"openai"`
	AccessToken     string `json:"access_token" yaml:"access_token"`
	SecretKeyPrefix string `json:"secret_key_prefix" yaml:"secret_key_prefix"`
}

type GlobalConfig

type GlobalConfig struct {
	Config ConfigData
	*viper.Viper
}
var C *GlobalConfig

Jump to

Keyboard shortcuts

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