config

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Log struct {
		Path string `yaml:"path"`
	} `yaml:"log"`
	DB struct {
		Dir string `yaml:"dir"`
	}
	Server struct {
		Host     string `yaml:"host"`
		SSHPort  int    `yaml:"ssh_port"`
		HTTPPort int    `yaml:"http_port"`
		CertsDir string `yaml:"certs_dir"`
	}
	Neynar struct {
		APIKey   string `yaml:"api_key"`
		ClientID string `yaml:"client_id"`
		BaseUrl  string `yaml:"base_url"`
	}
}

func ReadConfig

func ReadConfig(path string) (*Config, error)

func (*Config) BaseURL

func (c *Config) BaseURL() string

Jump to

Keyboard shortcuts

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