swagger

package
v0.0.0-...-c4aec86 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Item

func Item(api *operations.TodoAPI, service ItemService)

Types

type ItemService

type ItemService interface {
	GetAll(ctx context.Context) ([]*models.Item, error)
	Get(ctx context.Context, ID int64) (*models.Item, error)
	Create(ctx context.Context, title string, body string, priority bool, scheduleTime *time.Time, completeTime *time.Time) (*models.Item, error)
	Delete(ctx context.Context, ID int64) error
	Update(ctx context.Context, ID int64, title string, body string, priority bool, scheduleTime *time.Time, completeTime *time.Time) (*models.Item, error)
}

Jump to

Keyboard shortcuts

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