config

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 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 Flags added in v0.14.7

type Flags struct {
	Endpoint       string
	OrganizationID string
	EnvironmentID  string
	CI             bool
	AgentApiKey    string
	Token          string
	Mode           Mode
	LogLevel       string
}

type Mode added in v0.14.7

type Mode string
const (
	Mode_Desktop Mode = "desktop"
	Mode_Verbose Mode = "verbose"
)

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