command

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteTodoCommand = "DELETE_TODO"
View Source
const UpdateTodoCommand = "UPDATE_TODO"

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelCommandManager

type ChannelCommandManager struct {
	// contains filtered or unexported fields
}

func (*ChannelCommandManager) DeleteCommandChannel

func (c *ChannelCommandManager) DeleteCommandChannel(commandMessage *command_utils.CommandMessage)

func (*ChannelCommandManager) DeleteCommandChannelOLD

func (c *ChannelCommandManager) DeleteCommandChannelOLD(hash string) chan *command_utils.CommandMessage

func (*ChannelCommandManager) SetCommandChannel

func (c *ChannelCommandManager) SetCommandChannel(commandMessage *command_utils.CommandMessage) chan *command_utils.CommandMessage

type CreateTodo

type CreateTodo struct {
	Name     string
	DoneName string

	*ChannelCommandManager
	// contains filtered or unexported fields
}

func NewCreateTodoCommand

func NewCreateTodoCommand(publisher publisher.CommandPublisher) *CreateTodo

func (*CreateTodo) Execute

func (*CreateTodo) GetDoneName

func (c *CreateTodo) GetDoneName() string

func (*CreateTodo) GetName

func (c *CreateTodo) GetName() string

type CreateTodoList

type CreateTodoList struct {
	Name     string
	DoneName string

	*ChannelCommandManager
	// contains filtered or unexported fields
}

func NewCreateTodoListCommand

func NewCreateTodoListCommand(publisher publisher.CommandPublisher) *CreateTodoList

func (*CreateTodoList) Execute

func (*CreateTodoList) GetDoneName

func (c *CreateTodoList) GetDoneName() string

func (*CreateTodoList) GetName

func (c *CreateTodoList) GetName() string

type DeleteTodo

type DeleteTodo struct {
	Name string
	// contains filtered or unexported fields
}

func NewDeleteTodoCommand

func NewDeleteTodoCommand(handler publisher.CommandPublisher) *DeleteTodo

func (*DeleteTodo) Execute

func (c *DeleteTodo) Execute(ctx context.Context, todoId uint, userId uint) error

func (*DeleteTodo) GetName

func (c *DeleteTodo) GetName() string

type DeleteTodoList

type DeleteTodoList struct {
	Name     string
	DoneName string

	*ChannelCommandManager
	// contains filtered or unexported fields
}

func NewDeleteTodoListCommand

func NewDeleteTodoListCommand(publisher publisher.CommandPublisher) *DeleteTodoList

func (*DeleteTodoList) Execute

func (*DeleteTodoList) GetDoneName

func (c *DeleteTodoList) GetDoneName() string

func (*DeleteTodoList) GetName

func (c *DeleteTodoList) GetName() string

type SignUp

type SignUp struct {
	Name     string
	DoneName string

	*ChannelCommandManager
	// contains filtered or unexported fields
}

func NewSignUpCommand

func NewSignUpCommand(publisher publisher.CommandPublisher) *SignUp

func (*SignUp) Execute

func (*SignUp) GetDoneName

func (c *SignUp) GetDoneName() string

func (*SignUp) GetName

func (c *SignUp) GetName() string

type UpdateTodo

type UpdateTodo struct {
	Name string
	// contains filtered or unexported fields
}

func NewUpdateTodoCommand

func NewUpdateTodoCommand(handler publisher.CommandPublisher) *UpdateTodo

func (*UpdateTodo) Execute

func (c *UpdateTodo) Execute(ctx context.Context, todoItem *todo.Item) error

func (*UpdateTodo) GetName

func (c *UpdateTodo) GetName() string

type UpdateTodoList

type UpdateTodoList struct {
	Name string
	// contains filtered or unexported fields
}

func NewUpdateTodoListCommand

func NewUpdateTodoListCommand(handler publisher.CommandPublisher) *UpdateTodoList

func (*UpdateTodoList) Execute

func (c *UpdateTodoList) Execute(ctx context.Context, todoList *todo.List) error

func (*UpdateTodoList) GetName

func (c *UpdateTodoList) GetName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL