otel: go.opentelemetry.io/otel/sdk/metric/controller/time Index | Files

package time

import "go.opentelemetry.io/otel/sdk/metric/controller/time"

Index

Package Files

time.go

type Clock Uses

type Clock interface {
    Now() lib.Time
    Ticker(duration lib.Duration) Ticker
}

type RealClock Uses

type RealClock struct {
}

func (RealClock) Now Uses

func (RealClock) Now() time.Time

func (RealClock) Ticker Uses

func (RealClock) Ticker(period time.Duration) Ticker

type RealTicker Uses

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

func (RealTicker) C Uses

func (t RealTicker) C() <-chan time.Time

func (RealTicker) Stop Uses

func (t RealTicker) Stop()

type Ticker Uses

type Ticker interface {
    Stop()
    C() <-chan lib.Time
}

Package time imports 1 packages (graph) and is imported by 3 packages. Updated 2020-09-21. Refresh now. Tools for package owners.