Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { // CreateTodo adds a new todo to the todo list. CreateTodo(ctx context.Context, text string) (id string, err error) // ListTodos returns the list of todos. ListTodos(ctx context.Context) ([]Todo, error) // MarkAsDone marks a todo as done. MarkAsDone(ctx context.Context, id string) error }
+kit:endpoint
type Service2 ¶ added in v0.2.0
type Service2 interface { // CreateTodo adds a new todo to the todo list. CreateTodo(ctx context.Context, text svctypes.Text) (id svctypes.ID, err error) // ListTodos returns the list of todos. ListTodos(ctx context.Context) ([]svctypes.Todo, error) // MarkAsDone marks a todo as done. MarkAsDone(ctx context.Context, id svctypes.ID) error }
+kit:endpoint
Click to show internal directories.
Click to hide internal directories.