Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ErrMarshalEvent - ErrMarshalEvent = Error("unable to marshal event") // ErrUnmarshalEvent - ErrUnmarshalEvent = Error("unable to unmarshal event") // ErrUnknownEventType - ErrUnknownEventType = Error("unknown event type") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { EventID string `json:"_e"` Version int `json:"_v"` At time.Time `json:"_t"` Identity Identity `json:"_i"` }
Model -
type PublisherOption ¶
type PublisherOption func() error
type Streamer ¶
type Streamer interface { Commit(partitionKey string, event Event) error Push(ctx context.Context) error Clear() }
Streamer -
func NewStreamer ¶
NewStreamer - Options:
|> stream-name - required |> kinesis-region - optional |> retry policy - optional
type Unmarshaler ¶
type Unmarshaler struct {
// contains filtered or unexported fields
}
Unmarshaler - TODO: add init methods for binding
func (Unmarshaler) Unmarshal ¶
func (unmarshaler Unmarshaler) Unmarshal(data []byte) (interface{}, error)
Unmarshal -
Click to show internal directories.
Click to hide internal directories.