clockz

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initializer

func Initializer(_ context.Context) (injectz.Injector, injectz.Releaser)

Initializer is a Clock initializer.

func NewSingletonInjector

func NewSingletonInjector(clock Clock) injectz.Injector

NewSingletonInjector always injects the given Clock.

Types

type Clock

type Clock clocklib.Clock

Clock describes a clock.

func Get

func Get(ctx context.Context) Clock

Get extracts the Clock from context, returns the default clock if not found.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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