bootstrap

package
v0.0.0-...-520c4d9 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: GPL-3.0 Imports: 37 Imported by: 0

Documentation

Overview

server/internal/bootstrap/bufferengine.go

gosight/agent/internal/bootstrap/log_store.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAlertStore

func InitAlertStore(cfg *config.Config) (alertstore.AlertStore, error)

func InitAuth

func InitAuth(cfg *config.Config, userStore userstore.UserStore) (map[string]gosightauth.AuthProvider, error)

InitAuth initializes the authentication providers for the GoSight server.

func InitBufferEngine

func InitBufferEngine(ctx context.Context, cfg *config.BufferEngineConfig, stores *sys.StoreModule) *sys.BufferModule

InitBufferEngine initializes buffered stores and the central buffer engine. It wraps existing backend stores with buffering and returns the sys.BuffersModule wrapped buffers.

func InitCaches

func InitCaches(ctx context.Context, dataStore datastore.DataStore) (*cache.Cache, error)

InitCaches initializes caches for the system context.

func InitDataStore

func InitDataStore(cfg *config.Config) (datastore.DataStore, error)

func InitEventStore

func InitEventStore(cfg *config.Config) (eventstore.EventStore, error)

InitEventStore initializes the event store for the GoSight server.

func InitGoSight

func InitGoSight(ctx context.Context) (*sys.SystemContext, error)

func InitLogStore

func InitLogStore(ctx context.Context, cfg *config.Config, logCache cache.LogCache) (logstore.LogStore, error)

InitLogStore initializes the log store for the GoSight agent. The log store is responsible for storing and retrieving logs.

func InitMetaStore

func InitMetaStore() *metastore.MetaTracker

InitMetaStore initializes the meta store for the GoSight agent. The meta store is responsible for storing and retrieving metadata.

func InitMetricIndex

func InitMetricIndex() (*metricindex.MetricIndex, error)

InitMetricIndex initializes the metric index for the GoSight agent.

func InitMetricStore

func InitMetricStore(ctx context.Context, cfg *config.Config, metricCache cache.MetricCache) (metricstore.MetricStore, error)

InitMetricStore initializes the metric store for the GoSight agent. The metric store is responsible for storing and retrieving metrics.

func InitRouteStore

func InitRouteStore(cfg *config.Config) (*routestore.RouteStore, error)

InitMetricIndex initializes the metric index for the GoSight agent.

func InitRuleStore

func InitRuleStore(cfg *config.Config) (rulestore.RuleStore, error)

InitRuleStore initializes the rule store based on the configuration.

func InitTracker

func InitTracker(ctx context.Context, dataStore datastore.DataStore, emitter *events.Emitter) *tracker.EndpointTracker

InitEndpointTracker initializes the unified endpoint tracker. Tracks both agents and containers, and emits lifecycle events.

func InitUserStore

func InitUserStore(cfg *config.Config) (userstore.UserStore, error)

func InitWebSocketHub

func InitWebSocketHub(ctx context.Context, metaStore *metastore.MetaTracker) *websocket.HubManager

InitWebSocketHub initializes the WebSocket hub for the GoSight agent. The WebSocket hub is responsible for managing WebSocket connections and broadcasting messages to connected clients.

func LoadServerConfig

func LoadServerConfig() *config.Config

TODO Update environment variables and flags

Types

This section is empty.

Jump to

Keyboard shortcuts

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