Documentation ¶
Index ¶
- type Handlers
- type TodoHandler
- func (t *TodoHandler) Complete(_ *commands.CompleteTodoCmd, ctx cluster.GrainContext) (*commands.Empty, error)
- func (t *TodoHandler) Create(cmd *commands.CreateTodoCmd, ctx cluster.GrainContext) (*commands.Empty, error)
- func (t *TodoHandler) Delete(_ *commands.DeleteTodoCmd, ctx cluster.GrainContext) (*commands.Empty, error)
- func (t *TodoHandler) Init(ctx cluster.GrainContext)
- func (t *TodoHandler) ReceiveDefault(ctx cluster.GrainContext)
- func (t *TodoHandler) Terminate(ctx cluster.GrainContext)
- func (t *TodoHandler) Uncomplete(_ *commands.UncompleteTodoCmd, ctx cluster.GrainContext) (*commands.Empty, error)
- func (t *TodoHandler) UpdateText(cmd *commands.UpdateTodoTextCmd, ctx cluster.GrainContext) (*commands.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
func NewHandlers ¶
type TodoHandler ¶
type TodoHandler struct { app.EventPublisher // contains filtered or unexported fields }
impl github.com/purefun/todo-example/server/app/commands.Todo
func (*TodoHandler) Complete ¶
func (t *TodoHandler) Complete(_ *commands.CompleteTodoCmd, ctx cluster.GrainContext) (*commands.Empty, error)
func (*TodoHandler) Create ¶
func (t *TodoHandler) Create(cmd *commands.CreateTodoCmd, ctx cluster.GrainContext) (*commands.Empty, error)
func (*TodoHandler) Delete ¶
func (t *TodoHandler) Delete(_ *commands.DeleteTodoCmd, ctx cluster.GrainContext) (*commands.Empty, error)
func (*TodoHandler) Init ¶
func (t *TodoHandler) Init(ctx cluster.GrainContext)
func (*TodoHandler) ReceiveDefault ¶
func (t *TodoHandler) ReceiveDefault(ctx cluster.GrainContext)
func (*TodoHandler) Terminate ¶
func (t *TodoHandler) Terminate(ctx cluster.GrainContext)
func (*TodoHandler) Uncomplete ¶
func (t *TodoHandler) Uncomplete(_ *commands.UncompleteTodoCmd, ctx cluster.GrainContext) (*commands.Empty, error)
func (*TodoHandler) UpdateText ¶
func (t *TodoHandler) UpdateText(cmd *commands.UpdateTodoTextCmd, ctx cluster.GrainContext) (*commands.Empty, error)
Click to show internal directories.
Click to hide internal directories.