paste

package
v0.0.0-...-0213d94 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Paste

type Paste struct {
	Hash       string    `db:"hash"`
	Title      string    `db:"title"`
	Visibility string    `db:"visibility"`
	CreatedAt  time.Time `db:"created_at"`
	ExpiredAt  time.Time `db:"expired_at"`
	Content    string    `db:"content"`
}

type Pastes

type Pastes []*Paste

type RequestDto

type RequestDto struct {
	Title      string `json:"title"`
	Visibility string `json:"visibility"`
	Content    string `json:"content"`
	Expires    string `json:"expires"`
}

type ResponseDto

type ResponseDto struct {
	Hash       string         `json:"hash"`
	Title      string         `json:"title"`
	Visibility visibility.Dto `json:"visibility"`
	Content    string         `json:"content"`
	CreatedAt  string         `json:"created_at"`
	ExpiredAt  string         `json:"expired_at"`
}

type ResponseDtos

type ResponseDtos []*ResponseDto

Jump to

Keyboard shortcuts

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