Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromRawJSON ¶
Types ¶
type T ¶
type T struct { // The SubscriptionID field is optional, and may at most contain 64 characters, // sufficient for encoding a 256 bit hash as hex. SubscriptionID subscriptionid.T // The Event is here a pointer because it should not be copied unnecessarily. Event *event.T }
T is the wrapper expected by a relay around an event.
func NewEventEnvelope ¶
NewEventEnvelope builds an T from a provided T string and pointer to an T, and returns either the T or an error if the Subscription ID is invalid or the T is nil.
func (*T) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.