coapconv

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoapCodeToStatus

func CoapCodeToStatus(code codes.Code) pbRA.Status

func GrpcCode2CoapCode

func GrpcCode2CoapCode(statusCode codes.Code, method coapCodes.Code) coapCodes.Code

func HttpCode2CoapCode

func HttpCode2CoapCode(statusCode int, method coapCodes.Code) coapCodes.Code

func MakeCommandMetadata

func MakeCommandMetadata(sequenceNumber uint64, connectionID string) pbCQRS.CommandMetadata

func MakeConfirmResourceDeleteRequest added in v1.1.0

func MakeConfirmResourceDeleteRequest(resourceId, correlationId string, authCtx pbCQRS.AuthorizationContext, connectionID string, req *pool.Message) pbRA.ConfirmResourceDeleteRequest

func MakeConfirmResourceRetrieveRequest

func MakeConfirmResourceRetrieveRequest(resourceId, correlationId string, authCtx pbCQRS.AuthorizationContext, connectionID string, req *pool.Message) pbRA.ConfirmResourceRetrieveRequest

func MakeConfirmResourceUpdateRequest

func MakeConfirmResourceUpdateRequest(resourceId, correlationId string, authCtx pbCQRS.AuthorizationContext, connectionID string, req *pool.Message) pbRA.ConfirmResourceUpdateRequest

func MakeContent

func MakeContent(opts message.Options, body io.Reader) pbRA.Content

func MakeMediaType

func MakeMediaType(coapContentFormat int32, contentType string) (message.MediaType, error)

func MakeNotifyResourceChangedRequest

func MakeNotifyResourceChangedRequest(resourceId string, authCtx pbCQRS.AuthorizationContext, connectionID string, req *pool.Message) pbRA.NotifyResourceChangedRequest

func MakeRetrieveResourceRequest

func MakeRetrieveResourceRequest(resourceId, resourceInterface, correlationId string, authCtx pbCQRS.AuthorizationContext, connectionID string, req *mux.Message) pbRA.RetrieveResourceRequest

func MakeUpdateResourceRequest

func MakeUpdateResourceRequest(deviceID, href string, req *mux.Message) *pbGRPC.UpdateResourceValuesRequest

func NewCoapResourceDeleteRequest added in v1.1.0

func NewCoapResourceDeleteRequest(ctx context.Context, event *pb.Event_ResourceDeletePending) (*pool.Message, error)

func NewCoapResourceRetrieveRequest

func NewCoapResourceRetrieveRequest(ctx context.Context, event *pb.Event_ResourceRetrievePending) (*pool.Message, error)

func NewCoapResourceUpdateRequest

func NewCoapResourceUpdateRequest(ctx context.Context, event *pb.Event_ResourceUpdatePending) (*pool.Message, error)

func StatusToCoapCode

func StatusToCoapCode(status pbGRPC.Status, cmdCode codes.Code) codes.Code

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL