Documentation ¶
Index ¶
Constants ¶
View Source
const ( FlagLogLevel = "log-level" FlagLogFormat = "log-format" )
View Source
const ( AgentsHeartbeatInterval = time.Second * 2 AgentsHeartbeatExpiration = -time.Second * 4 )
View Source
const ( DB = "admin" CommandCollection = "lbotCmd" WorkloadCollection = "lbotWorkload" ConfigCollection = "lbotConfig" AgentStatusCollection = "lbotAgent" )
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](array []T, predicate func(T) bool) bool
Types ¶
type Agent ¶
type Agent struct { Name string `json:"name,omitempty"` Port string `json:"port,omitempty"` MetricsExportUrl string `json:"metrics_export_url,omitempty"` MetricsExportIntervalSeconds uint64 `json:"metrics_export_interval_seconds,omitempty"` MetricsExportPort string `json:"metrics_export_port,omitempty"` }
type Config ¶
type Job ¶
type Job struct { Name string `json:"name,omitempty"` Database string `json:"database,omitempty"` Collection string `json:"collection,omitempty"` Type string `json:"type,omitempty"` Schema string `json:"schema,omitempty"` Connections uint64 `json:"connections,omitempty"` // Maximum number of concurrent connections Pace uint64 `json:"pace,omitempty"` // rps limit / peace - if not set max DataSize uint64 `json:"data_size,omitempty"` // data size in bytes BatchSize uint64 `json:"batch_size,omitempty"` Duration time.Duration `json:"duration,omitempty"` Operations uint64 `json:"operations,omitempty"` Timeout time.Duration `json:"timeout,omitempty"` // if not set, default Filter map[string]interface{} `json:"filter,omitempty"` }
func (*Job) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.