Documentation ¶
Index ¶
- func NoResponse(_ *mqtt_api.Context, _ string, _ any, _ error)
- func SendIDResponse(c *mqtt_api.Context, identifier string, id string, err error)
- func SendInfoResponse[T any](c *mqtt_api.Context, identifier string, info T, err error)
- func SendInfosResponse[T any](c *mqtt_api.Context, identifier string, data InfosData[T], err error)
- func SendMapResponse(c *mqtt_api.Context, identifier string, data map[string]any, err error)
- func SendMsgResponse(c *mqtt_api.Context, identifier string, _ any, err error)
- func SendString(c *mqtt_api.Context, identifier string, data string, err error)
- func StructToMap(originStruct any) map[string]any
- func WriteBytes(c *mqtt_api.Context, identifier string, bytes []byte, err error)
- type IDResponse
- type InfoResponse
- type InfosData
- type InfosResponse
- type MsgResponse
- type SendResponseFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendIDResponse ¶
func SendInfoResponse ¶
func SendInfosResponse ¶
func SendMapResponse ¶
func SendMsgResponse ¶
func StructToMap ¶
Types ¶
type IDResponse ¶
type IDResponse struct { MsgResponse ID string `json:"id"` }
type InfoResponse ¶
type InfoResponse[T any] struct { MsgResponse Info T `json:"info"` }
type InfosResponse ¶
type InfosResponse[T any] struct { MsgResponse InfosData[T] }
type MsgResponse ¶
Click to show internal directories.
Click to hide internal directories.