app

package
v0.0.0-...-2a1849f Latest Latest
Warning

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

Go to latest
Published: May 25, 2025 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	Address string `toml:"address"`
}

type Config

type Config struct {
	Name                      string        `toml:"name"`
	LogLevel                  string        `toml:"log_level"`
	ProfilesClientConfig      *ClientConfig `toml:"profiles"`
	ProfilesStateClientConfig *ClientConfig `toml:"profile_state"`
	*ServerConfig             `toml:"server"`
	*SemanticTargetingConfig  `toml:"semantic_targeting"`
}

func NewConfig

func NewConfig() *Config

func (*Config) ReadConfig

func (c *Config) ReadConfig() error

type SemanticTargetingConfig

type SemanticTargetingConfig struct {
	Path          string  `toml:"path"`
	MinSimilarity float64 `toml:"min_similarity"`
}

type ServerConfig

type ServerConfig struct {
	Port string `toml:"port"`
}

Jump to

Keyboard shortcuts

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