Documentation
¶
Overview ¶
Package envelope defines the generic encapsulating format for Arigato objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
Envelope is the interface implemented by objects that encapsulate 'true' Arigato objects.
type Signed ¶
type Signed struct {
ID *identity.ID `json:"id"`
Version uint8 `json:"version"`
Body identity.Identifiable `json:"body"`
Signature primitive.Signature `json:"sig"`
}
Signed is the generic format for encapsulating signed immutable request/response objects to/from arigato.
func (*Signed) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for Signed envelopes.
type Unsigned ¶
type Unsigned struct {
ID *identity.ID `json:"id"`
Version uint8 `json:"version"`
Body identity.Identifiable `json:"body"`
}
Unsigned is the generic format for encapsulating unsigned mutable request/response objects to/from arigato.
func (*Unsigned) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for Unsigned envelopes.
Click to show internal directories.
Click to hide internal directories.