Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contextionary ¶
type Contextionary struct { // hash Hash *ContextionaryHash `json:"hash,omitempty"` // URL where the contextionary can be found URL string `json:"url,omitempty"` }
Contextionary contextionary swagger:model Contextionary
func (*Contextionary) MarshalBinary ¶
func (m *Contextionary) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Contextionary) UnmarshalBinary ¶
func (m *Contextionary) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ContextionaryHash ¶
type ContextionaryHash struct { // Hash algorithm Algorithm string `json:"algorithm,omitempty"` // The actual hash Value string `json:"value,omitempty"` }
ContextionaryHash contextionary hash swagger:model ContextionaryHash
func (*ContextionaryHash) MarshalBinary ¶
func (m *ContextionaryHash) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ContextionaryHash) UnmarshalBinary ¶
func (m *ContextionaryHash) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Peer ¶
type Peer struct { PeerUpdate // Unique ID of this peer registration, will be updated if the peer conntects again to the network. // Format: uuid ID strfmt.UUID `json:"id,omitempty"` // When we were received a ping from this peer from the last time LastContactAt int64 `json:"last_contact_at,omitempty"` // The latest known hash of the local schema of the peer SchemaHash string `json:"schema_hash,omitempty"` }
Peer peer swagger:model Peer
func (*Peer) MarshalBinary ¶
MarshalBinary interface implementation
func (Peer) MarshalJSON ¶
MarshalJSON marshals this object to a JSON structure
func (*Peer) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*Peer) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object from a JSON structure
type PeerPing ¶
type PeerPing struct { // (base64 encoded) hash of the current schema SchemaHash string `json:"schemaHash,omitempty"` }
PeerPing peer ping swagger:model PeerPing
func (*PeerPing) MarshalBinary ¶
MarshalBinary interface implementation
func (*PeerPing) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type PeerRegistrationResponse ¶
type PeerRegistrationResponse struct { // contextionary Contextionary *Contextionary `json:"contextionary,omitempty"` // peer Peer *Peer `json:"peer,omitempty"` }
PeerRegistrationResponse peer registration response swagger:model PeerRegistrationResponse
func (*PeerRegistrationResponse) MarshalBinary ¶
func (m *PeerRegistrationResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PeerRegistrationResponse) UnmarshalBinary ¶
func (m *PeerRegistrationResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PeerUpdate ¶
type PeerUpdate struct { // Name of the peer, must be valid DNS name PeerName string `json:"peerName,omitempty"` // Host or IP of the peer, defaults to peerName // Format: uri PeerURI strfmt.URI `json:"peerUri,omitempty"` }
PeerUpdate peer update swagger:model PeerUpdate
func (*PeerUpdate) MarshalBinary ¶
func (m *PeerUpdate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PeerUpdate) UnmarshalBinary ¶
func (m *PeerUpdate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation