config

package
v0.15.9 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 6 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"`
	CollectorEndpoint string `mapstructure:"collector_endpoint"`
	Mode              string `mapstructure:"mode"`

	OTLPServer OtlpServer `mapstructure:"otlp_server"`
}

func LoadConfig

func LoadConfig() (Config, error)

func (Config) APIEndpoint added in v0.15.6

func (c Config) APIEndpoint() string

type Flags added in v0.14.7

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

func (Flags) AutomatedEnvironmentCanBeInferred added in v0.15.9

func (f Flags) AutomatedEnvironmentCanBeInferred() bool

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