api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	Run() error
}

Server はサーバーとして動作するアプリケーションです。

func New

func New() Server

New はサーバーを生成します。

type TaskRouter

type TaskRouter struct{}

TaskRouter は task に関するルーターの定義です。

func NewTaskRouter

func NewTaskRouter() *TaskRouter

NewTaskRouter はルーターを生成します。

func (*TaskRouter) CreateTask

func (r *TaskRouter) CreateTask(c *gin.Context)

CreateTask はタスク生成のリクエストを処理します。

func (*TaskRouter) DeleteTask added in v0.2.1

func (r *TaskRouter) DeleteTask(c *gin.Context)

DeleteTask はタスク削除のリクエストを処理します。

func (*TaskRouter) GetTask added in v0.2.1

func (r *TaskRouter) GetTask(c *gin.Context)

GetTask はタスク取得のリクエストを処理します。

func (*TaskRouter) ListTasks added in v0.2.1

func (r *TaskRouter) ListTasks(c *gin.Context)

ListTasks はタスク一覧取得のリクエストを処理します。

Jump to

Keyboard shortcuts

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