config

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	APIKey    string `mapstructure:"api_key"`
	Name      string `mapstructure:"agent_name"`
	ServerURL string `mapstructure:"server_url"`

	OTLPServer OtlpServer `mapstructure:"otlp_server"`
}

func LoadConfig

func LoadConfig() (Config, error)

type OtlpServer

type OtlpServer struct {
	GRPCPort int `mapstructure:"grpc_port"`
	HTTPPort int `mapstructure:"http_port"`
}

Jump to

Keyboard shortcuts

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