Documentation ¶
Index ¶
- func Call(text string) ([]interface{}, error)
- func MustRegister(fn interface{}, name, desc string)
- func Register(fn interface{}, name, desc string) error
- func Serve(rw io.ReadWriter, config ServeConfig) error
- func ServeUnix(path string, config ServeUnixConfig) error
- func Stdio() io.ReadWriter
- type AfterCall
- type BeforeCall
- type Controller
- func (this *Controller) Call(literal string) ([]interface{}, error)
- func (this *Controller) MustRegister(fn interface{}, name, desc string)
- func (this *Controller) Register(fn interface{}, name, desc string) error
- func (this *Controller) Serve(rw io.ReadWriter, config ServeConfig) error
- func (this *Controller) ServeUnix(path string, config ServeUnixConfig) error
- type OnConn
- type OnDisconn
- type ServeConfig
- type ServeUnixConfig
- type UnixAfterCall
- type UnixBeforeCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustRegister ¶
func MustRegister(fn interface{}, name, desc string)
func Serve ¶
func Serve(rw io.ReadWriter, config ServeConfig) error
func ServeUnix ¶
func ServeUnix(path string, config ServeUnixConfig) error
func Stdio ¶
func Stdio() io.ReadWriter
Types ¶
type BeforeCall ¶
type BeforeCall func(literal string)
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func New ¶
func New() *Controller
func (*Controller) Call ¶
func (this *Controller) Call(literal string) ([]interface{}, error)
func (*Controller) MustRegister ¶
func (this *Controller) MustRegister(fn interface{}, name, desc string)
func (*Controller) Register ¶
func (this *Controller) Register(fn interface{}, name, desc string) error
func (*Controller) Serve ¶
func (this *Controller) Serve(rw io.ReadWriter, config ServeConfig) error
func (*Controller) ServeUnix ¶
func (this *Controller) ServeUnix(path string, config ServeUnixConfig) error
type ServeConfig ¶
type ServeConfig struct { NoPrompt bool NoColoring bool BeforeCall BeforeCall AfterCall AfterCall }
type ServeUnixConfig ¶
type ServeUnixConfig struct { NoPrompt bool NoColoring bool OnConn OnConn OnDisconn OnDisconn BeforeCall UnixBeforeCall AfterCall UnixAfterCall }
type UnixBeforeCall ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.