localsvc

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggingOTLP added in v0.8.4

type LoggingOTLP struct {
	otlplogssvcpb.UnimplementedLogsServiceServer
	// contains filtered or unexported fields
}

func (*LoggingOTLP) Export added in v0.8.4

func (*LoggingOTLP) ExportHTTP added in v0.8.5

func (otlp *LoggingOTLP) ExportHTTP(w http.ResponseWriter, r *http.Request)

type MetricsOTLP added in v0.8.4

type MetricsOTLP struct {
	otlpmetricssvcpb.UnimplementedMetricsServiceServer
	// contains filtered or unexported fields
}

func (*MetricsOTLP) ExportHTTP added in v0.8.5

func (otlp *MetricsOTLP) ExportHTTP(w http.ResponseWriter, r *http.Request)

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(
	ll *slog.Logger,
	ownVersion *typesv1.Version,
	storage localstorage.Storage,
	state localstate.DB,
	doLogin func(ctx context.Context, returnToURL string) error,
	doLogout func(ctx context.Context, returnToURL string) error,
	doUpdate func(ctx context.Context) error,
	doRestart func(ctx context.Context) error,
	getConfig func(ctx context.Context) (*typesv1.LocalhostConfig, error),
	setConfig func(ctx context.Context, cfg *typesv1.LocalhostConfig) error,
	whoami func(ctx context.Context) (*userv1.WhoamiResponse, error),
) *Service

func (*Service) AsLoggingOTLP added in v0.8.4

func (svc *Service) AsLoggingOTLP() *LoggingOTLP

func (*Service) AsMetricsOTLP added in v0.8.4

func (svc *Service) AsMetricsOTLP() *MetricsOTLP

func (*Service) AsTracingOTLP added in v0.8.4

func (svc *Service) AsTracingOTLP() *TracingOTLP

func (*Service) CreateAlertRule added in v0.8.7

func (*Service) CreateDashboard added in v0.8.6

func (*Service) DeleteAlertRule added in v0.8.7

func (*Service) DeleteDashboard added in v0.8.6

func (*Service) DoLogin added in v0.8.0

func (*Service) DoLogout added in v0.8.0

func (*Service) DoRestart added in v0.8.0

func (*Service) DoUpdate added in v0.8.0

func (*Service) Format added in v0.8.5

func (*Service) GetAlertRule added in v0.8.7

func (*Service) GetConfig added in v0.8.0

func (*Service) GetDashboard added in v0.8.6

func (*Service) GetSpan added in v0.8.5

func (*Service) GetStats added in v0.8.5

func (*Service) GetTrace added in v0.8.5

func (*Service) Ingest

func (*Service) ListAlertRule added in v0.8.7

func (*Service) ListDashboard added in v0.8.6

func (*Service) ListSymbols added in v0.8.0

func (*Service) Parse added in v0.8.0

func (*Service) Ping

func (*Service) Query added in v0.8.0

func (*Service) SetConfig added in v0.8.0

func (*Service) Stream added in v0.8.5

func (*Service) UpdateAlertRule added in v0.8.7

func (*Service) UpdateDashboard added in v0.8.6

type TracingOTLP added in v0.8.4

type TracingOTLP struct {
	otlptracesvcpb.UnimplementedTraceServiceServer
	// contains filtered or unexported fields
}

func (*TracingOTLP) Export added in v0.8.4

func (*TracingOTLP) ExportHTTP added in v0.8.5

func (otlp *TracingOTLP) ExportHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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