context

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindAddressFromContext

func BindAddressFromContext(ctx context.Context) string

func ContextWithBindAddress

func ContextWithBindAddress(ctx context.Context, v string) context.Context

func ContextWithExpectedSensors

func ContextWithExpectedSensors(ctx context.Context, n int64) context.Context

func ContextWithResultChannel

func ContextWithResultChannel(ctx context.Context, c chan *model.Result) context.Context

func ContextWithScanPassive

func ContextWithScanPassive(ctx context.Context, v bool) context.Context

func ContextWithScanTimeout

func ContextWithScanTimeout(ctx context.Context, t time.Duration) context.Context

func ContextWithSensorNames

func ContextWithSensorNames(ctx context.Context, v []string) context.Context

func ExpectedSensorsFromContext

func ExpectedSensorsFromContext(ctx context.Context) int64

func ResultChannelFromContext

func ResultChannelFromContext(ctx context.Context) chan *model.Result

func ScanPassiveFromContext

func ScanPassiveFromContext(ctx context.Context) bool

func ScanTimeoutFromContext

func ScanTimeoutFromContext(ctx context.Context) time.Duration

func SensorsNamesFromContext

func SensorsNamesFromContext(ctx context.Context) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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