Documentation ¶
Index ¶
- Variables
- func Copy(s Sender, r Receiver) (int, error)
- func DecodeStream(dst io.Writer, src Receiver, tag string) error
- func EncodeStream(sender Sender, reader io.Reader, tag string)
- func Pipe() (Receiver, Sender)
- type Message
- type NopReceiver
- type NopSender
- type Object
- func (o *Object) Attach(name string) (in Receiver, out *Object, err error)
- func (o *Object) Connect() (net.Conn, error)
- func (o *Object) Error(msg string, args ...interface{}) error
- func (o *Object) Get() (string, error)
- func (o *Object) Log(msg string, args ...interface{}) error
- func (o *Object) Ls() ([]string, error)
- func (o *Object) Set(vals ...string) error
- func (o *Object) SetJson(val interface{}) error
- func (o *Object) Spawn(cmd ...string) (out *Object, err error)
- func (o *Object) Start() error
- func (o *Object) Stop() error
- func (o *Object) Watch() (Receiver, error)
- type Receiver
- type Sender
- type Server
- func (s *Server) Catchall(h Sender) *Server
- func (s *Server) Close() error
- func (s *Server) OnAttach(h Sender) *Server
- func (s *Server) OnError(h Sender) *Server
- func (s *Server) OnGet(h Sender) *Server
- func (s *Server) OnLog(h Sender) *Server
- func (s *Server) OnLs(h Sender) *Server
- func (s *Server) OnSpawn(h Sender) *Server
- func (s *Server) OnStart(h Sender) *Server
- func (s *Server) OnStop(h Sender) *Server
- func (s *Server) OnVerb(v Verb, h Sender) *Server
- func (s *Server) Send(msg *Message) (Receiver, error)
- func (s *Server) Unwrap() libchan.Sender
- type Tree
- type Verb
Constants ¶
This section is empty.
Variables ¶
View Source
var NotImplemented = WrapSender(libchan.Repeater(notImplementedMsg.LibchanMessage()))
View Source
var Ret = libchan.Ret
View Source
var RetPipe = WrapSender(libchan.RetPipe)
Functions ¶
Types ¶
type Message ¶
func (*Message) LibchanMessage ¶
type NopReceiver ¶
type NopReceiver struct{}
func (NopReceiver) Unwrap ¶
func (r NopReceiver) Unwrap() libchan.Receiver
type Receiver ¶
func WrapReceiver ¶
type Sender ¶
type Sender interface { Send(msg *Message) (Receiver, error) Close() error Unwrap() libchan.Sender }
func WrapSender ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.