models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	DB     *sql.DB
	Router *http.Server
}

func (*App) CheckDB

func (app *App) CheckDB() bool

func (*App) Initialize

func (app *App) Initialize() error

type HealthCheck

type HealthCheck struct {
	Status string    `json:"status"`
	Time   time.Time `json:"currentTime"`
}

type VocabWord

type VocabWord struct {
	ID          int
	Foreign1    string
	Foreign2    string
	Definitions string
	Level       string
}

func (*VocabWord) DbCreateWord

func (p *VocabWord) DbCreateWord(db *sql.DB) error

type VocabWordRes

type VocabWordRes struct {
	ID          int
	Foreign1    string
	Foreign2    string
	Definitions []string
	Level       string
}

Jump to

Keyboard shortcuts

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