Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Entity ¶
func Entity(id netrpc.EntityID) cchat.Identifier
Entity looks up the entity registry. Nil is returned if the ID is not found.
func FreeEntity ¶
FreeEntity frees the entity from the global registry. If Type is a Service, then the function does nothing.
func PutEntity ¶
func PutEntity(svc cchat.Service, ider cchat.Identifier)
PutEntity puts the given Identifier entity into the global map. It does nothing if ider is of type cchat.Service.
func Register ¶
Register registers a cchat.Service into the global RPC server. This function must be called before Serve is called; it is best called in init(). The service's ID must not contain any slashes, or the function will panic.
func ServeWithCodec ¶
func ServeWithCodec(codec rpc.ServerCodec)
ServeWithCodec serves the giveen cchat service with the given RPC server codec over stdio.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.