Documentation ¶
Index ¶
- Constants
- func NewTodoReadModelProjector(eventStore eventstore.EventStore, pool *pgxpool.Pool) *eventstore.ReadModelProjector
- type TodoFinder
- type TodoReadModel
- func (r *TodoReadModel) Delete(ctx context.Context) error
- func (r *TodoReadModel) Init(ctx context.Context) error
- func (r *TodoReadModel) IsInitialized(ctx context.Context) (bool, error)
- func (r *TodoReadModel) Persist(ctx context.Context) error
- func (r *TodoReadModel) Reset(ctx context.Context) error
- func (r *TodoReadModel) Stack(method string, args ...map[string]interface{})
- type TodoRepository
Constants ¶
View Source
const TodoStream = "todos"
View Source
const TodoTable = "app_todo"
Variables ¶
This section is empty.
Functions ¶
func NewTodoReadModelProjector ¶
func NewTodoReadModelProjector(eventStore eventstore.EventStore, pool *pgxpool.Pool) *eventstore.ReadModelProjector
Types ¶
type TodoFinder ¶
type TodoFinder struct {
// contains filtered or unexported fields
}
func NewTodoFinder ¶
func NewTodoFinder(db *pgxpool.Pool) *TodoFinder
type TodoReadModel ¶
type TodoReadModel struct {
// contains filtered or unexported fields
}
func NewTodoReadModel ¶
func NewTodoReadModel(client *pg.Client) *TodoReadModel
func (*TodoReadModel) IsInitialized ¶
func (r *TodoReadModel) IsInitialized(ctx context.Context) (bool, error)
func (*TodoReadModel) Stack ¶
func (r *TodoReadModel) Stack(method string, args ...map[string]interface{})
type TodoRepository ¶
type TodoRepository struct {
// contains filtered or unexported fields
}
func NewTodoRepository ¶
func NewTodoRepository(eventStore eventstore.EventStore) *TodoRepository
Click to show internal directories.
Click to hide internal directories.