Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNameAlreadyRegistered = errors.New("service already registered") ErrTooManyServices = errors.New("too many services") )
Registration failure reasons.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service handle.
If a stream is opened as a result of service registration or a call, the appropriate stream constructor must be called synchronously in the receptor function.
func MustRegister ¶
MustRegister a service or panic. The info receptor is invoked with info packets' content.
func (*Service) Call ¶
Call the service. The receptor is invoked once with the reply packet content.
Click to show internal directories.
Click to hide internal directories.