Documentation ¶
Index ¶
- func CoapCodeToStatus(code codes.Code, operation Operation) commands.Status
- func GetAccept(opts message.Options) message.MediaType
- func GetContentData(opts message.Options, body io.Reader) (data []byte, contentFormat int32)
- func GrpcErr2CoapCode(err error, operation Operation) coapCodes.Code
- func MakeMediaType(coapContentFormat int32, contentType string) (message.MediaType, error)
- func NewCoapResourceCreateRequest(ctx context.Context, messagePool *pool.Pool, ...) (*pool.Message, error)
- func NewCoapResourceDeleteRequest(ctx context.Context, messagePool *pool.Pool, ...) (*pool.Message, error)
- func NewCoapResourceRetrieveRequest(ctx context.Context, messagePool *pool.Pool, ...) (*pool.Message, error)
- func NewCoapResourceUpdateRequest(ctx context.Context, messagePool *pool.Pool, ...) (*pool.Message, error)
- func NewCommandMetadata(sequenceNumber uint64, connectionID string) *commands.CommandMetadata
- func NewConfirmResourceCreateRequest(resourceID *commands.ResourceId, correlationID, connectionID string, ...) *commands.ConfirmResourceCreateRequest
- func NewConfirmResourceDeleteRequest(resourceID *commands.ResourceId, correlationID, connectionID string, ...) *commands.ConfirmResourceDeleteRequest
- func NewConfirmResourceRetrieveRequest(resourceID *commands.ResourceId, correlationID, connectionID string, ...) *commands.ConfirmResourceRetrieveRequest
- func NewConfirmResourceUpdateRequest(resourceID *commands.ResourceId, correlationID, connectionID string, ...) *commands.ConfirmResourceUpdateRequest
- func NewContent(opts message.Options, body io.Reader) *commands.Content
- func NewCreateResourceRequest(resourceID *commands.ResourceId, req *mux.Message, connectionID string) (*commands.CreateResourceRequest, error)
- func NewDeleteResourceRequest(resourceID *commands.ResourceId, req *mux.Message, connectionID string) (*commands.DeleteResourceRequest, error)
- func NewNotifyResourceChangedRequest(resourceID *commands.ResourceId, resourceTypes []string, connectionID string, ...) *commands.NotifyResourceChangedRequest
- func NewNotifyResourceChangedRequestsFromBatchResourceDiscovery(deviceID, connectionID string, req *pool.Message) ([]*commands.NotifyResourceChangedRequest, error)
- func NewRetrieveResourceRequest(resourceID *commands.ResourceId, req *mux.Message, connectionID string) (*commands.RetrieveResourceRequest, error)
- func NewUpdateResourceRequest(resourceID *commands.ResourceId, req *mux.Message, connectionID string) (*commands.UpdateResourceRequest, error)
- func StatusToCoapCode(status commands.Status, operation Operation) codes.Code
- func ToGrpcCode(code coapCodes.Code, def codes.Code) codes.Code
- func ToHTTPCode(code coapCodes.Code, def int) int
- type EncodeFunc
- type Operation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContentData ¶
func MakeMediaType ¶
func NewCommandMetadata ¶
func NewCommandMetadata(sequenceNumber uint64, connectionID string) *commands.CommandMetadata
func NewConfirmResourceCreateRequest ¶
func NewConfirmResourceCreateRequest(resourceID *commands.ResourceId, correlationID, connectionID string, req *pool.Message) *commands.ConfirmResourceCreateRequest
func NewConfirmResourceDeleteRequest ¶
func NewConfirmResourceDeleteRequest(resourceID *commands.ResourceId, correlationID, connectionID string, req *pool.Message) *commands.ConfirmResourceDeleteRequest
func NewConfirmResourceRetrieveRequest ¶
func NewConfirmResourceRetrieveRequest(resourceID *commands.ResourceId, correlationID, connectionID string, req *pool.Message) *commands.ConfirmResourceRetrieveRequest
func NewConfirmResourceUpdateRequest ¶
func NewConfirmResourceUpdateRequest(resourceID *commands.ResourceId, correlationID, connectionID string, req *pool.Message) *commands.ConfirmResourceUpdateRequest
func NewCreateResourceRequest ¶
func NewCreateResourceRequest(resourceID *commands.ResourceId, req *mux.Message, connectionID string) (*commands.CreateResourceRequest, error)
func NewDeleteResourceRequest ¶
func NewDeleteResourceRequest(resourceID *commands.ResourceId, req *mux.Message, connectionID string) (*commands.DeleteResourceRequest, error)
func NewNotifyResourceChangedRequest ¶
func NewNotifyResourceChangedRequest(resourceID *commands.ResourceId, resourceTypes []string, connectionID string, req *pool.Message) *commands.NotifyResourceChangedRequest
func NewRetrieveResourceRequest ¶
func NewRetrieveResourceRequest(resourceID *commands.ResourceId, req *mux.Message, connectionID string) (*commands.RetrieveResourceRequest, error)
func NewUpdateResourceRequest ¶
func NewUpdateResourceRequest(resourceID *commands.ResourceId, req *mux.Message, connectionID string) (*commands.UpdateResourceRequest, error)
func StatusToCoapCode ¶
func ToGrpcCode ¶ added in v2.6.0
ToGrpcCode converts coap.Code to grpc.Code
Types ¶
type EncodeFunc ¶
func GetEncoder ¶
func GetEncoder(accept message.MediaType) (EncodeFunc, error)
GetEncoder returns encoder by accept
Click to show internal directories.
Click to hide internal directories.