coapconv

package
v0.0.0-...-30e1d48 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoapCodeToStatus

func CoapCodeToStatus(code coap.COAPCode) pbRA.Status

func GrpcCode2CoapCode

func GrpcCode2CoapCode(statusCode codes.Code, method coap.COAPCode) coap.COAPCode

func HttpCode2CoapCode

func HttpCode2CoapCode(statusCode int, method coap.COAPCode) coap.COAPCode

func MakeCommandMetadata

func MakeCommandMetadata(req *coap.Request) pbCQRS.CommandMetadata

func MakeContent

func MakeContent(resp coap.Message) pbRA.Content

func MakeMediaType

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

func MakeNotifyResourceContentChangedRequest

func MakeNotifyResourceContentChangedRequest(resourceId string, authContext pbCQRS.AuthorizationContext, req *coap.Request) pbRA.NotifyResourceContentChangedRequest

func MakeNotifyResourceContentUpdateProcessedRequest

func MakeNotifyResourceContentUpdateProcessedRequest(resourceId, correlationId string, authContext pbCQRS.AuthorizationContext, req *coap.Request) pbRA.NotifyResourceContentUpdateProcessedRequest

func MakeUpdateResourceContentRequest

func MakeUpdateResourceContentRequest(resourceId, correlationId string, authContext pbCQRS.AuthorizationContext, req *coap.Request) pbRA.UpdateResourceContentRequest

func NewCoapUpdateContentRequest

func NewCoapUpdateContentRequest(client *coap.ClientConn, href string, reqContentUpdate *pbRA.ResourceContentUpdatePending) (coap.Message, error)

func StatusToCoapCode

func StatusToCoapCode(status pbRA.Status) coap.COAPCode

Types

This section is empty.

Jump to

Keyboard shortcuts

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