server

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, cfg *Config) (*server, error)

Types

type Config

type Config struct {
	ListenAddress string `koanf:"listen_address"`
	DBPath        string `koanf:"db_path"`
	DBType        string `koanf:"db_type"`
	LogLevel      string `koanf:"log_level"`
	ProxyConfig   struct {
		ServerAddress string `koanf:"address"`
		Token         string `koanf:"token"`
	} `koanf:"proxy"`
}

func LoadConfig

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

Jump to

Keyboard shortcuts

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