package
Version:
v0.0.0-...-dfd5d66
Opens a new window with list of versions in this module.
Published: Jun 6, 2021
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type App struct {
Router *chi.Mux
DB *gorm.DB
}
type AuthError struct {
StatusCode int `json:"statusCode"`
Error string `json:"error"`
}
type DB struct {
Database *gorm.DB
}
func (d *DB) PostgresConnect()
type Dog struct {
Name string `json:"name"`
Breed string `json:"breed"`
LikesToEat []string `json:"likesToEat"`
Owner Owner `json:"owner"`
}
type DogError struct {
StatusCode int `json:"statusCode"`
Message string `json:"message"`
}
type DogResponseMany struct {
Status string `json:"status"`
StatusCode int `json:"statusCode"`
Dogs []Dog `json:"dogs"`
}
type DogResponseOne struct {
Status string `json:"status"`
StatusCode int `json:"statusCode"`
Dog Dog `json:"dog"`
}
type Owner struct {
Name string `json:"name"`
Age int `json:"age"`
}
type Pokemon struct {
ID int64 `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
}
type PokemonError struct {
StatusCode int `json:"statusCode"`
Message string `json:"message"`
}
type PokemonResponseMany struct {
StatusCode int `json:"statusCode"`
Pokemon []Pokemon `json:"pokemon"`
}
type PokemonResponseOne struct {
StatusCode int `json:"statusCode"`
Pokemon Pokemon `json:"pokemon"`
}
type UserClaims struct {
jwt.StandardClaims
SessionId int64
TokenVersion int
}
type UserDBResponse struct {
UserName string
TokenVersion int
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.