Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTimeout error = errors.New("timed out")
)
Functions ¶
func Terminated ¶
Types ¶
type Bus ¶
type Bus struct { In chan string Out chan string Operation chan Operator Done chan bool Timeout time.Duration Err chan error }
Bus - i/o communications
type Connector ¶
type Connector interface { Connect(*Bus) (Controller, error) Save() error Load() error }
type Controller ¶
type Controller interface { Descriptor() (s string) Views() (vs []*View) Upload(w io.Writer, files []string) (err error) View(w io.Writer, view string) (err error) Edit(w io.Writer, view, key string) (err error) Apply(view, key string, vals map[string][]string) ([]*forms.Updated, error) Query(view, key string) (err error) }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() (mgr *Manager)
func (*Manager) AddConnector ¶
func (*Manager) AddProvider ¶
Click to show internal directories.
Click to hide internal directories.