dev

package
v0.0.0-...-d996d1d Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package provides a wrapper to specify local dev options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasDevOptions

func HasDevOptions(ctx context.Context) bool

HasDevOptions tells if dev options specified.

func IsActive

func IsActive(ctx context.Context) bool

IsActive specifies if local dev option is active. Default: No.

func PrintDUTProtos

func PrintDUTProtos(ctx context.Context) bool

PrintDUTProtos specifies if printing DUT protos is expected. Default: Yes.

func WithDevOptions

func WithDevOptions(ctx context.Context, devOptions any) context.Context

WithDevOptions sets DevOptions to the context.

Types

type ActiveLocalDevOption

type ActiveLocalDevOption interface {
	// Specify if expected to print DUT proto at the start/end of execution.
	PrintDUTProtos() bool
	// Specify if client is active.
	IsActive() bool
}

ActiveLocalDevOption represent interface to tell if local development is active.

Jump to

Keyboard shortcuts

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