package
Version:
v0.0.0-...-0213d94
Opens a new window with list of versions in this module.
Published: Apr 23, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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 RequestDto struct {
Title string `json:"title"`
Visibility string `json:"visibility"`
Content string `json:"content"`
Expires string `json:"expires"`
}
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"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.