simulate

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStat

type DataStat struct {
	Count uint
	Bytes uint
}

func (*DataStat) Add

func (ds *DataStat) Add(other *DataStat)

func (*DataStat) String added in v0.4.0

func (ds *DataStat) String() string

type Option

type Option func(*Webclient)

func WithClient

func WithClient(client *grpc.ClientConn) Option

func WithContext

func WithContext(ctx context.Context) Option

func WithMaxErrors

func WithMaxErrors(maxErrors int) Option

func WithStatsCallback

func WithStatsCallback(d time.Duration, callback func(*Stats)) Option

type Stats

type Stats struct {
	Analysis DataStat
	Driver   DataStat
	Speedmap DataStat
	State    DataStat
}

func (*Stats) Add added in v0.3.0

func (s *Stats) Add(other *Stats)

func (*Stats) String added in v0.4.0

func (s *Stats) String() string

type Webclient

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

func NewWebclient

func NewWebclient(opts ...Option) *Webclient

func (*Webclient) GetStats

func (w *Webclient) GetStats() Stats

func (*Webclient) Start

func (w *Webclient) Start(event *commonv1.EventSelector) error

Jump to

Keyboard shortcuts

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