config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Anthropic

type Anthropic struct {
	ApiKey string `yaml:"api_key"`
}

type Config

type Config struct {
	Email        Email     `yaml:"email"`
	Gemini       Gemini    `yaml:"gemini"`
	OpenAI       OpenAI    `yaml:"openai"`
	Groq         Groq      `yaml:"groq"`
	Mistral      Mistral   `yaml:"mistral"`
	Anthropic    Anthropic `yaml:"antropic"`
	DBConnection string    `yaml:"db_connection"`
	Server       Server    `yaml:"server"`
	Site         Site      `yaml:"site"`
}
var Conf Config

func NewConfig

func NewConfig(path string) *Config

type Email

type Email struct {
	Subject      string `yaml:"subject"`
	From         string `yaml:"from"`
	Pass         string `yaml:"pass"`
	ProviderHost string `yaml:"provider_host"`
	ProviderPort int    `yaml:"provider_port"`
}

type Gemini

type Gemini struct {
	ApiKey string `yaml:"api_key"`
}

type Groq

type Groq struct {
	ApiKey string `yaml:"api_key"`
}

type Mistral

type Mistral struct {
	ApiKey string `yaml:"api_key"`
}

type OpenAI

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

type Server

type Server struct {
	IP   string `yaml:"ip"`
	Port int    `yaml:"port"`
}

type Site

type Site struct {
	Scheme string `yaml:"scheme"`
	Host   string `yaml:"host"`
}

Jump to

Keyboard shortcuts

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