services

package
v0.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseService

type BaseService struct {
	Name       string
	Tracer     trace.Tracer
	Meter      metric.Meter
	Provider   *sdktrace.TracerProvider
	Generator  *data.Generator
	Logger     *slog.Logger
	OtelLogger log.Logger
	// contains filtered or unexported fields
}

func (*BaseService) Shutdown

func (s *BaseService) Shutdown(ctx context.Context) error

func (*BaseService) Simulate

func (s *BaseService) Simulate(ctx context.Context)

type Service

type Service interface {
	Simulate(ctx context.Context)
	Shutdown(ctx context.Context) error
}

func NewService

func NewService(name string, cfg *config.Config) (Service, error)

Jump to

Keyboard shortcuts

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