controllerclient

package
v0.0.0-...-8c384fb Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ControllerAddress = ""

http://ip:port/task_tracker/v1/callbackUpload

Functions

This section is empty.

Types

type Config

type Config struct {
	config.Saver

	Url string
}

func (*Config) ApplyEnvVars

func (c *Config) ApplyEnvVars() error

func (*Config) ConfigKey

func (c *Config) ConfigKey() string

func (*Config) Default

func (c *Config) Default() error

func (*Config) LoadJSON

func (c *Config) LoadJSON(raw []byte) error

func (*Config) ToDisplayJSON

func (c *Config) ToDisplayJSON() ([]byte, error)

func (*Config) ToJSON

func (c *Config) ToJSON() ([]byte, error)

func (*Config) Validate

func (c *Config) Validate() error

type ControllerConn

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

func NewConnector

func NewConnector(config *Config) *ControllerConn

func (*ControllerConn) PostCtx

func (conn *ControllerConn) PostCtx(ctx context.Context, path string, contentType string, postBody io.Reader) ([]byte, error)

PostCtx post a http request

Jump to

Keyboard shortcuts

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