configuration

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleEnvironmentVars

func HandleEnvironmentVars(config Config)

preparations for docker

Types

type Config

type Config = *ConfigStruct

func Load

func Load(location string) (config Config, err error)

type ConfigStruct

type ConfigStruct struct {
	ApiPort         string `json:"api_port"`
	MongoUrl        string `json:"mongo_url"`
	MongoTable      string `json:"mongo_table"`
	MongoCollection string `json:"mongo_collection"`
	ProcessEndpoint string `json:"process_endpoint"`

	LogLevel string `json:"log_level"`
	// contains filtered or unexported fields
}

func (*ConfigStruct) GetLogger added in v0.0.5

func (this *ConfigStruct) GetLogger() *slog.Logger

Jump to

Keyboard shortcuts

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