mocks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

type Reporter struct {
	mock.Mock
}

func (*Reporter) Report

func (r *Reporter) Report(trace contract.Trace)

type Span

type Span struct {
	mock.Mock `json:"-"`
}

func (*Span) IsRoot

func (s *Span) IsRoot() bool

func (*Span) ParentId

func (s *Span) ParentId() string

func (*Span) Timestamp

func (s *Span) Timestamp() int64

func (*Span) TraceId

func (s *Span) TraceId() string

type TimeBaseSampler

type TimeBaseSampler struct {
	mock.Mock
}

func (*TimeBaseSampler) ShouldReport

func (s *TimeBaseSampler) ShouldReport(trace contract.Trace) bool

type Trace

type Trace struct {
	mock.Mock
}

func (*Trace) Append

func (t *Trace) Append(traces []contract.Span)

func (*Trace) Expired

func (t *Trace) Expired() bool

func (*Trace) IsRoot

func (t *Trace) IsRoot() bool

func (*Trace) Merge

func (t *Trace) Merge(trace contract.Trace)

func (*Trace) Spans

func (t *Trace) Spans() []contract.Span

func (*Trace) StartTime

func (t *Trace) StartTime() time.Time

func (*Trace) TraceId

func (t *Trace) TraceId() string

Jump to

Keyboard shortcuts

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