service

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Size of buffered channel that accepts samples.
	DataBuffer = 8 << 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logs

type Logs struct {
	collector_logs.UnsafeLogsServiceServer
	// contains filtered or unexported fields
}

type Metrics

type Metrics struct {
	collector_metrics.UnsafeMetricsServiceServer
	// contains filtered or unexported fields
}

type Service

type Service struct {
	v1.UnsafeRQServer
	// contains filtered or unexported fields
}

func NewService

func NewService(ctx context.Context, db *badger.DB, seq *seq.Seq, listen string, retention time.Duration) (*Service, error)

func (*Service) Close

func (s *Service) Close()

func (*Service) GetVersion

func (*Service) GetVersion(_ context.Context, _ *v1.GetVersionRequest) (*v1.Version, error)

func (*Service) Logs

func (s *Service) Logs() *Logs

func (*Service) Metrics

func (s *Service) Metrics() *Metrics

func (*Service) ScanSamples

func (s *Service) ScanSamples(_ context.Context, req *v1.Scan) (*v1.Data, error)

func (*Service) Start

func (s *Service) Start(ctx context.Context)

func (*Service) Trace

func (s *Service) Trace() *Trace

type Trace

type Trace struct {
	collector_trace.UnsafeTraceServiceServer
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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