Documentation ¶
Index ¶
- func NewServiceStub(c *Client, name string, identification string) *serviceStub
- type Client
- func (c *Client) ClientId() string
- func (c *Client) Close()
- func (c *Client) Log(what string, data interface{})
- func (c *Client) NewService(name string, identification string) *service
- func (c *Client) Publish(event string, data interface{})
- func (c *Client) PublishRaw(event string, data []byte)
- func (c *Client) Quit() <-chan struct{}
- func (c *Client) RegisterService(s *service)
- func (c *Client) Spy(serviceName string, serviceIdentification string, handler spyHandler) error
- func (c *Client) Subscribe(eventPattern string, handler subscriberHandler) error
- func (c *Client) SubscribeUntil(eventPattern string, handler subscriberUntilHandler) error
- type ClientOpts
- type EventHandlerFunc
- type RequestHandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServiceStub ¶
Types ¶
type Client ¶
type Client struct { // The cellaserv service stub Cs *serviceStub // contains filtered or unexported fields }
func NewClient ¶
func NewClient(opts ClientOpts) *Client
NewConnection returns a Client instance connected to cellaserv or panics
func (*Client) NewService ¶
NewService returns an initialized Service instance
func (*Client) PublishRaw ¶
func (*Client) Quit ¶
func (c *Client) Quit() <-chan struct{}
Quit returns the receive-only quit channel.
func (*Client) RegisterService ¶
func (c *Client) RegisterService(s *service)
func (*Client) SubscribeUntil ¶
type ClientOpts ¶
type EventHandlerFunc ¶
type RequestHandlerFunc ¶
Click to show internal directories.
Click to hide internal directories.