Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandBus ¶
type CommandBus struct {
// contains filtered or unexported fields
}
CommandBus is an in-memory implementation of the command.Bus.
func NewCommandBus ¶
func NewCommandBus() *CommandBus
NewCommandBus initializes a new instance of CommandBus.
func (*CommandBus) Close ¶
func (b *CommandBus) Close() error
Close is a no-op in im-memory implementation
type EventBus ¶
type EventBus struct {
// contains filtered or unexported fields
}
EventBus is an in-memory implementation of the event.Bus.
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewLockedUserRepository ¶
func NewLockedUserRepository() *Repository
func (*Repository) GetCurrentLock ¶
func (repo *Repository) GetCurrentLock(guildID string) (string, chan bool)
func (*Repository) ReleaseUserLock ¶
func (repo *Repository) ReleaseUserLock(guildID string)
func (*Repository) SetLock ¶
func (repo *Repository) SetLock(guildID string, userID string)
Click to show internal directories.
Click to hide internal directories.