bind

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogBind

type LogBind struct{}

Javascript Binding

IC.Log

.Info()
.Warn()
.Error()
.Debug()

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
	Err string
}

Response ...

func ExecuteAsync

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

ExecuteAsync ...

func ExecuteSync

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

IC.Execute "sh", "-c", "echo stdout; echo 1>&2 stderr"

type StorageBind added in v0.4.0

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

Javascript Binding

Storage

.Search(name)
.Push(name, value)
.GetByName(name)
.Pop(name)

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