test

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 3 Imported by: 0

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

type Service3 added in v0.2.0

type Service3 interface {
	// nolint: lll
	Refresh(ctx context.Context, refreshToken string, deviceID string, userName string, jwtToken *jwt.Token) (string, string, error)
}

+kit:endpoint from: https://github.com/sagikazarmark/mga/issues/34

type Todo

type Todo struct {
	ID   string
	Text string
	Done bool
}

nolint: godox Todo is a note describing a task to be done.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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