models

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePasteRequest added in v0.0.3

type CreatePasteRequest struct {
	Content    string
	Burn       bool
	Language   string
	ExpiryTime string
}

type DB added in v0.0.3

type DB struct {
	*gorm.DB
	Logger  *zap.Logger
	DBName  string
	Retries int
}

type Paste

type Paste struct {
	Content         string    `json:"content" example:"Paste A"`
	Burn            bool      `json:"burn" example:"false"`
	Language        string    `json:"language" example:"go"`
	UUID            uuid.UUID `json:"paste_id" gorm:"type:uuid"`
	ExpiryTimestamp time.Time `json:"expiry_timestamp" example:"2021-01-01T00:00:00Z"`
}

Jump to

Keyboard shortcuts

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