Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capability ¶
type Capability string
Capability is a urn of a capability
const ( //NoCapability is used when the server does not listen for any connections NoCapability Capability = "urn:x-rains:nocapability" //TLSOverTCP is used when the server listens for tls over tcp connections TLSOverTCP Capability = "urn:x-rains:tlssrv" )
type Message ¶
type Message struct { //Capabilities is a slice of capabilities or the hash thereof which the server originating the //message has. Capabilities []Capability //Token is used to identify a message Token token.Token //Content is a slice of Content []section.Section //Signatures authenticate the content of this message. An encoding of Message is signed by the infrastructure key of the originating server. Signatures []signature.Sig }
Message represents a Message
func GetMessage ¶
func GetMessage() Message
GetMessage returns a messages containing all The assertion contains an instance of every object.Types
func (*Message) MarshalCBOR ¶
func (rm *Message) MarshalCBOR(w *cbor.CBORWriter) error
MarshalCBOR writes the RAINS message to the provided writer. Implements the CBORMarshaler interface.
func (*Message) UnmarshalCBOR ¶
func (rm *Message) UnmarshalCBOR(r *cbor.CBORReader) error
Click to show internal directories.
Click to hide internal directories.