Documentation ¶
Index ¶
- func CreateModuleListAllRequest() ([]byte, error)
- func CreateModuleListAllResponse(data []byte) (*pb.ModuleListReply, error)
- func CreateModuleListRequest() ([]byte, error)
- func CreateModuleListResponse(data []byte) (*pb.ModuleListReply, error)
- func CreateSettingsRequest(request string) ([]byte, error)
- func CreateSettingsResponse(data []byte) (*pb.Settings, error)
- func CreateStatusRequest(request string) ([]byte, error)
- func CreateStatusResponse(data []byte) (*pb.Status, error)
- type Message
- type ReadStatus
- type StatusRequest
- type StatusRequestMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateModuleListAllResponse ¶
func CreateModuleListAllResponse(data []byte) (*pb.ModuleListReply, error)
func CreateModuleListRequest ¶
func CreateModuleListResponse ¶
func CreateModuleListResponse(data []byte) (*pb.ModuleListReply, error)
func CreateSettingsRequest ¶
func CreateStatusRequest ¶
Create a request message using `request` as the type of status check, eg. read
XXX: should this receive a protobuf message? if so the type could come from it XXX: should this return a []byte?
Types ¶
type ReadStatus ¶
type ReadStatus struct{}
type StatusRequest ¶
type StatusRequest struct{}
func (*StatusRequest) FromJSON ¶
func (s *StatusRequest) FromJSON(bytes []byte) (err error)
func (*StatusRequest) ToJSON ¶
func (s *StatusRequest) ToJSON() (bytes []byte, err error)
type StatusRequestMessage ¶
type StatusRequestMessage struct {
// contains filtered or unexported fields
}
func NewStatusRequest ¶
func NewStatusRequest() (req StatusRequestMessage)
func (StatusRequestMessage) Body ¶
func (s StatusRequestMessage) Body() map[string]interface{}
func (StatusRequestMessage) Name ¶
func (s StatusRequestMessage) Name() string
Click to show internal directories.
Click to hide internal directories.