book

package
v0.0.0-...-d8c281e Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	Id          int
	Name        string
	Description string
	Rating      int
	Pages       int
	Author      string
}

type HTTPService

type HTTPService interface {
	Register(*gin.Engine)
}

HTTPService...

func NewHTTPtransport

func NewHTTPtransport(s Service) HTTPService

type Service

type Service interface {
	FindAll() []*Book

	FindById(int) *Book

	AddBook(Book)

	PatchBook(Book)

	DeleteBook(int)
}

func NewBookService

func NewBookService(db *sqlx.DB, c *config.Config) (Service, error)

Jump to

Keyboard shortcuts

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