database

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Books

type Books struct {
	Userid int64
	Book   string
	Date   string
}

type Database

type Database interface {
	InsertUser(user User) bool
	InsertBook(Books) bool
	DeleteBook(Books) bool
	DeleteAll(user User) bool
	GetBooks(user User) []Books
	GetUserInfoById(userId int64) User
	Update([]Books) bool
	Start(url string) func()
}

type User

type User struct {
	Id    int64
	Block bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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