book

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

README

Books-app for create and store books and authors in Database

Prerequisites:

  • docker
  • docker-compose
  • make

For run application:

sudo make build

GRPC-server will start and also DB MYSQL will start with test data (see directory database)

As client-app you can use evans.
Run evans in project directory:

evans proto/books.proto -p 8000

Available 4 methods for call:
  • addBook
  • addAuthor
  • GetBooks
  • GetAuthor

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Id         int    `db:"id"`
	FirstName  string `db:"first_name"`
	SecondName string `db:"second_name"`
}

type Book

type Book struct {
	Id          int    `db:"id"`
	Title       string `db:"title"`
	Description string `db:"description"`
	Author      int    `db:"author"`
}

type Responce

type Responce struct {
	Id string
}

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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