models

package
v0.0.0-...-2734c1c Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 1 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 {
	*gorm.Model
	ID     uint   `gorm:"primaryKey"`
	Title  string `gorm:"not null" json:"title" binding:"required"`
	Author string `gorm:"not null" json:"author" binding:"required"`
}

type Config

type Config interface {
	NewConfig()
}

type PGSpec

type PGSpec struct {
	Host       string `yaml:"host" envconfig:"PG_HOST"`
	Port       int    `yaml:"port" envconnfig:"PG_PORT"`
	Username   string `yaml:"username" envconfig:"PG_USERNAME"`
	Password   string `yaml:"password" envconfig:"PG_PASSWORD"`
	Database   string `yaml:"database" envconfig:"PG_DB"`
	SSLenabled bool   `yaml:"sslenabled" envconfig:"PG_SSL"`
}

Jump to

Keyboard shortcuts

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