config

package
v0.0.0-...-f9b4ed7 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Env = "local"

Functions

func Init

func Init(path string)

Types

type Config

type Config struct {
	API          *server.APICfg
	Admin        *server.AdminCfg
	ServerConfig Server `toml:"server"`
	LogConfig    Log    `toml:"log"`
	OpenAIConfig OpenAI `toml:"openai"`
}

func Get

func Get() *Config

type Log

type Log struct {
	LogLevel string `toml:"log_level"`
}

type OpenAI

type OpenAI struct {
	ApiKey string `toml:"api_key"`
}

type Server

type Server struct {
	ServerName string `toml:"server_name"`
	ServerPort int    `toml:"server_port"`
}

Jump to

Keyboard shortcuts

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