goal

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: GPL-3.0 Imports: 9 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 get a goal by id
	GetByID(c *gin.Context)

	// Create a goal
	Create(c *gin.Context)

	// List serve caller to list all goals
	List(c *gin.Context)

	// ChangeTitle serve caller to change goal's title
	ChangeTitle(c *gin.Context)

	// ChangeTimeRange serve caller to change goal's start and end
	ChangeTimeRange(c *gin.Context)

	// Delete a goal by id
	Delete(c *gin.Context)
}

IHandler declare goal api function

func CreateIHandler

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

CreateIHandler serve caller to create an IHandler

func NewImpl

func NewImpl(logger *zap.Logger, biz goal.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