book

package
v0.0.0-...-bd22f50 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookController

type BookController struct {
	// contains filtered or unexported fields
}

BookController represents a BookController structure

func (*BookController) Create

func (ctrl *BookController) Create(ctx *gin.Context)

Create creates a new book

func (*BookController) Get

func (ctrl *BookController) Get(ctx *gin.Context)

Get returns the book

func (*BookController) List

func (ctrl *BookController) List(ctx *gin.Context)

List returns a list of books

type IBookController

type IBookController interface {
	List(ctx *gin.Context)
	Get(ctx *gin.Context)
	Create(ctx *gin.Context)
}

IBookController is a controller interface for BookController

func NewBookController

func NewBookController(dbm *datastore.Store) IBookController

NewBookController initialise a new BookController and returns

Jump to

Keyboard shortcuts

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