es

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrWrapper

func ErrWrapper(err Err) error

Types

type Cli

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

type Err

type Err int
const (
	UnknownErrCode Err = iota
	IllegalParams      // wrong params
)

func (Err) String

func (i Err) String() string

type OptionFunc added in v0.0.46

type OptionFunc func(*Cli)

func WithDebugInfo

func WithDebugInfo(debug bool) OptionFunc

func WithHosts

func WithHosts(hosts ...string) OptionFunc

func WithHttpClient

func WithHttpClient(httpCli *http.Client) OptionFunc

Jump to

Keyboard shortcuts

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