types

package
v0.0.0-...-af438c1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 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 AuthRequest

type AuthRequest struct {
	Token  string `json:"token"`
	Expire int64  `json:"expire"`
}

type ErrorResponse

type ErrorResponse struct {
	Error   string `json:"error"`
	Details string `json:"details"`
}

type Login

type Login struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type Model

type Model struct {
	ID        uint       `gorm:"primary_key;column:id" json:"id"`
	CreatedAt time.Time  `gorm:"column:created_at" json:"created_at"`
	UpdatedAt time.Time  `gorm:"column:updated_at" json:"updated_at"`
	DeletedAt *time.Time `gorm:"column:deleted_at" json:"deleted_at"`
}

Model definition same as gorm.Model, but including column and json tags

type TopWord

type TopWord struct {
	Model
	Word  string `json:"word"`
	Count int    `json:"count"`
}

Jump to

Keyboard shortcuts

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