Documentation ¶
Index ¶
- Variables
- type CastBallot
- type ClosePoll
- type Command
- func NewClosePoll(eventStore eventstore.EventStore, eventManager eventmanager.EventManager, ...) Command
- func NewCreatePoll(eventStore eventstore.EventStore, eventManager eventmanager.EventManager, ...) Command
- func NewOpenPoll(eventStore eventstore.EventStore, eventManager eventmanager.EventManager, ...) Command
- type CreatePoll
- type OpenPoll
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPollAlreadyExists returned if a newly generated poll id already exists ErrPollAlreadyExists = errors.New("Error creating poll, id already exists") // ErrPollNotFound returned if a poll was expected to exist but could not // be found ErrPollNotFound = errors.New("Poll not found") )
View Source
var ( // ErrNotImplemented place holder error until a command is implemented ErrNotImplemented = errors.New("Command not implemented") )
Functions ¶
This section is empty.
Types ¶
type ClosePoll ¶
type ClosePoll struct { ID string // contains filtered or unexported fields }
ClosePoll closes a poll so that no more ballots are accepted
type Command ¶
type Command interface {
Run() error
}
Command simple interface for running a command.
func NewClosePoll ¶
func NewClosePoll( eventStore eventstore.EventStore, eventManager eventmanager.EventManager, id string, ) Command
NewClosePoll initializes a new ClosePoll command for execution
func NewCreatePoll ¶
func NewCreatePoll( eventStore eventstore.EventStore, eventManager eventmanager.EventManager, id string, issues []model.Issue, ) Command
NewCreatePoll initializes a new CreatePoll command for execution.
func NewOpenPoll ¶
func NewOpenPoll( eventStore eventstore.EventStore, eventManager eventmanager.EventManager, id string, ) Command
NewOpenPoll initializes a new OpenPoll command for execution
type CreatePoll ¶
CreatePoll creates a new poll.
Click to show internal directories.
Click to hide internal directories.