bind

package
Version: v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpBind added in v0.5.0

type HttpBind struct{}

HttpBind ...

func (*HttpBind) Get added in v0.5.0

func (h *HttpBind) Get(url string) (response HttpResponse)

Get ...

func (*HttpBind) Post added in v0.5.0

func (h *HttpBind) Post(url, data string) (response HttpResponse)

Post ...

type HttpResponse added in v0.5.0

type HttpResponse struct {
	Body         string `json:"body"`
	Error        bool   `json:"error"`
	ErrorMessage string `json:"errorMessage"`
}

HttpResponse ...

type LogBind

type LogBind struct{}

LogBind ...

func (*LogBind) Debug

func (b *LogBind) Debug(v ...interface{})

Debug ...

func (*LogBind) Error

func (b *LogBind) Error(v ...interface{})

Error ...

func (*LogBind) Info

func (b *LogBind) Info(v ...interface{})

Info ...

func (*LogBind) Warn

func (b *LogBind) Warn(v ...interface{})

Warn ...

type Response

type Response struct {
	Out string `json:"out"`
	Err string `json:"err"`
}

Response ...

func ExecuteAsync

func ExecuteAsync(name string, arg ...string) (r *Response)

ExecuteAsync ...

func ExecuteSync

func ExecuteSync(name string, arg ...string) (r *Response)

ExecuteSync "sh", "-c", "echo stdout; echo 1>&2 stderr"

type StorageBind added in v0.4.0

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

StorageBind ...

func NewStorageBind added in v0.4.0

func NewStorageBind(
	storage *storage.Storage) *StorageBind

NewStorageBind ...

func (*StorageBind) GetByName added in v0.4.0

func (s *StorageBind) GetByName(name string) string

GetByName ...

func (*StorageBind) Pop added in v0.4.0

func (s *StorageBind) Pop(name string) string

Pop ...

func (*StorageBind) Push added in v0.4.0

func (s *StorageBind) Push(name string, val string) (err error)

Push ...

func (*StorageBind) Search added in v0.4.0

func (s *StorageBind) Search(name string) (result map[string]string)

Search ...

Jump to

Keyboard shortcuts

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