Documentation ¶
Index ¶
- Constants
- func AddNewConnectingSession(session *Session)
- func Cleanup()
- func ConnectingSessions() map[*C.coap_session_t]*Session
- func CreateNewCache(expiration int, cleanupInterval int)
- func DeleteUriFilterByKey(key string)
- func DeleteUriFilterByValue(value string)
- func GetAllResource() map[*C.coap_resource_t]*Resource
- func GetDomainNameListFromCertificateFile(certFileName *string) (*C.coap_strlist_t, error)
- func GetUriFilterByKey(key string) (values []string)
- func HandleCache(resp *Pdu, response Pdu, resource *Resource, context *Context, keyItem string) error
- func IsExistedUriQuery(queryParams []string) bool
- func OptionsToString(options []Option) (value string)
- func PinnedCertificate(pinCert *config.PinnedCertificate, cnArg *C.coap_strlist_t)
- func RemoveConnectingSession(session *Session)
- func SetBlockOptionFirstRequest(request *Pdu)
- func SetUriFilter(key string, value string)
- func SplitIdentifier(identifier string) (dns string, serviceType string)
- func Startup()
- type Address
- type Attr
- type Block
- type CoapCode
- type Code
- type Context
- func (context *Context) AddResource(resource *Resource)
- func (context *Context) CanExit() bool
- func (context *Context) CheckResourceDirty(resource *Resource) bool
- func (context *Context) ContextSetPSK(identity string, key []byte)
- func (context *Context) DeleteResource(resource *Resource)
- func (context *Context) DeleteResourceByQuery(query *string)
- func (context *Context) EnableResourceDirty(resource *Resource) int
- func (context *Context) FreeContext()
- func (context *Context) GetResourceByQuery(query *string) (res *Resource)
- func (ctx *Context) NewClientSession(dst Address, proto Proto) *Session
- func (ctx *Context) NewClientSessionDTLS(dst Address, proto Proto) *Session
- func (ctx *Context) NewClientSessionPSK(dst Address, proto Proto, identity string, key []byte) *Session
- func (context *Context) NewEndpoint(address Address, proto Proto) *EndPoint
- func (context *Context) RegisterEventHandler(handler EventHandler)
- func (context *Context) RegisterNackHandler(handler NackHandler)
- func (context *Context) RegisterResponseHandler(handler ResponseHandler)
- func (context *Context) RunOnce(timeout time.Duration) time.Duration
- type ContextPeer
- type DtlsParam
- type EndPoint
- type Event
- type EventHandler
- type HexCBOR
- type MediaType
- type MethodHandler
- type NackHandler
- type NackReason
- type Option
- type OptionKey
- type Pdu
- func (pdu *Pdu) AddOption(key OptionKey, val interface{})
- func (pdu *Pdu) AsMapKey() string
- func (pdu *Pdu) CoapCode() CoapCode
- func (pdu *Pdu) GetOptionIntegerValue(key OptionKey) (int, error)
- func (pdu *Pdu) GetOptionOpaqueValue(key OptionKey) (opaqueValue string)
- func (pdu *Pdu) GetOptionStringValue(key OptionKey) (value string)
- func (pdu *Pdu) IsMessageResponse() bool
- func (pdu *Pdu) OptionValues(o OptionKey) []interface{}
- func (pdu *Pdu) Path() []string
- func (pdu *Pdu) PathString() string
- func (pdu *Pdu) Queries() []string
- func (pdu *Pdu) QueryParams() []string
- func (pdu *Pdu) RemoveOption(key OptionKey)
- func (pdu *Pdu) SetOption(key OptionKey, val interface{})
- func (pdu *Pdu) SetPath(path []string)
- func (pdu *Pdu) SetPathString(path string)
- func (pdu *Pdu) ToString() string
- type Proto
- type Resource
- func (resource *Resource) AddAttr(name string, value *string) *Attr
- func (resource *Resource) CheckDeleted() bool
- func (resource *Resource) GetBlockSize() *int
- func (resource *Resource) GetCustomerId() *int
- func (resource *Resource) GetIsBlockwiseInProgress() bool
- func (resource *Resource) GetObserveNumber() int
- func (resource *Resource) GetRemovableResource() bool
- func (resource *Resource) GetSizeBlock2FromSubscribers() int
- func (resource *Resource) GetTokenFromSubscribers() []byte
- func (resource *Resource) IncreaseObserveNumber()
- func (resource *Resource) IsNotification() bool
- func (resource *Resource) IsObserved() bool
- func (resource *Resource) IsQBlock2() bool
- func (resource *Resource) RegisterHandler(method Code, handler MethodHandler)
- func (resource *Resource) RegisterServerHandler(method Code, handler MethodHandler)
- func (resource *Resource) SetBlockSize(blockSize *int)
- func (resource *Resource) SetCheckDeleted(checkDeleted bool)
- func (resource *Resource) SetCustomerId(id *int)
- func (resource *Resource) SetIsBlockwiseInProgress(isInProgress bool)
- func (resource *Resource) SetIsNotification(isNotification bool)
- func (resource *Resource) SetIsObserved(isObserved bool)
- func (resource *Resource) SetQBlock2(isQBlock2 bool)
- func (resource *Resource) SetSession(session *Session)
- func (resource *Resource) ToRemovableResource()
- func (resource *Resource) TurnOnResourceObservable()
- func (resource *Resource) UriPath() string
- type ResourceFlags
- type ResponseHandler
- type Session
- func (session *Session) DtlsGetPeerCommonName() (_ string, err error)
- func (session *Session) GetCurrentMissingHb() int
- func (session *Session) GetIsHeartBeatTask() bool
- func (session *Session) GetIsNotification() bool
- func (session *Session) GetIsReceiveHeartBeat() bool
- func (session *Session) GetIsReceiveResponseContent() bool
- func (session *Session) GetIsReceivedPreMitigation() bool
- func (session *Session) GetIsSentHeartBeat() bool
- func (session *Session) GetMissingHbAllowed() int
- func (session *Session) GetSessionPtr() *C.coap_session_t
- func (session *Session) HandleForgetNotification(pdu *Pdu)
- func (session *Session) IsHeartbeatAllowed() bool
- func (session *Session) IsWaitNotification() bool
- func (session *Session) NewMessageID() uint16
- func (session *Session) Send(pdu *Pdu) (err error)
- func (session *Session) SessionRelease()
- func (session *Session) SetAckRandomFactor(value decimal.Decimal)
- func (session *Session) SetAckTimeout(value decimal.Decimal)
- func (session *Session) SetCurrentMissingHb(new_hb_allowed int)
- func (session *Session) SetIsHeartBeatTask(isHeartBeat bool)
- func (session *Session) SetIsNotification(isNotification bool)
- func (session *Session) SetIsReceiveHeartBeat(isReceiveHeartBeat bool)
- func (session *Session) SetIsReceiveResponseContent(isReceiveResponseContent bool)
- func (session *Session) SetIsReceivedPreMitigation(isReceivedPreMitigation bool)
- func (session *Session) SetIsSentHeartBeat(isSentHeartBeat bool)
- func (session *Session) SetIsWaitNotification(isWaitNotification bool)
- func (session *Session) SetMaxPayLoads(value int)
- func (session *Session) SetMaxRetransmit(value int)
- func (session *Session) SetNonMaxRetransmit(value int)
- func (session *Session) SetNonReceiveTimeout(value decimal.Decimal)
- func (session *Session) SetNonTimeout(value decimal.Decimal)
- func (session *Session) SetSessionConfig(missingHbAllowed int, maxRetransmit int, ackTimeout float64, ...)
- func (session *Session) SetSessionDefaultConfigIdle()
- func (session *Session) String() string
- func (session *Session) TerminateConnectingSession(context *Context)
- type SessionConfig
- type Type
- type UriQuery
Constants ¶
const ( BLOCK_COMPONENT_NUMBER = 3 SZX_BIT_NUMBER = 3 M_BIT_NUMBER = 1 ADDITIONAL_SZX = 4 MORE_BLOCK = 1 LAST_BLOCK = 0 LARGEST_BLOCK_SIZE = 6 )
Variables ¶
This section is empty.
Functions ¶
func AddNewConnectingSession ¶
func AddNewConnectingSession(session *Session)
* Add new connecting sessions in dots server * parameter: * session the session want to add
func ConnectingSessions ¶
func ConnectingSessions() map[*C.coap_session_t]*Session
* Get all connecting sessions to dots server * return: list of connecting sessions
func CreateNewCache ¶
* Create new cache with with a default expiration time of 'expiration', and which purges expired items every 'cleanupInterval'
func GetAllResource ¶
func GetAllResource() map[*C.coap_resource_t]*Resource
func GetDomainNameListFromCertificateFile ¶
func GetDomainNameListFromCertificateFile(certFileName *string) (*C.coap_strlist_t, error)
* Get domain name list from the certificate file
func HandleCache ¶
func HandleCache(resp *Pdu, response Pdu, resource *Resource, context *Context, keyItem string) error
* Handle delete item if block is last block * Handle add item if item does not exist in cache
func IsExistedUriQuery ¶
Checking uri-query is exist
func OptionsToString ¶
Convert the option to text format
func PinnedCertificate ¶
func PinnedCertificate(pinCert *config.PinnedCertificate, cnArg *C.coap_strlist_t)
* Pinned certificate into the cache
func RemoveConnectingSession ¶
func RemoveConnectingSession(session *Session)
* Remove the connecting sessions in dots server * parameter: * session the session want to remove
func SetBlockOptionFirstRequest ¶
func SetBlockOptionFirstRequest(request *Pdu)
* Set block option with Num = 0 for first request
func SplitIdentifier ¶
* Splitting the identifier into the DNS domain name portion and the application service type portion * * The CN-ID/ DNS-ID includes the DNS domain name portion, but doesn't include the application service type portion * The SRV-ID includes both the DNS domain name portion and the application service type portion
Types ¶
type Block ¶
func StringToBlock ¶
* Convert value type String to type Block
type CoapCode ¶
type CoapCode string
const ( CoapCreated CoapCode = "2.01 Created" CoapDeleted CoapCode = "2.02 Deleted" CoapValid CoapCode = "2.03 Valid" CoapChanged CoapCode = "2.04 Changed" CoapContent CoapCode = "2.05 Content" CoapBadRequest CoapCode = "4.00 Bad Request" CoapBadOption CoapCode = "4.02 Bad Option" CoapForbidden CoapCode = "4.03 Forbidden" CoapNotFound CoapCode = "4.04 Not Found" CoapMethodNotAllowed CoapCode = "4.05 Method Not Allowed" CoapNotAcceptable CoapCode = "4.06 Not Acceptable" CoapConflict CoapCode = "4.09 Conflict" CoapPreconditionFailed CoapCode = "4.12 Precondition Failed" CoapRequestEntityTooLarge CoapCode = "4.13 Request Entity Too Large" CoapUnsupportedMediaType CoapCode = "4.15 Unsupported Media Type" CoapUnprocessableEntity CoapCode = "4.22 Unprocessable Entity" CoapInternalServerError CoapCode = "5.00 Internal Server Error" CoapNotImplemented CoapCode = "5.01 Not Implemented" CoapBadGateway CoapCode = "5.02 Bad Gateway" CoapGatewayTimeout CoapCode = "5.04 Gateway Timeout" CoapProxyingNotSupported CoapCode = "5.05 Proxying Not Supported" )
type Code ¶
type Code uint8
const ( RequestGet Code = 1 RequestPost Code = 2 RequestPut Code = 3 RequestDelete Code = 4 ResponseCreated Code = 65 ResponseDeleted Code = 66 ResponseValid Code = 67 ResponseChanged Code = 68 ResponseContent Code = 69 ResponseLimit2xxCode Code = 100 ResponseBadRequest Code = 128 ResponseBadOption Code = 130 ResponseForbidden Code = 131 ResponseNotFound Code = 132 ResponseMethodNotAllowed Code = 133 ResponseNotAcceptable Code = 134 ResponseConflict Code = 137 ResponsePreconditionFailed Code = 140 RequestEntityTooLarge Code = 141 ResponseUnsupportedMediaType Code = 143 ResponseUnprocessableEntity Code = 150 ResponseInternalServerError Code = 160 ResponseNotImplemented Code = 161 ResponseBadGateway Code = 162 ResponseGatewayTimeout Code = 164 ResponseProxyingNotSupported Code = 165 )
func (Code) HttpCode ¶
*
- Parse pdu libcoap code to http status code for response api
- Reference: https://tools.ietf.org/id/draft-ietf-core-http-mapping-01.html
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContextDtls ¶
func (*Context) AddResource ¶
func (*Context) CheckResourceDirty ¶
Check dirty of resource
func (*Context) ContextSetPSK ¶
func (*Context) DeleteResource ¶
func (*Context) DeleteResourceByQuery ¶
func (*Context) EnableResourceDirty ¶
* Enable resource dirty and return the resource
func (*Context) FreeContext ¶
func (context *Context) FreeContext()
func (*Context) GetResourceByQuery ¶
func (*Context) NewClientSession ¶
func (*Context) NewClientSessionDTLS ¶
func (*Context) NewClientSessionPSK ¶
func (*Context) NewEndpoint ¶
func (*Context) RegisterEventHandler ¶
func (context *Context) RegisterEventHandler(handler EventHandler)
Register event handler to libcoap
func (*Context) RegisterNackHandler ¶
func (context *Context) RegisterNackHandler(handler NackHandler)
func (*Context) RegisterResponseHandler ¶
func (context *Context) RegisterResponseHandler(handler ResponseHandler)
type Event ¶
type Event int
const ( EventSessionDisconnected Event = C.COAP_EVENT_DTLS_CLOSED EventSessionConnected Event = C.COAP_EVENT_DTLS_CONNECTED EventSessionRenegotiate Event = C.COAP_EVENT_DTLS_RENEGOTIATE EventSessionError Event = C.COAP_EVENT_DTLS_ERROR EventPartialBlock Event = C.COAP_EVENT_PARTIAL_BLOCK //(Q-)BLOCK receive errors EventSessionNew Event = C.COAP_EVENT_SERVER_SESSION_NEW EventSessionDelete Event = C.COAP_EVENT_SERVER_SESSION_DEL EventXmitBlockFail Event = C.COAP_EVENT_XMIT_BLOCK_FAIL )
type EventHandler ¶
type HexCBOR ¶
type HexCBOR string
const ( IETF_MITIGATION_SCOPE_HEX HexCBOR = "a1 01" // "ietf-dots-signal-channel:mitigation-scope" IETF_SESSION_CONFIGURATION_HEX HexCBOR = "a1 18 1e" // "ietf-dots-signal-channel:signal-config" IETF_TELEMETRY_PRE_MITIGATION HexCBOR = "a1 18 d0 a1" // "ietf-dots-telemetry:telemetry" IETF_TELEMETRY_SETUP_HEX HexCBOR = "a1 18 cb a1" // "ietf-dots-telemetry:telemetry-setup" )
type MediaType ¶
type MediaType uint16
MediaType specifies the content type of a message.
const ( TextPlain MediaType = 0 // text/plain;charset=utf-8 AppLinkFormat MediaType = 40 // application/link-format AppXML MediaType = 41 // application/xml AppOctets MediaType = 42 // application/octet-stream AppExi MediaType = 47 // application/exi AppJSON MediaType = 50 // application/json AppDotsCbor MediaType = 271 // application/dots+cbor )
Content types.
type MethodHandler ¶
across invocations, sessions are not 'eq'
type NackHandler ¶
type NackHandler func(*Session, *Pdu, NackReason)
type NackReason ¶
type NackReason C.coap_nack_reason_t
const ( NackTooManyRetries NackReason = C.COAP_NACK_TOO_MANY_RETRIES NackNotDeliverable NackReason = C.COAP_NACK_NOT_DELIVERABLE NackRst NackReason = C.COAP_NACK_RST NackTlsFailed NackReason = C.COAP_NACK_TLS_FAILED )
type OptionKey ¶
type OptionKey uint16
const ( OptionIfMatch OptionKey = C.COAP_OPTION_IF_MATCH OptionUriHost OptionKey = C.COAP_OPTION_URI_HOST OptionEtag OptionKey = C.COAP_OPTION_ETAG OptionIfNoneMatch OptionKey = C.COAP_OPTION_IF_NONE_MATCH OptionObserve OptionKey = C.COAP_OPTION_OBSERVE OptionUriPort OptionKey = C.COAP_OPTION_URI_PORT OptionLocationPath OptionKey = C.COAP_OPTION_LOCATION_PATH OptionUriPath OptionKey = C.COAP_OPTION_URI_PATH OptionContentFormat OptionKey = C.COAP_OPTION_CONTENT_FORMAT OptionContentType OptionKey = C.COAP_OPTION_CONTENT_TYPE OptionMaxage OptionKey = C.COAP_OPTION_MAXAGE OptionUriQuery OptionKey = C.COAP_OPTION_URI_QUERY OptionAccept OptionKey = C.COAP_OPTION_ACCEPT OptionLocationQuery OptionKey = C.COAP_OPTION_LOCATION_QUERY OptionProxyUri OptionKey = C.COAP_OPTION_PROXY_URI OptionProxyScheme OptionKey = C.COAP_OPTION_PROXY_SCHEME OptionSize1 OptionKey = C.COAP_OPTION_SIZE1 OptionBlock2 OptionKey = C.COAP_OPTION_BLOCK2 OptionSize2 OptionKey = C.COAP_OPTION_SIZE2 OptionQBlock2 OptionKey = C.COAP_OPTION_Q_BLOCK2 )
type Pdu ¶
func (*Pdu) AsMapKey ¶
* Get key of Pdu: 3 options * 1. Pdu Message ID * 2. Pdu Token * 3. Pdu Message ID + Token
func (*Pdu) CoapCode ¶
* Get full coap code to print debug log when receive response * parameter: * code response code * return CoapCode: * CoapCode: full coap code that user can easy to read and understand (Ex: 2.01 Created)
func (*Pdu) GetOptionIntegerValue ¶
func (*Pdu) GetOptionOpaqueValue ¶
Get value of option with type is opaque
func (*Pdu) GetOptionStringValue ¶
func (*Pdu) IsMessageResponse ¶
* The response data is an message (not an object data) in case the response code is different: * 1. Created * 2. Changed * 3. Content * 4. Conflict * 5. ServiceUnavailable
func (*Pdu) OptionValues ¶
Options gets all the values for the given option.
func (*Pdu) PathString ¶
func (*Pdu) QueryParams ¶
func (*Pdu) RemoveOption ¶
RemoveOption removes all references to an option
func (*Pdu) SetPathString ¶
type Proto ¶
type Proto C.coap_proto_t
const ( ProtoUdp Proto = C.COAP_PROTO_UDP ProtoTcp Proto = C.COAP_PROTO_TCP ProtoDtls Proto = C.COAP_PROTO_DTLS ProtoTls Proto = C.COAP_PROTO_TLS )
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func ResourceInit ¶
func ResourceInit(uri *string, flags ResourceFlags) *Resource
func ResourceUnknownInit ¶
func ResourceUnknownInit() *Resource
func (*Resource) GetIsBlockwiseInProgress ¶
func (*Resource) GetObserveNumber ¶
Get observe number
func (*Resource) GetRemovableResource ¶
func (*Resource) GetSizeBlock2FromSubscribers ¶
* Get size block2 from subscribers
func (*Resource) GetTokenFromSubscribers ¶
* Get token from subscribers
func (*Resource) IncreaseObserveNumber ¶
func (resource *Resource) IncreaseObserveNumber()
Increase observe number
func (*Resource) IsNotification ¶
Get is notification
func (*Resource) IsObserved ¶
func (*Resource) RegisterHandler ¶
func (resource *Resource) RegisterHandler(method Code, handler MethodHandler)
func (*Resource) RegisterServerHandler ¶
func (resource *Resource) RegisterServerHandler(method Code, handler MethodHandler)
func (*Resource) SetBlockSize ¶
Set block size
func (*Resource) SetCheckDeleted ¶
Set check deleted
func (*Resource) SetIsBlockwiseInProgress ¶
func (*Resource) SetIsNotification ¶
Set is notification
func (*Resource) SetIsObserved ¶
Set resource is observed
func (*Resource) SetSession ¶
Set session for resource
func (*Resource) ToRemovableResource ¶
func (resource *Resource) ToRemovableResource()
func (*Resource) TurnOnResourceObservable ¶
func (resource *Resource) TurnOnResourceObservable()
type ResourceFlags ¶
type ResourceFlags int
const ( NotifyNon ResourceFlags = C.COAP_RESOURCE_FLAGS_NOTIFY_NON NotifyCon ResourceFlags = C.COAP_RESOURCE_FLAGS_NOTIFY_CON )
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func GetSessionFromResource ¶
Get session from resource
func (*Session) DtlsGetPeerCommonName ¶
func (*Session) GetCurrentMissingHb ¶
* Get current session missing-hb-allowed * return: current missing-hb-allowed value
func (*Session) GetIsHeartBeatTask ¶
* Get session is-hb-task * return: is-hb-task value
func (*Session) GetIsNotification ¶
* Get session is notification * return: isNotification
func (*Session) GetIsReceiveHeartBeat ¶
* Get session is receive heartbeat * return: isReceiveHeartBeat
func (*Session) GetIsReceiveResponseContent ¶
* Get session is Receive Response Content heartbeat * return: isReceiveResponseContent
func (*Session) GetIsReceivedPreMitigation ¶
* Get session is received pre-mitigation * return: isReceivedPreMitigation
func (*Session) GetIsSentHeartBeat ¶
* Get session is-sent-hb * return: is-sent-hb value
func (*Session) GetMissingHbAllowed ¶
* Get session missing-hb-allowed * return: missing-hb-allowed value
func (*Session) GetSessionPtr ¶
func (session *Session) GetSessionPtr() *C.coap_session_t
* Get session ptr * return: C.coap_session_t
func (*Session) HandleForgetNotification ¶
* Handle forget notification * Send RST message to the dots_server to remove the observe out of resource
func (*Session) IsHeartbeatAllowed ¶
* Check if the missing heartbeat is allowed * return: bool * true: allow * false: not allow
func (*Session) IsWaitNotification ¶
* Get session is wait notitication * return: isWaitNotification
func (*Session) NewMessageID ¶
func (*Session) SessionRelease ¶
func (session *Session) SessionRelease()
func (*Session) SetAckRandomFactor ¶
func (*Session) SetAckTimeout ¶
func (*Session) SetCurrentMissingHb ¶
* Set current session missing-hb-allowed * parameter: * new_hb_allowed new current missing-hb-allowed
func (*Session) SetIsHeartBeatTask ¶
* Set session is-hb-task * parameter: * isHeartBeat new session is-hb-task
func (*Session) SetIsNotification ¶
* Set session is notification * parameter: * isNotification
func (*Session) SetIsReceiveHeartBeat ¶
* Set session is receive heartbeat * parameter: * isReceiveHeartBeat
func (*Session) SetIsReceiveResponseContent ¶
* Set session is receive response heartbeat * parameter: * isReceiveResponseContent
func (*Session) SetIsReceivedPreMitigation ¶
* Set session is received pre-mitigation * parameter: * isReceivedPreMitigation
func (*Session) SetIsSentHeartBeat ¶
* Set session is-sent-hb * parameter: * isHeartBeat new session is-sent-hb
func (*Session) SetIsWaitNotification ¶
* Set session is wait notification * parameter: * isWaitNotification
func (*Session) SetMaxPayLoads ¶
func (*Session) SetMaxRetransmit ¶
func (*Session) SetNonMaxRetransmit ¶
func (*Session) SetNonReceiveTimeout ¶
func (*Session) SetNonTimeout ¶
func (*Session) SetSessionConfig ¶
func (session *Session) SetSessionConfig(missingHbAllowed int, maxRetransmit int, ackTimeout float64, ackRandomFactor float64)
* Update new session configuration for the session * parameter: * missingHbAllowed the new missingHbAllowed * maxRetransmit the new maxRetransmit * ackTimeout the new ackTimeout * ackRandomFactor the new ackRandomFactor
func (*Session) SetSessionDefaultConfigIdle ¶
func (session *Session) SetSessionDefaultConfigIdle()
* Set default session configuration for the session * parameter: * missingHbAllowed the default missingHbAllowed * maxRetransmit the default maxRetransmit * ackTimeout the default ackTimeout * ackRandomFactor the default ackRandomFactor
func (*Session) TerminateConnectingSession ¶
* Terminate the connecting session * parameter:
type SessionConfig ¶
type SessionConfig struct {
// contains filtered or unexported fields
}
type Type ¶
type Type uint8
const ( TypeCon Type = C.COAP_MESSAGE_CON TypeNon Type = C.COAP_MESSAGE_NON TypeAck Type = C.COAP_MESSAGE_ACK TypeRst Type = C.COAP_MESSAGE_RST )
type UriQuery ¶
type UriQuery string
const ( TargetPrefix UriQuery = "target-prefix" TargetPort UriQuery = "target-port" TargetProtocol UriQuery = "target-protocol" TargetFqdn UriQuery = "target-fqdn" TargetUri UriQuery = "target-uri" AliasName UriQuery = "alias-name" SourcePrefix UriQuery = "source-prefix" SourcePort UriQuery = "source-port" SourceIcmpType UriQuery = "source-icmp-type" Content UriQuery = "c=" )