SYMBOL INDEX (544 symbols across 48 files) FILE: bytecontent.go function NewBytesPayload (line 4) | func NewBytesPayload(v []byte) MessagePayload { type BytesPayload (line 10) | type BytesPayload struct method GetBytes (line 14) | func (p *BytesPayload) GetBytes() []byte { method Length (line 18) | func (p *BytesPayload) Length() int { method String (line 22) | func (p *BytesPayload) String() string { FILE: canopus.go function init (line 15) | func init() { constant UDP (line 25) | UDP = "udp" constant MessageConfirmable (line 29) | MessageConfirmable = 0 constant MessageNonConfirmable (line 30) | MessageNonConfirmable = 1 constant MessageAcknowledgment (line 31) | MessageAcknowledgment = 2 constant MessageReset (line 32) | MessageReset = 3 constant DataHeader (line 37) | DataHeader = 0 constant DataCode (line 38) | DataCode = 1 constant DataMsgIDStart (line 39) | DataMsgIDStart = 2 constant DataMsgIDEnd (line 40) | DataMsgIDEnd = 4 constant DataTokenStart (line 41) | DataTokenStart = 4 type OptionCode (line 45) | type OptionCode constant OptionIfMatch (line 52) | OptionIfMatch OptionCode = 1 constant OptionURIHost (line 54) | OptionURIHost OptionCode = 3 constant OptionEtag (line 55) | OptionEtag OptionCode = 4 constant OptionIfNoneMatch (line 56) | OptionIfNoneMatch OptionCode = 5 constant OptionObserve (line 57) | OptionObserve OptionCode = 6 constant OptionURIPort (line 58) | OptionURIPort OptionCode = 7 constant OptionLocationPath (line 59) | OptionLocationPath OptionCode = 8 constant OptionURIPath (line 60) | OptionURIPath OptionCode = 11 constant OptionContentFormat (line 61) | OptionContentFormat OptionCode = 12 constant OptionMaxAge (line 62) | OptionMaxAge OptionCode = 14 constant OptionURIQuery (line 63) | OptionURIQuery OptionCode = 15 constant OptionAccept (line 64) | OptionAccept OptionCode = 17 constant OptionLocationQuery (line 65) | OptionLocationQuery OptionCode = 20 constant OptionBlock2 (line 66) | OptionBlock2 OptionCode = 23 constant OptionBlock1 (line 67) | OptionBlock1 OptionCode = 27 constant OptionSize2 (line 68) | OptionSize2 OptionCode = 28 constant OptionProxyURI (line 69) | OptionProxyURI OptionCode = 35 constant OptionProxyScheme (line 70) | OptionProxyScheme OptionCode = 39 constant OptionSize1 (line 71) | OptionSize1 OptionCode = 60 type CoapCode (line 75) | type CoapCode constant Get (line 78) | Get CoapCode = 1 constant Post (line 79) | Post CoapCode = 2 constant Put (line 80) | Put CoapCode = 3 constant Delete (line 81) | Delete CoapCode = 4 constant CoapCodeEmpty (line 84) | CoapCodeEmpty CoapCode = 0 constant CoapCodeCreated (line 85) | CoapCodeCreated CoapCode = 65 constant CoapCodeDeleted (line 86) | CoapCodeDeleted CoapCode = 66 constant CoapCodeValid (line 87) | CoapCodeValid CoapCode = 67 constant CoapCodeChanged (line 88) | CoapCodeChanged CoapCode = 68 constant CoapCodeContent (line 89) | CoapCodeContent CoapCode = 69 constant CoapCodeContinue (line 90) | CoapCodeContinue CoapCode = 95 constant CoapCodeBadRequest (line 93) | CoapCodeBadRequest CoapCode = 128 constant CoapCodeUnauthorized (line 94) | CoapCodeUnauthorized CoapCode = 129 constant CoapCodeBadOption (line 95) | CoapCodeBadOption CoapCode = 130 constant CoapCodeForbidden (line 96) | CoapCodeForbidden CoapCode = 131 constant CoapCodeNotFound (line 97) | CoapCodeNotFound CoapCode = 132 constant CoapCodeMethodNotAllowed (line 98) | CoapCodeMethodNotAllowed CoapCode = 133 constant CoapCodeNotAcceptable (line 99) | CoapCodeNotAcceptable CoapCode = 134 constant CoapCodeRequestEntityIncomplete (line 100) | CoapCodeRequestEntityIncomplete CoapCode = 136 constant CoapCodeConflict (line 101) | CoapCodeConflict CoapCode = 137 constant CoapCodePreconditionFailed (line 102) | CoapCodePreconditionFailed CoapCode = 140 constant CoapCodeRequestEntityTooLarge (line 103) | CoapCodeRequestEntityTooLarge CoapCode = 141 constant CoapCodeUnsupportedContentFormat (line 104) | CoapCodeUnsupportedContentFormat CoapCode = 143 constant CoapCodeInternalServerError (line 107) | CoapCodeInternalServerError CoapCode = 160 constant CoapCodeNotImplemented (line 108) | CoapCodeNotImplemented CoapCode = 161 constant CoapCodeBadGateway (line 109) | CoapCodeBadGateway CoapCode = 162 constant CoapCodeServiceUnavailable (line 110) | CoapCodeServiceUnavailable CoapCode = 163 constant CoapCodeGatewayTimeout (line 111) | CoapCodeGatewayTimeout CoapCode = 164 constant CoapCodeProxyingNotSupported (line 112) | CoapCodeProxyingNotSupported CoapCode = 165 constant DefaultAckTimeout (line 115) | DefaultAckTimeout = 2 constant DefaultAckRandomFactor (line 116) | DefaultAckRandomFactor = 1.5 constant DefaultMaxRetransmit (line 117) | DefaultMaxRetransmit = 4 constant DefaultNStart (line 118) | DefaultNStart = 1 constant DefaultLeisure (line 119) | DefaultLeisure = 5 constant DefaultProbingRate (line 120) | DefaultProbingRate = 1 constant CoapDefaultHost (line 122) | CoapDefaultHost = "" constant CoapDefaultPort (line 123) | CoapDefaultPort = 5683 constant CoapsDefaultPort (line 124) | CoapsDefaultPort = 5684 constant PayloadMarker (line 126) | PayloadMarker = 0xff constant MaxPacketSize (line 127) | MaxPacketSize = 1500 constant MessageIDPurgeDuration (line 130) | MessageIDPurgeDuration = 60 type RouteHandler (line 132) | type RouteHandler type ProxyFilter (line 135) | type ProxyFilter type ProxyHandler (line 136) | type ProxyHandler type MediaType (line 138) | type MediaType constant MediaTypeTextPlain (line 141) | MediaTypeTextPlain MediaType = 0 constant MediaTypeTextXML (line 142) | MediaTypeTextXML MediaType = 1 constant MediaTypeTextCsv (line 143) | MediaTypeTextCsv MediaType = 2 constant MediaTypeTextHTML (line 144) | MediaTypeTextHTML MediaType = 3 constant MediaTypeImageGif (line 145) | MediaTypeImageGif MediaType = 21 constant MediaTypeImageJpeg (line 146) | MediaTypeImageJpeg MediaType = 22 constant MediaTypeImagePng (line 147) | MediaTypeImagePng MediaType = 23 constant MediaTypeImageTiff (line 148) | MediaTypeImageTiff MediaType = 24 constant MediaTypeAudioRaw (line 149) | MediaTypeAudioRaw MediaType = 25 constant MediaTypeVideoRaw (line 150) | MediaTypeVideoRaw MediaType = 26 constant MediaTypeApplicationLinkFormat (line 151) | MediaTypeApplicationLinkFormat MediaType = 40 constant MediaTypeApplicationXML (line 152) | MediaTypeApplicationXML MediaType = 41 constant MediaTypeApplicationOctetStream (line 153) | MediaTypeApplicationOctetStream MediaType = 42 constant MediaTypeApplicationRdfXML (line 154) | MediaTypeApplicationRdfXML MediaType = 43 constant MediaTypeApplicationSoapXML (line 155) | MediaTypeApplicationSoapXML MediaType = 44 constant MediaTypeApplicationAtomXML (line 156) | MediaTypeApplicationAtomXML MediaType = 45 constant MediaTypeApplicationXmppXML (line 157) | MediaTypeApplicationXmppXML MediaType = 46 constant MediaTypeApplicationExi (line 158) | MediaTypeApplicationExi MediaType = 47 constant MediaTypeApplicationFastInfoSet (line 159) | MediaTypeApplicationFastInfoSet MediaType = 48 constant MediaTypeApplicationSoapFastInfoSet (line 160) | MediaTypeApplicationSoapFastInfoSet MediaType = 49 constant MediaTypeApplicationJSON (line 161) | MediaTypeApplicationJSON MediaType = 50 constant MediaTypeApplicationXObitBinary (line 162) | MediaTypeApplicationXObitBinary MediaType = 51 constant MediaTypeTextPlainVndOmaLwm2m (line 163) | MediaTypeTextPlainVndOmaLwm2m MediaType = 1541 constant MediaTypeTlvVndOmaLwm2m (line 164) | MediaTypeTlvVndOmaLwm2m MediaType = 1542 constant MediaTypeJSONVndOmaLwm2m (line 165) | MediaTypeJSONVndOmaLwm2m MediaType = 1543 constant MediaTypeOpaqueVndOmaLwm2m (line 166) | MediaTypeOpaqueVndOmaLwm2m MediaType = 1544 constant MethodGet (line 170) | MethodGet = "GET" constant MethodPut (line 171) | MethodPut = "PUT" constant MethodPost (line 172) | MethodPost = "POST" constant MethodDelete (line 173) | MethodDelete = "DELETE" constant MethodOptions (line 174) | MethodOptions = "OPTIONS" constant MethodPatch (line 175) | MethodPatch = "PATCH" type BlockSizeType (line 178) | type BlockSizeType constant BlockSize16 (line 181) | BlockSize16 BlockSizeType = 0 constant BlockSize32 (line 182) | BlockSize32 BlockSizeType = 1 constant BlockSize64 (line 183) | BlockSize64 BlockSizeType = 2 constant BlockSize128 (line 184) | BlockSize128 BlockSizeType = 3 constant BlockSize256 (line 185) | BlockSize256 BlockSizeType = 4 constant BlockSize512 (line 186) | BlockSize512 BlockSizeType = 5 constant BlockSize1024 (line 187) | BlockSize1024 BlockSizeType = 6 constant SecNoSec (line 209) | SecNoSec = "NoSec" constant SecPreSharedKey (line 210) | SecPreSharedKey = "PreSharedKey" constant SecRawPublicKey (line 211) | SecRawPublicKey = "RawPublicKey" constant SecCertificate (line 212) | SecCertificate = "Certificate" type CoapServer (line 216) | type CoapServer interface type ServerConnection (line 263) | type ServerConnection interface type Option (line 273) | type Option interface type Session (line 283) | type Session interface type Request (line 292) | type Request interface type Response (line 309) | type Response interface type Connection (line 316) | type Connection interface type MessagePayload (line 329) | type MessagePayload interface type Message (line 335) | type Message interface type Route (line 367) | type Route interface type FnEventNotify (line 377) | type FnEventNotify type FnEventStart (line 378) | type FnEventStart type FnEventClose (line 379) | type FnEventClose type FnEventDiscover (line 380) | type FnEventDiscover type FnEventError (line 381) | type FnEventError type FnEventObserve (line 382) | type FnEventObserve type FnEventObserveCancel (line 383) | type FnEventObserveCancel type FnEventMessage (line 384) | type FnEventMessage type FnEventBlockMessage (line 385) | type FnEventBlockMessage type EventCode (line 387) | type EventCode constant EventStart (line 390) | EventStart EventCode = 0 constant EventClose (line 391) | EventClose EventCode = 1 constant EventDiscover (line 392) | EventDiscover EventCode = 2 constant EventMessage (line 393) | EventMessage EventCode = 3 constant EventError (line 394) | EventError EventCode = 4 constant EventObserve (line 395) | EventObserve EventCode = 5 constant EventObserveCancel (line 396) | EventObserveCancel EventCode = 6 constant EventNotify (line 397) | EventNotify EventCode = 7 type ObserveMessage (line 400) | type ObserveMessage interface type Events (line 406) | type Events interface type BlockMessage (line 428) | type BlockMessage interface FILE: client.go function Dial (line 5) | func Dial(address string) (conn Connection, err error) { function DialDTLS (line 18) | func DialDTLS(address, identity, psk string) (conn Connection, err error) { function NewObserveMessage (line 32) | func NewObserveMessage(r string, val interface{}, msg Message) ObserveMe... type CoapObserveMessage (line 40) | type CoapObserveMessage struct method GetResource (line 47) | func (m *CoapObserveMessage) GetResource() string { method GetValue (line 51) | func (m *CoapObserveMessage) GetValue() interface{} { method GetMessage (line 55) | func (m *CoapObserveMessage) GetMessage() Message { FILE: conn.go function MessageSizeAllowed (line 9) | func MessageSizeAllowed(req Request) bool { type UDPConnection (line 20) | type UDPConnection struct method ObserveResource (line 24) | func (c *UDPConnection) ObserveResource(resource string) (tok string, ... method CancelObserveResource (line 35) | func (c *UDPConnection) CancelObserveResource(resource string, token s... method StopObserve (line 44) | func (c *UDPConnection) StopObserve(ch chan ObserveMessage) { method Close (line 48) | func (c *UDPConnection) Close() error { method Observe (line 52) | func (c *UDPConnection) Observe(ch chan ObserveMessage) { method Send (line 76) | func (c *UDPConnection) Send(req Request) (resp Response, err error) { method SendMessage (line 153) | func (c *UDPConnection) SendMessage(msg Message) (resp Response, err e... method Write (line 200) | func (c *UDPConnection) Write(b []byte) (int, error) { method Read (line 204) | func (c *UDPConnection) Read(b []byte) (int, error) { FILE: corelink.go type CoreLinkFormatPayload (line 4) | type CoreLinkFormatPayload struct method GetBytes (line 7) | func (p *CoreLinkFormatPayload) GetBytes() []byte { method Length (line 11) | func (p *CoreLinkFormatPayload) Length() int { method String (line 15) | func (p *CoreLinkFormatPayload) String() string { FILE: coreresource.go function NewCoreAttribute (line 4) | func NewCoreAttribute(key string, value interface{}) *CoreAttribute { function NewCoreResource (line 12) | func NewCoreResource() *CoreResource { FILE: coreresource_test.go function TestCoreResourceParsing (line 9) | func TestCoreResourceParsing(t *testing.T) { FILE: dtls.go function init (line 176) | func init() { function server_bio_method_init (line 184) | func server_bio_method_init() { function NewServerDtlsContext (line 188) | func NewServerDtlsContext() (ctx *ServerDtlsContext, err error) { type ServerDtlsContext (line 210) | type ServerDtlsContext struct function go_session_bio_read (line 215) | func go_session_bio_read(bio *C.BIO, buf *C.char, num C.int) C.int { function go_session_bio_write (line 229) | func go_session_bio_write(bio *C.BIO, buf *C.char, num C.int) C.int { function go_session_bio_free (line 251) | func go_session_bio_free(bio *C.BIO) C.int { function go_server_psk_callback (line 264) | func go_server_psk_callback(ssl *C.SSL, identity *C.char, psk *C.char, m... function generate_cookie_callback (line 286) | func generate_cookie_callback(ssl *C.SSL, cookie *C.uchar, cookie_len *C... function verify_cookie_callback (line 307) | func verify_cookie_callback(ssl *C.SSL, cookie *C.uchar, cookie_len C.ui... function goSliceFromCString (line 329) | func goSliceFromCString(cArray *C.char, size int) (cslice []byte) { function goSliceFromUCString (line 342) | func goSliceFromUCString(cArray *C.uchar, size int) (cslice []byte) { function getErrorString (line 354) | func getErrorString(code C.ulong) string { function newSslSession (line 382) | func newSslSession(session *DTLSServerSession, ctx *ServerDtlsContext, p... type DTLSServerSession (line 413) | type DTLSServerSession struct method GetConnection (line 419) | func (s *DTLSServerSession) GetConnection() ServerConnection { method Write (line 423) | func (s *DTLSServerSession) Write(b []byte) (int, error) { method Read (line 433) | func (s *DTLSServerSession) Read(b []byte) (n int, err error) { method getError (line 454) | func (s *DTLSServerSession) getError(ret C.int) error { function NewDTLSConnection (line 482) | func NewDTLSConnection(c net.Conn, identity, psk string) (conn Connectio... type DTLSConnection (line 519) | type DTLSConnection struct method ObserveResource (line 530) | func (c *DTLSConnection) ObserveResource(resource string) (tok string,... method CancelObserveResource (line 541) | func (c *DTLSConnection) CancelObserveResource(resource string, token ... method StopObserve (line 550) | func (c *DTLSConnection) StopObserve(ch chan ObserveMessage) { method Observe (line 554) | func (c *DTLSConnection) Observe(ch chan ObserveMessage) { method Send (line 578) | func (c *DTLSConnection) Send(req Request) (resp Response, err error) { method sendMessage (line 657) | func (c *DTLSConnection) sendMessage(msg Message) (resp Response, err ... method Write (line 706) | func (c *DTLSConnection) Write(b []byte) (int, error) { method Read (line 721) | func (c *DTLSConnection) Read(b []byte) (int, error) { method Close (line 743) | func (c *DTLSConnection) Close() error { method connect (line 762) | func (c *DTLSConnection) connect() error { method getError (line 770) | func (c *DTLSConnection) getError(ret C.int) error { function go_conn_bio_write (line 798) | func go_conn_bio_write(bio *C.BIO, buf *C.char, num C.int) C.int { function go_conn_bio_read (line 819) | func go_conn_bio_read(bio *C.BIO, buf *C.char, num C.int) C.int { function go_conn_bio_free (line 845) | func go_conn_bio_free(bio *C.BIO) C.int { function go_psk_callback (line 857) | func go_psk_callback(ssl *C.SSL, hint *C.char, identity *C.char, max_ide... FILE: empty.go function NewEmptyPayload (line 3) | func NewEmptyPayload() MessagePayload { type EmptyPayload (line 8) | type EmptyPayload struct method GetBytes (line 11) | func (p *EmptyPayload) GetBytes() []byte { method Length (line 15) | func (p *EmptyPayload) Length() int { method String (line 19) | func (p *EmptyPayload) String() string { FILE: event.go function NewEvents (line 3) | func NewEvents() *ServerEvents { type ServerEvents (line 19) | type ServerEvents struct method OnNotify (line 32) | func (ce *ServerEvents) OnNotify(fn FnEventNotify) { method OnStart (line 37) | func (ce *ServerEvents) OnStart(fn FnEventStart) { method OnClose (line 42) | func (ce *ServerEvents) OnClose(fn FnEventClose) { method OnDiscover (line 47) | func (ce *ServerEvents) OnDiscover(fn FnEventDiscover) { method OnError (line 52) | func (ce *ServerEvents) OnError(fn FnEventError) { method OnObserve (line 57) | func (ce *ServerEvents) OnObserve(fn FnEventObserve) { method OnObserveCancel (line 62) | func (ce *ServerEvents) OnObserveCancel(fn FnEventObserveCancel) { method OnMessage (line 67) | func (ce *ServerEvents) OnMessage(fn FnEventMessage) { method OnBlockMessage (line 72) | func (ce *ServerEvents) OnBlockMessage(fn FnEventBlockMessage) { method Notify (line 77) | func (ce *ServerEvents) Notify(resource string, value interface{}, msg... method Started (line 84) | func (ce *ServerEvents) Started(server CoapServer) { method Closed (line 91) | func (ce *ServerEvents) Closed(server CoapServer) { method Discover (line 98) | func (ce *ServerEvents) Discover() { method Error (line 105) | func (ce *ServerEvents) Error(err error) { method Observe (line 112) | func (ce *ServerEvents) Observe(resource string, msg Message) { method ObserveCancelled (line 119) | func (ce *ServerEvents) ObserveCancelled(resource string, msg Message) { method Message (line 127) | func (ce *ServerEvents) Message(msg Message, inbound bool) { method BlockMessage (line 135) | func (ce *ServerEvents) BlockMessage(msg Message, inbound bool) { FILE: event_test.go function TestEvents (line 11) | func TestEvents(t *testing.T) { FILE: examples/block1/client.go function main (line 10) | func main() { FILE: examples/block1/server.go function main (line 10) | func main() { FILE: examples/discovery/main.go function main (line 11) | func main() { FILE: examples/dtls/simple-psk/client.go function main (line 9) | func main() { FILE: examples/dtls/simple-psk/server.go function main (line 9) | func main() { FILE: examples/observe/client.go function main (line 9) | func main() { FILE: examples/observe/server.go function main (line 12) | func main() { FILE: examples/proxy/coap/client.go function main (line 5) | func main() { FILE: examples/proxy/coap/proxy.go function main (line 5) | func main() { FILE: examples/proxy/coap/server.go function main (line 5) | func main() { FILE: examples/proxy/http/client.go function main (line 5) | func main() { FILE: examples/proxy/http/server.go function main (line 5) | func main() { FILE: examples/simple/client.go function main (line 9) | func main() { FILE: examples/simple/server.go function main (line 9) | func main() { FILE: init.go function init (line 3) | func init() { FILE: json.go function NewJSONPayload (line 8) | func NewJSONPayload(obj interface{}) MessagePayload { type JSONPayload (line 15) | type JSONPayload struct method GetBytes (line 19) | func (p *JSONPayload) GetBytes() []byte { method Length (line 31) | func (p *JSONPayload) Length() int { method String (line 35) | func (p *JSONPayload) String() string { FILE: message.go function NewMessage (line 16) | func NewMessage(messageType uint8, code CoapCode, messageID uint16) Mess... function NewEmptyMessage (line 26) | func NewEmptyMessage(id uint16) Message { function NewMessageOfType (line 33) | func NewMessageOfType(t uint8, id uint16, payload MessagePayload) Message { function BytesToMessage (line 57) | func BytesToMessage(data []byte) (Message, error) { type SortOptions (line 192) | type SortOptions method Len (line 194) | func (opts SortOptions) Len() int { method Swap (line 198) | func (opts SortOptions) Swap(i, j int) { method Less (line 202) | func (opts SortOptions) Less(i, j int) bool { function MessageToBytes (line 207) | func MessageToBytes(msg Message) ([]byte, error) { function getOptionHeaderValue (line 265) | func getOptionHeaderValue(optValue int) (int, error) { function ValidateMessage (line 280) | func ValidateMessage(msg Message) error { function NewBlockMessage (line 305) | func NewBlockMessage() BlockMessage { type CoapBlockMessage (line 311) | type CoapBlockMessage struct type BySequence (line 317) | type BySequence method Len (line 319) | func (o BySequence) Len() int { method Swap (line 323) | func (o BySequence) Swap(i, j int) { method Less (line 327) | func (o BySequence) Less(i, j int) bool { type CoapMessage (line 332) | type CoapMessage struct method SetMessageType (line 341) | func (m *CoapMessage) SetMessageType(t uint8) { method SetToken (line 345) | func (m *CoapMessage) SetToken(t []byte) { method SetPayload (line 349) | func (m *CoapMessage) SetPayload(p MessagePayload) { method SetMessageId (line 353) | func (m *CoapMessage) SetMessageId(id uint16) { method GetToken (line 357) | func (m *CoapMessage) GetToken() []byte { method GetPayload (line 361) | func (m *CoapMessage) GetPayload() MessagePayload { method GetMessageType (line 365) | func (m *CoapMessage) GetMessageType() uint8 { method GetMessageId (line 369) | func (m *CoapMessage) GetMessageId() uint16 { method GetCode (line 373) | func (m *CoapMessage) GetCode() CoapCode { method GetAllOptions (line 377) | func (m *CoapMessage) GetAllOptions() []Option { method GetAcceptedContent (line 381) | func (m *CoapMessage) GetAcceptedContent() MediaType { method GetCodeString (line 387) | func (m *CoapMessage) GetCodeString() string { method GetMethod (line 394) | func (m *CoapMessage) GetMethod() uint8 { method GetTokenLength (line 398) | func (m *CoapMessage) GetTokenLength() uint8 { method GetTokenString (line 402) | func (m *CoapMessage) GetTokenString() string { method GetOptions (line 407) | func (m CoapMessage) GetOptions(id OptionCode) []Option { method GetOption (line 418) | func (m CoapMessage) GetOption(id OptionCode) Option { method GetOptionsAsString (line 428) | func (m CoapMessage) GetOptionsAsString(id OptionCode) []string { method GetLocationPath (line 441) | func (m *CoapMessage) GetLocationPath() string { method GetURIPath (line 448) | func (m CoapMessage) GetURIPath() string { method AddOption (line 456) | func (m *CoapMessage) AddOption(code OptionCode, value interface{}) { method AddOptions (line 468) | func (m *CoapMessage) AddOptions(opts []Option) { method SetBlock1Option (line 479) | func (c *CoapMessage) SetBlock1Option(opt Option) { method CloneOptions (line 484) | func (m *CoapMessage) CloneOptions(cm Message, opts ...OptionCode) { method ReplaceOptions (line 491) | func (m *CoapMessage) ReplaceOptions(code OptionCode, opts []Option) { method RemoveOptions (line 498) | func (m *CoapMessage) RemoveOptions(id OptionCode) { method SetStringPayload (line 509) | func (m *CoapMessage) SetStringPayload(s string) { function IsProxyRequest (line 514) | func IsProxyRequest(msg Message) bool { function valueToBytes (line 521) | func valueToBytes(value interface{}) []byte { function decodeInt (line 548) | func decodeInt(b []byte) uint32 { function encodeInt (line 555) | func encodeInt(v uint32) []byte { function IsCoapURI (line 581) | func IsCoapURI(uri string) bool { function IsHTTPURI (line 589) | func IsHTTPURI(uri string) bool { function MethodString (line 598) | func MethodString(c CoapCode) string { function EmptyMessage (line 617) | func EmptyMessage(messageID uint16, messageType uint8) Message { function CreatedMessage (line 622) | func CreatedMessage(messageID uint16, messageType uint8) Message { function DeletedMessage (line 627) | func DeletedMessage(messageID uint16, messageType uint8) Message { function ValidMessage (line 632) | func ValidMessage(messageID uint16, messageType uint8) Message { function ChangedMessage (line 637) | func ChangedMessage(messageID uint16, messageType uint8) Message { function ContentMessage (line 642) | func ContentMessage(messageID uint16, messageType uint8) Message { function BadRequestMessage (line 647) | func BadRequestMessage(messageID uint16, messageType uint8) Message { function ContinueMessage (line 651) | func ContinueMessage(messageID uint16, messageType uint8) Message { function UnauthorizedMessage (line 656) | func UnauthorizedMessage(messageID uint16, messageType uint8) Message { function BadOptionMessage (line 661) | func BadOptionMessage(messageID uint16, messageType uint8) Message { function ForbiddenMessage (line 666) | func ForbiddenMessage(messageID uint16, messageType uint8) Message { function NotFoundMessage (line 671) | func NotFoundMessage(messageID uint16, messageType uint8, token []byte) ... function MethodNotAllowedMessage (line 679) | func MethodNotAllowedMessage(messageID uint16, messageType uint8) Message { function NotAcceptableMessage (line 684) | func NotAcceptableMessage(messageID uint16, messageType uint8) Message { function ConflictMessage (line 689) | func ConflictMessage(messageID uint16, messageType uint8) Message { function PreconditionFailedMessage (line 694) | func PreconditionFailedMessage(messageID uint16, messageType uint8) Mess... function RequestEntityTooLargeMessage (line 699) | func RequestEntityTooLargeMessage(messageID uint16, messageType uint8) M... function UnsupportedContentFormatMessage (line 704) | func UnsupportedContentFormatMessage(messageID uint16, messageType uint8... function InternalServerErrorMessage (line 709) | func InternalServerErrorMessage(messageID uint16, messageType uint8) Mes... function NotImplementedMessage (line 714) | func NotImplementedMessage(messageID uint16, messageType uint8) Message { function BadGatewayMessage (line 719) | func BadGatewayMessage(messageID uint16, messageType uint8) Message { function ServiceUnavailableMessage (line 724) | func ServiceUnavailableMessage(messageID uint16, messageType uint8) Mess... function GatewayTimeoutMessage (line 729) | func GatewayTimeoutMessage(messageID uint16, messageType uint8) Message { function ProxyingNotSupportedMessage (line 734) | func ProxyingNotSupportedMessage(messageID uint16, messageType uint8) Me... FILE: message_test.go function TestMessage (line 10) | func TestMessage(t *testing.T) { function TestInvalidMessage (line 15) | func TestInvalidMessage(t *testing.T) { function TestMessagValidation (line 24) | func TestMessagValidation(t *testing.T) { function TestMessageConversion (line 28) | func TestMessageConversion(t *testing.T) { function TestMessageBadOptions (line 49) | func TestMessageBadOptions(t *testing.T) { function TestMessageObject (line 60) | func TestMessageObject(t *testing.T) { function TestOptionConversion (line 76) | func TestOptionConversion(t *testing.T) { function TestNewMessageHelpers (line 98) | func TestNewMessageHelpers(t *testing.T) { function NewBasicConfirmableMessage (line 136) | func NewBasicConfirmableMessage() *CoapMessage { FILE: options.go type CoapOption (line 9) | type CoapOption struct method GetValue (line 14) | func (o *CoapOption) GetValue() interface{} { method GetCode (line 18) | func (o *CoapOption) GetCode() OptionCode { method Name (line 22) | func (o *CoapOption) Name() string { method IsElective (line 27) | func (o *CoapOption) IsElective() bool { method IsCritical (line 35) | func (o *CoapOption) IsCritical() bool { method StringValue (line 43) | func (o *CoapOption) StringValue() string { method IntValue (line 47) | func (o *CoapOption) IntValue() int { function NewOption (line 52) | func NewOption(optionNumber OptionCode, optionValue interface{}) *CoapOp... function NewPathOptions (line 60) | func NewPathOptions(path string) []Option { function IsRepeatableOption (line 74) | func IsRepeatableOption(opt Option) bool { function IsValidOption (line 88) | func IsValidOption(opt Option) bool { function IsElectiveOption (line 103) | func IsElectiveOption(opt Option) bool { function IsCriticalOption (line 113) | func IsCriticalOption(opt Option) bool { function NewBlock1Option (line 117) | func NewBlock1Option(bs BlockSizeType, more bool, seq uint32) *Block1Opt... function Block1OptionFromOption (line 149) | func Block1OptionFromOption(opt Option) *Block1Option { type Block1Option (line 158) | type Block1Option struct method Sequence (line 162) | func (o *Block1Option) Sequence() uint32 { method Exponent (line 168) | func (o *Block1Option) Exponent() uint32 { method BlockSizeLength (line 174) | func (o *Block1Option) BlockSizeLength() uint32 { method Size (line 180) | func (o *Block1Option) Size() BlockSizeType { method HasMore (line 187) | func (o *Block1Option) HasMore() bool { FILE: plaintext.go function NewPlainTextPayload (line 6) | func NewPlainTextPayload(s string) MessagePayload { type PlainTextPayload (line 13) | type PlainTextPayload struct method GetBytes (line 17) | func (p *PlainTextPayload) GetBytes() []byte { method Length (line 21) | func (p *PlainTextPayload) Length() int { method String (line 25) | func (p *PlainTextPayload) String() string { FILE: proxy.go function NullProxyFilter (line 11) | func NullProxyFilter(Message, net.Addr) bool { function NullProxyHandler (line 16) | func NullProxyHandler(c CoapServer, msg Message, session Session) { function COAPProxyHandler (line 20) | func COAPProxyHandler(c CoapServer, msg Message, session Session) { function HTTPProxyHandler (line 52) | func HTTPProxyHandler(c CoapServer, msg Message, session Session) { function HTTPCOAPProxyHandler (line 102) | func HTTPCOAPProxyHandler(msg *Message, conn *net.UDPConn, addr net.Addr) { FILE: request.go function NewRequest (line 9) | func NewRequest(messageType uint8, messageMethod CoapCode) Request { function NewRequestWithMessageId (line 13) | func NewRequestWithMessageId(messageType uint8, messageMethod CoapCode, ... function NewConfirmableGetRequest (line 20) | func NewConfirmableGetRequest() Request { function NewConfirmablePostRequest (line 26) | func NewConfirmablePostRequest() Request { function NewConfirmablePutRequest (line 32) | func NewConfirmablePutRequest() Request { function NewConfirmableDeleteRequest (line 38) | func NewConfirmableDeleteRequest() Request { function NewRequestFromMessage (line 45) | func NewRequestFromMessage(msg Message) Request { function NewClientRequestFromMessage (line 51) | func NewClientRequestFromMessage(msg Message, attrs map[string]string, s... type CoapRequest (line 61) | type CoapRequest struct method SetProxyURI (line 68) | func (c *CoapRequest) SetProxyURI(uri string) { method SetMediaType (line 72) | func (c *CoapRequest) SetMediaType(mt MediaType) { method GetSession (line 76) | func (c *CoapRequest) GetSession() Session { method GetAttributes (line 80) | func (c *CoapRequest) GetAttributes() map[string]string { method GetAttribute (line 84) | func (c *CoapRequest) GetAttribute(o string) string { method GetAttributeAsInt (line 88) | func (c *CoapRequest) GetAttributeAsInt(o string) int { method GetMessage (line 95) | func (c *CoapRequest) GetMessage() Message { method SetStringPayload (line 99) | func (c *CoapRequest) SetStringPayload(s string) { method SetPayload (line 103) | func (c *CoapRequest) SetPayload(b []byte) { method SetRequestURI (line 107) | func (c *CoapRequest) SetRequestURI(uri string) { method SetConfirmable (line 111) | func (c *CoapRequest) SetConfirmable(con bool) { method SetToken (line 119) | func (c *CoapRequest) SetToken(t string) { method GetURIQuery (line 123) | func (c *CoapRequest) GetURIQuery(q string) string { method SetURIQuery (line 137) | func (c *CoapRequest) SetURIQuery(k string, v string) { FILE: request_test.go function TestRequest (line 9) | func TestRequest(t *testing.T) { FILE: response.go function NoResponse (line 7) | func NoResponse() Response { type NilResponse (line 11) | type NilResponse struct method GetMessage (line 14) | func (c NilResponse) GetMessage() Message { method GetError (line 18) | func (c NilResponse) GetError() error { method GetPayload (line 22) | func (c NilResponse) GetPayload() []byte { method GetURIQuery (line 26) | func (c NilResponse) GetURIQuery(q string) string { function NewResponse (line 31) | func NewResponse(msg Message, err error) Response { function NewResponseWithMessage (line 41) | func NewResponseWithMessage(msg Message) Response { type DefaultResponse (line 49) | type DefaultResponse struct method GetMessage (line 54) | func (c *DefaultResponse) GetMessage() Message { method GetError (line 58) | func (c *DefaultResponse) GetError() error { method GetPayload (line 62) | func (c *DefaultResponse) GetPayload() []byte { method GetURIQuery (line 66) | func (c *DefaultResponse) GetURIQuery(q string) string { FILE: response_test.go function TestResponse (line 9) | func TestResponse(t *testing.T) { FILE: routes.go function CreateNewRegExRoute (line 9) | func CreateNewRegExRoute(path string, method string, fn RouteHandler) Ro... type RegExRoute (line 42) | type RegExRoute struct method Matches (line 51) | func (r *RegExRoute) Matches(path string) (bool, map[string]string) { method GetMethod (line 65) | func (r *RegExRoute) GetMethod() string { method GetMediaTypes (line 69) | func (r *RegExRoute) GetMediaTypes() []MediaType { method GetConfiguredPath (line 73) | func (r *RegExRoute) GetConfiguredPath() string { method AutoAcknowledge (line 77) | func (r *RegExRoute) AutoAcknowledge() bool { method Handle (line 81) | func (r *RegExRoute) Handle(req Request) Response { function MatchingRoute (line 86) | func MatchingRoute(path string, method string, cf interface{}, routes []... FILE: routes_test.go function TestRoutes (line 9) | func TestRoutes(t *testing.T) { FILE: server.go type ServerConfiguration (line 17) | type ServerConfiguration struct function NewServer (line 21) | func NewServer() CoapServer { function createServer (line 25) | func createServer() CoapServer { type DefaultCoapServer (line 42) | type DefaultCoapServer struct method DeleteSession (line 68) | func (s *DefaultCoapServer) DeleteSession(ssn Session) { method HandlePSK (line 72) | func (s *DefaultCoapServer) HandlePSK(fn func(id string) []byte) { method handleRequest (line 76) | func (s *DefaultCoapServer) handleRequest(msg Message, session Session) { method handleReqObserve (line 207) | func (s *DefaultCoapServer) handleReqObserve(req Request, msg Message,... method handleResponse (line 231) | func (s *DefaultCoapServer) handleResponse(msg Message, session Sessio... method GetEvents (line 248) | func (s *DefaultCoapServer) GetEvents() Events { method addDiscoveryRoute (line 252) | func (s *DefaultCoapServer) addDiscoveryRoute() { method ListenAndServeDTLS (line 291) | func (s *DefaultCoapServer) ListenAndServeDTLS(addr string) { method ListenAndServe (line 317) | func (s *DefaultCoapServer) ListenAndServe(addr string) { method createConn (line 332) | func (s *DefaultCoapServer) createConn(addr string) ServerConnection { method handleIncomingDTLSData (line 352) | func (s *DefaultCoapServer) handleIncomingDTLSData(conn ServerConnecti... method handleIncomingData (line 403) | func (s *DefaultCoapServer) handleIncomingData(conn ServerConnection) { method GetSession (line 444) | func (s *DefaultCoapServer) GetSession(addr string) Session { method Stop (line 448) | func (s *DefaultCoapServer) Stop() { method updateBlockMessageFragment (line 452) | func (s *DefaultCoapServer) updateBlockMessageFragment(client string, ... method flushBlockMessagePayload (line 469) | func (s *DefaultCoapServer) flushBlockMessagePayload(origin string) Me... method handleMessageIDPurge (line 478) | func (s *DefaultCoapServer) handleMessageIDPurge() { method SetProxyFilter (line 496) | func (s *DefaultCoapServer) SetProxyFilter(fn ProxyFilter) { method GetCookieSecret (line 500) | func (s *DefaultCoapServer) GetCookieSecret() []byte { method handleSession (line 504) | func (s *DefaultCoapServer) handleSession(session Session) { method closeSession (line 521) | func (s *DefaultCoapServer) closeSession(ssn Session) { method Get (line 525) | func (s *DefaultCoapServer) Get(path string, fn RouteHandler) Route { method Delete (line 529) | func (s *DefaultCoapServer) Delete(path string, fn RouteHandler) Route { method Put (line 533) | func (s *DefaultCoapServer) Put(path string, fn RouteHandler) Route { method Post (line 537) | func (s *DefaultCoapServer) Post(path string, fn RouteHandler) Route { method Options (line 541) | func (s *DefaultCoapServer) Options(path string, fn RouteHandler) Route { method Patch (line 545) | func (s *DefaultCoapServer) Patch(path string, fn RouteHandler) Route { method add (line 549) | func (s *DefaultCoapServer) add(method string, path string, fn RouteHa... method NewRoute (line 556) | func (s *DefaultCoapServer) NewRoute(path string, method CoapCode, fn ... method storeNewOutgoingBlockMessage (line 563) | func (s *DefaultCoapServer) storeNewOutgoingBlockMessage(client string... method NotifyChange (line 569) | func (s *DefaultCoapServer) NotifyChange(resource, value string, confi... method AddObservation (line 593) | func (s *DefaultCoapServer) AddObservation(resource, token string, ses... method HasObservation (line 597) | func (s *DefaultCoapServer) HasObservation(resource string, addr net.A... method RemoveObservation (line 611) | func (s *DefaultCoapServer) RemoveObservation(resource string, addr ne... method OnNotify (line 625) | func (s *DefaultCoapServer) OnNotify(fn FnEventNotify) { method OnStart (line 629) | func (s *DefaultCoapServer) OnStart(fn FnEventStart) { method OnClose (line 633) | func (s *DefaultCoapServer) OnClose(fn FnEventClose) { method OnDiscover (line 637) | func (s *DefaultCoapServer) OnDiscover(fn FnEventDiscover) { method OnError (line 641) | func (s *DefaultCoapServer) OnError(fn FnEventError) { method OnObserve (line 645) | func (s *DefaultCoapServer) OnObserve(fn FnEventObserve) { method OnObserveCancel (line 649) | func (s *DefaultCoapServer) OnObserveCancel(fn FnEventObserveCancel) { method OnMessage (line 653) | func (s *DefaultCoapServer) OnMessage(fn FnEventMessage) { method OnBlockMessage (line 657) | func (s *DefaultCoapServer) OnBlockMessage(fn FnEventBlockMessage) { method ProxyOverHttp (line 661) | func (s *DefaultCoapServer) ProxyOverHttp(enabled bool) { method ProxyOverCoap (line 669) | func (s *DefaultCoapServer) ProxyOverCoap(enabled bool) { method AllowProxyForwarding (line 677) | func (s *DefaultCoapServer) AllowProxyForwarding(msg Message, addr net... method ForwardCoap (line 681) | func (s *DefaultCoapServer) ForwardCoap(msg Message, session Session) { method ForwardHTTP (line 685) | func (s *DefaultCoapServer) ForwardHTTP(msg Message, session Session) { method GetRoutes (line 689) | func (s *DefaultCoapServer) GetRoutes() []Route { method isDuplicateMessage (line 693) | func (s *DefaultCoapServer) isDuplicateMessage(msg Message) bool { method updateMessageTS (line 699) | func (s *DefaultCoapServer) updateMessageTS(msg Message) { method handleReqUnknownCriticalOption (line 703) | func (s *DefaultCoapServer) handleReqUnknownCriticalOption(msg Message... method handleReqBadRequest (line 710) | func (s *DefaultCoapServer) handleReqBadRequest(msg Message, session S... method handleReqContinue (line 717) | func (s *DefaultCoapServer) handleReqContinue(msg Message, session Ses... method handleReqUnsupportedMethodRequest (line 724) | func (s *DefaultCoapServer) handleReqUnsupportedMethodRequest(msg Mess... method handleReqProxyRequest (line 732) | func (s *DefaultCoapServer) handleReqProxyRequest(msg Message, session... method handleReqNoMatchingRoute (line 747) | func (s *DefaultCoapServer) handleReqNoMatchingRoute(msg Message, sess... method handleReqNoMatchingMethod (line 754) | func (s *DefaultCoapServer) handleReqNoMatchingMethod(msg Message, ses... method handleReqUnsupportedContentFormat (line 761) | func (s *DefaultCoapServer) handleReqUnsupportedContentFormat(msg Mess... method handleReqDuplicateMessageID (line 769) | func (s *DefaultCoapServer) handleReqDuplicateMessageID(msg Message, s... method handleRequestAcknowledge (line 776) | func (s *DefaultCoapServer) handleRequestAcknowledge(msg Message, sess... method handleAcknowledgeObserveRequest (line 782) | func (s *DefaultCoapServer) handleAcknowledgeObserveRequest(msg Messag... method handleAcknowledgeObserveRequestGetSession (line 786) | func (s *DefaultCoapServer) handleAcknowledgeObserveRequestGetSession(... function NewResponseChannel (line 790) | func NewResponseChannel() (ch chan *CoapResponseChannel) { function AddResponseChannel (line 796) | func AddResponseChannel(c CoapServer, msgId uint16, ch chan *CoapRespons... function DeleteResponseChannel (line 801) | func DeleteResponseChannel(c CoapServer, msgId uint16) { function GetResponseChannel (line 806) | func GetResponseChannel(c CoapServer, msgId uint16) (ch chan *CoapRespon... function NewObservation (line 813) | func NewObservation(session Session, token string, resource string) *Obs... type Observation (line 822) | type Observation struct function _doSendMessage (line 829) | func _doSendMessage(msg Message, session Session, ch chan *CoapResponseC... function SendMessage (line 851) | func SendMessage(msg Message, session Session) (Response, error) { type CoapResponseChannel (line 872) | type CoapResponseChannel struct FILE: server_test.go function TestServerInstantiate (line 6) | func TestServerInstantiate(t *testing.T) { FILE: serverconn.go type UDPServerConnection (line 8) | type UDPServerConnection struct method ReadFrom (line 12) | func (uc *UDPServerConnection) ReadFrom(b []byte) (n int, addr net.Add... method WriteTo (line 16) | func (uc *UDPServerConnection) WriteTo(b []byte, addr net.Addr) (n int... method Close (line 20) | func (uc *UDPServerConnection) Close() error { method LocalAddr (line 24) | func (uc *UDPServerConnection) LocalAddr() net.Addr { method SetDeadline (line 28) | func (uc *UDPServerConnection) SetDeadline(t time.Time) error { method SetReadDeadline (line 32) | func (uc *UDPServerConnection) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 36) | func (uc *UDPServerConnection) SetWriteDeadline(t time.Time) error { FILE: session.go type UDPServerSession (line 5) | type UDPServerSession struct method GetConnection (line 13) | func (s *UDPServerSession) GetConnection() ServerConnection { method GetAddress (line 17) | func (s *UDPServerSession) GetAddress() net.Addr { method WriteBuffer (line 21) | func (s *UDPServerSession) WriteBuffer(b []byte) (n int) { method Write (line 27) | func (s *UDPServerSession) Write(b []byte) (n int, err error) { method Read (line 33) | func (s *UDPServerSession) Read(b []byte) (n int, err error) { method GetServer (line 39) | func (s *UDPServerSession) GetServer() CoapServer { FILE: types.go type CoreAttributes (line 3) | type CoreAttributes type CoreResource (line 5) | type CoreResource struct method AddAttribute (line 16) | func (c *CoreResource) AddAttribute(key string, value interface{}) { method GetAttribute (line 21) | func (c *CoreResource) GetAttribute(key string) *CoreAttribute { type CoreAttribute (line 10) | type CoreAttribute struct FILE: utilconn_test.go function TestSendMessages (line 5) | func TestSendMessages(t *testing.T) { FILE: utildebug.go function PrintOptions (line 4) | func PrintOptions(msg Message) { function PrintMessage (line 17) | func PrintMessage(msg Message) { function OptionNumberToString (line 31) | func OptionNumberToString(o OptionCode) string { FILE: utils.go function PayloadAsString (line 12) | func PayloadAsString(p MessagePayload) string { function GenerateMessageID (line 20) | func GenerateMessageID() uint16 { function GenerateToken (line 35) | func GenerateToken(l int) string { function CoreResourcesFromString (line 45) | func CoreResourcesFromString(str string) []*CoreResource { function CoapCodeToString (line 74) | func CoapCodeToString(code CoapCode) string { function ValidCoapMediaTypeCode (line 160) | func ValidCoapMediaTypeCode(mt MediaType) bool { function logMsg (line 175) | func logMsg(a ...interface{}) (n int, err error) { FILE: utils_test.go function TestGenerateMessageId (line 9) | func TestGenerateMessageId(t *testing.T) { function TestGenerateToken (line 25) | func TestGenerateToken(t *testing.T) { function TestCoreResourceUtil (line 35) | func TestCoreResourceUtil(t *testing.T) { function TestCoapCodeToString (line 81) | func TestCoapCodeToString(t *testing.T) { function TestRouteMatching (line 120) | func TestRouteMatching(t *testing.T) { function TestMediaTypeUtils (line 124) | func TestMediaTypeUtils(t *testing.T) { FILE: xml.go type XMLPayload (line 4) | type XMLPayload struct