domains

package
v0.0.0-...-dfd5d66 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 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 {
	Router *chi.Mux
	DB     *gorm.DB
}

type AuthError

type AuthError struct {
	StatusCode int    `json:"statusCode"`
	Error      string `json:"error"`
}

type DB

type DB struct {
	Database *gorm.DB
}

func (*DB) PostgresConnect

func (d *DB) PostgresConnect()

type Dog

type Dog struct {
	Name       string   `json:"name"`
	Breed      string   `json:"breed"`
	LikesToEat []string `json:"likesToEat"`
	Owner      Owner    `json:"owner"`
}

type DogError

type DogError struct {
	StatusCode int    `json:"statusCode"`
	Message    string `json:"message"`
}

type DogResponseMany

type DogResponseMany struct {
	Status     string `json:"status"`
	StatusCode int    `json:"statusCode"`
	Dogs       []Dog  `json:"dogs"`
}

type DogResponseOne

type DogResponseOne struct {
	Status     string `json:"status"`
	StatusCode int    `json:"statusCode"`
	Dog        Dog    `json:"dog"`
}

type Owner

type Owner struct {
	Name string `json:"name"`
	Age  int    `json:"age"`
}

type Pokemon

type Pokemon struct {
	ID   int64  `json:"id"`
	Name string `json:"name"`
	Type string `json:"type"`
}

func (Pokemon) TableName

func (Pokemon) TableName() string

type PokemonError

type PokemonError struct {
	StatusCode int    `json:"statusCode"`
	Message    string `json:"message"`
}

type PokemonResponseMany

type PokemonResponseMany struct {
	StatusCode int       `json:"statusCode"`
	Pokemon    []Pokemon `json:"pokemon"`
}

type PokemonResponseOne

type PokemonResponseOne struct {
	StatusCode int     `json:"statusCode"`
	Pokemon    Pokemon `json:"pokemon"`
}

type UserClaims

type UserClaims struct {
	jwt.StandardClaims
	SessionId    int64
	TokenVersion int
}

func (*UserClaims) Valid

func (u *UserClaims) Valid() error

type UserDBResponse

type UserDBResponse struct {
	UserName     string
	TokenVersion int
}

Jump to

Keyboard shortcuts

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