clientcli

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetenvBool

func GetenvBool(key string, fallback bool) (bool, error)

func GetenvDuration

func GetenvDuration(key string, fallback time.Duration) (time.Duration, error)

func GetenvWithFallback

func GetenvWithFallback(key, fallback string) string

func MustGetenvBool

func MustGetenvBool(key string, fallback bool) bool

func MustGetenvDuration

func MustGetenvDuration(key string, fallback time.Duration) time.Duration

Types

type OutputFile

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

func NewOutputFile

func NewOutputFile(path string) (*OutputFile, error)

func (*OutputFile) Close

func (f *OutputFile) Close() error

func (*OutputFile) Open

func (f *OutputFile) Open(hint string) (io.Writer, error)

type Runtime

type Runtime struct {
	NewClient func() (api.Interface, error)
}

func (*Runtime) WithClient

func (r *Runtime) WithClient(fn func(api.Interface) error) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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