Documentation ¶
Overview ¶
Package fact_totem_client abstracts the web interface.
Index ¶
- type Action
- type EventStore
- type Fact
- type ReadResponse
- type Request
- type ScanResponse
- type StandardClient
- func (c *StandardClient) Append(aggregate string, entity string, content interface{}) (*TailResponse, error)
- func (c *StandardClient) Read(aggregate string, entity string, originEventId string, maxCount int) (*ReadResponse, error)
- func (c *StandardClient) Refresh() error
- func (c *StandardClient) Scan(aggregate string) (*ScanResponse, error)
- func (c *StandardClient) Tail(aggregate string, entity string) (*TailResponse, error)
- type TailResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action int
func (Action) MarshalJSON ¶
MarshalJSON marshals the enum as a quoted json string
func (*Action) UnmarshalJSON ¶
UnmarshalJSON unmashals a quoted json string to the enum value
type EventStore ¶
type EventStore interface { // Append an event to the event store for the fact Append(aggregate string, entity string, content interface{}) (*TailResponse, error) // Tail gets the last event id Tail(aggregate string, entity string) (*TailResponse, error) // Read the events for an aggregate from the identified event id Read(aggregate string, entity string, originEventId string, maxCount int) (*ReadResponse, error) // Scan will list all keys in the aggregate (excluding individual events) Scan(aggregate string) (*ScanResponse, error) }
EventStore provides an interface to store events for a topic, and retrieve them later.
type ReadResponse ¶
type ScanResponse ¶
type StandardClient ¶
type StandardClient struct { Token string FactTotemUrl string // contains filtered or unexported fields }
func (*StandardClient) Append ¶
func (c *StandardClient) Append(aggregate string, entity string, content interface{}) (*TailResponse, error)
func (*StandardClient) Read ¶
func (c *StandardClient) Read(aggregate string, entity string, originEventId string, maxCount int) (*ReadResponse, error)
func (*StandardClient) Refresh ¶
func (c *StandardClient) Refresh() error
func (*StandardClient) Scan ¶
func (c *StandardClient) Scan(aggregate string) (*ScanResponse, error)
func (*StandardClient) Tail ¶
func (c *StandardClient) Tail(aggregate string, entity string) (*TailResponse, error)
Click to show internal directories.
Click to hide internal directories.