todo

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewImpl)

ProviderSet is a provider set for wire

Functions

This section is empty.

Types

type IHandler

type IHandler interface {
	// GetByID serve caller to given id to get a task
	GetByID(c *gin.Context)

	// List serve caller to list all task by start and end
	List(c *gin.Context)

	// Create serve caller to create a task
	Create(c *gin.Context)

	// UpdateStatus serve caller to update the task's status by id
	UpdateStatus(c *gin.Context)

	// ChangeTitle serve caller to change the task's title by id
	ChangeTitle(c *gin.Context)

	// Delete serve caller to delete a task by id
	Delete(c *gin.Context)
}

IHandler declare handler service function

func CreateIHandler

func CreateIHandler(logger *zap.Logger, biz todo.IBiz) (IHandler, error)

func NewImpl

func NewImpl(logger *zap.Logger, biz todo.IBiz) IHandler

NewImpl serve caller to create an IHandler

Jump to

Keyboard shortcuts

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