Documentation ¶
Index ¶
Constants ¶
View Source
const ( TYPE_MAKE_GREETER = 0x9685d09cb0114f1f TYPE_HELLO = 0xa79e175dc97ed3ab )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hello ¶
type Hello struct {
From string
}
func (*Hello) CoolMsg_Marshal ¶
func (*Hello) CoolMsg_TypeId ¶
func (*Hello) CoolMsg_Unmarshal ¶
type MakeGreeter ¶
type MakeGreeter struct {
Name string
}
func (*MakeGreeter) CoolMsg_Marshal ¶
func (m *MakeGreeter) CoolMsg_Marshal() []byte
func (*MakeGreeter) CoolMsg_TypeId ¶
func (m *MakeGreeter) CoolMsg_TypeId() uint64
func (*MakeGreeter) CoolMsg_Unmarshal ¶
func (m *MakeGreeter) CoolMsg_Unmarshal(buf []byte) bool
type RootObject ¶
type RootObject struct {
Name string
}
The RootObject will be our bootstrap object, it responds to MakeGreeter messages with MakeGreeterReply messages.
func (*RootObject) Clunk ¶
func (r *RootObject) Clunk(cs *coolmsg.ConnServer)
Clunk is the cleanup method of an object, the name Clunk comes from the 9p protocol. An object is clunked when a server is done with it.
func (*RootObject) Message ¶
func (r *RootObject) Message(ctx context.Context, cs *coolmsg.ConnServer, m coolmsg.Message, respond coolmsg.RespondFunc)
func (*RootObject) UnknownMessage ¶
func (r *RootObject) UnknownMessage(ctx context.Context, cs *coolmsg.ConnServer, t uint64, buf []byte, respond coolmsg.RespondFunc)
Click to show internal directories.
Click to hide internal directories.