Documentation
¶
Overview ¶
Package apislave implements the Slave API.
Index ¶
- type Client
- func (c *Client) GetBusInfo() ([][]interface{}, error)
- func (c *Client) GetPid() (int, error)
- func (c *Client) GetPublications() ([][]string, error)
- func (c *Client) PublisherUpdate(topic string, urls []string) error
- func (c *Client) RequestTopic(topic string, protocols [][]interface{}) ([]interface{}, error)
- func (c *Client) Shutdown(reason string) error
- type ErrorRes
- type Request
- type RequestGetBusInfo
- type RequestGetPid
- type RequestGetPublications
- type RequestPublisherUpdate
- type RequestRequestTopic
- type RequestShutdown
- type Response
- type ResponseGetBusInfo
- type ResponseGetPid
- type ResponseGetPublications
- type ResponsePublisherUpdate
- type ResponseRequestTopic
- type ResponseShutdown
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a Slave API client.
func (*Client) GetBusInfo ¶
GetBusInfo writes a getBusInfo request.
func (*Client) GetPublications ¶
GetPublications writes a getPublications request.
func (*Client) PublisherUpdate ¶
PublisherUpdate writes a publisherUpdate request.
func (*Client) RequestTopic ¶
RequestTopic writes a requestTopic request.
type ErrorRes ¶
ErrorRes is the error returned by the server in case of wrong or unhandled requests.
type RequestGetBusInfo ¶
type RequestGetBusInfo struct {
CallerID string
}
RequestGetBusInfo is a getBusInfo request.
type RequestGetPid ¶
type RequestGetPid struct {
CallerID string
}
RequestGetPid is a getPid request.
type RequestGetPublications ¶
type RequestGetPublications struct {
CallerID string
}
RequestGetPublications is a getPublications request.
type RequestPublisherUpdate ¶
RequestPublisherUpdate is a publisherUpdate request.
type RequestRequestTopic ¶
RequestRequestTopic is a requestTopic request.
type RequestShutdown ¶
RequestShutdown is a shutdown request.
type ResponseGetBusInfo ¶
ResponseGetBusInfo is the response to a getBusInfo request.
type ResponseGetPid ¶
ResponseGetPid is the response to a getPid request.
type ResponseGetPublications ¶
ResponseGetPublications is the response to a getPublications request.
type ResponsePublisherUpdate ¶
ResponsePublisherUpdate is the response to a publisherUpdate request.
type ResponseRequestTopic ¶
ResponseRequestTopic is the response to a requestTopic request.
type ResponseShutdown ¶
ResponseShutdown is the response to a shutdown request.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a Slave API server.
func NewServer ¶
func NewServer(address string, nodeIP net.IP, nodeZone string, writeTimeout time.Duration) (*Server, error)
NewServer allocates a Server.