abc

package
v0.0.0-...-f3d8a94 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Male   = Gender(false)
	Female = Gender(true)
)

Variables

View Source
var StatusT = &Type{
	"status",
	true,
	IsType((*StatusManager)(nil)),
}
View Source
var StringT = &Type{
	"string",
	true,
	IsType(""),
}

Functions

func Exec

func Exec(s string)

func Exec2

func Exec2(s string)

func IsType

func IsType(t interface{}) func(x interface{}) bool

func Register

func Register(name string, t map[string]Socket, fn func(status *Status, args map[string]interface{}) Widget)

func Unregister

func Unregister(name string)

Types

type Gender

type Gender bool

type Socket

type Socket struct {
	*Type
	Gender Gender
}

type Status

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

func (*Status) Error

func (status *Status) Error(s string)

func (*Status) Fail

func (status *Status) Fail(e error)

func (*Status) Go

func (status *Status) Go(fn func(status *Status))

func (*Status) Log

func (status *Status) Log(s string)

type StatusManager

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

func (*StatusManager) Go

func (m *StatusManager) Go(fn func(status *Status))

func (*StatusManager) Wait

func (m *StatusManager) Wait() error

type Type

type Type struct {
	Name string
	Mux  bool
	Test func(interface{}) bool
}

type Widget

type Widget interface {
	//	Type() map[string] Socket
	Plug(s string, w interface{})
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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