Documentation
¶
Overview ¶
server/internal/bootstrap/bufferengine.go
gosight/agent/internal/bootstrap/log_store.go
Index ¶
- func InitAlertStore(cfg *config.Config) (alertstore.AlertStore, error)
- func InitAuth(cfg *config.Config, userStore userstore.UserStore) (map[string]gosightauth.AuthProvider, error)
- func InitBufferEngine(ctx context.Context, cfg *config.BufferEngineConfig, stores *sys.StoreModule) *sys.BufferModule
- func InitCaches(ctx context.Context, dataStore datastore.DataStore) (*cache.Cache, error)
- func InitDataStore(cfg *config.Config) (datastore.DataStore, error)
- func InitEventStore(cfg *config.Config) (eventstore.EventStore, error)
- func InitGoSight(ctx context.Context) (*sys.SystemContext, error)
- func InitLogStore(ctx context.Context, cfg *config.Config, logCache cache.LogCache) (logstore.LogStore, error)
- func InitMetaStore() *metastore.MetaTracker
- func InitMetricIndex() (*metricindex.MetricIndex, error)
- func InitMetricStore(ctx context.Context, cfg *config.Config, metricCache cache.MetricCache) (metricstore.MetricStore, error)
- func InitRouteStore(cfg *config.Config) (*routestore.RouteStore, error)
- func InitRuleStore(cfg *config.Config) (rulestore.RuleStore, error)
- func InitTracker(ctx context.Context, dataStore datastore.DataStore, emitter *events.Emitter) *tracker.EndpointTracker
- func InitUserStore(cfg *config.Config) (userstore.UserStore, error)
- func InitWebSocketHub(ctx context.Context, metaStore *metastore.MetaTracker) *websocket.HubManager
- func LoadServerConfig() *config.Config
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 ¶
InitCaches initializes caches for the system context.
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 ¶
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 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 ¶
TODO Update environment variables and flags
Types ¶
This section is empty.