client

package
v1.4.3-poc-rc3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Config returns the config of the client
	Config() config.Config
	// ConfigFilePath returns the file path of the config
	ConfigFilePath() string
	// SelectTranslation select a translation based on UILanguage
	SelectTranslation(map[config.Language]string) string
	// Call http call
	Call(url string, req *http.Request) ([]byte, error)
}

Client defines the interface of an wsctl client

func NewClient

func NewClient(cfg config.Config, configFilePath string, logger log.Logger) Client

NewClient creates a new wsctl client

Jump to

Keyboard shortcuts

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