Documentation
¶
Index ¶
- func AddRoutes(logger log.Logger, r *mux.Router, eventRepo Repository)
- type Event
- type EventID
- type EventType
- type Repository
- type SQLRepository
- func (r *SQLRepository) Close() error
- func (r *SQLRepository) GetEvent(eventID EventID, userID id.User) (*Event, error)
- func (r *SQLRepository) GetUserEvents(userID id.User) ([]*Event, error)
- func (r *SQLRepository) GetUserEventsByMetadata(userID id.User, metadata map[string]string) ([]*Event, error)
- func (r *SQLRepository) WriteEvent(userID id.User, event *Event) error
- type TestRepository
- func (r *TestRepository) GetEvent(eventID EventID, userID id.User) (*Event, error)
- func (r *TestRepository) GetUserEvents(userID id.User) ([]*Event, error)
- func (r *TestRepository) GetUserEventsByMetadata(userID id.User, metadata map[string]string) ([]*Event, error)
- func (r *TestRepository) WriteEvent(userID id.User, event *Event) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventType ¶
type EventType string
const ( // TODO(adam): more EventType values? // ReceiverEvent EventType = "Receiver" // DepositoryEvent EventType = "Depository" // OriginatorEvent EventType = "Originator" TransferEvent EventType = "Transfer" )
type Repository ¶
type SQLRepository ¶
type SQLRepository struct {
// contains filtered or unexported fields
}
func (*SQLRepository) Close ¶
func (r *SQLRepository) Close() error
func (*SQLRepository) GetUserEvents ¶
func (r *SQLRepository) GetUserEvents(userID id.User) ([]*Event, error)
func (*SQLRepository) GetUserEventsByMetadata ¶
func (*SQLRepository) WriteEvent ¶
func (r *SQLRepository) WriteEvent(userID id.User, event *Event) error
type TestRepository ¶
func (*TestRepository) GetUserEvents ¶
func (r *TestRepository) GetUserEvents(userID id.User) ([]*Event, error)
func (*TestRepository) GetUserEventsByMetadata ¶
func (*TestRepository) WriteEvent ¶
func (r *TestRepository) WriteEvent(userID id.User, event *Event) error
Click to show internal directories.
Click to hide internal directories.