Documentation ¶
Index ¶
- type CreatePasteParams
- type CreateWallParams
- type DBTX
- type GetPastesByWallParams
- type GetPastesByWallRow
- type LinkPasteToWallParams
- type ListPublicPastesParams
- type ListPublicWallsParams
- type Paste
- type Queries
- func (q *Queries) Close() error
- func (q *Queries) CountPastes(ctx context.Context) (int64, error)
- func (q *Queries) CountWalls(ctx context.Context) (int64, error)
- func (q *Queries) CreatePaste(ctx context.Context, arg CreatePasteParams) (Paste, error)
- func (q *Queries) CreateWall(ctx context.Context, arg CreateWallParams) (Wall, error)
- func (q *Queries) DeletePasteById(ctx context.Context, id int64) error
- func (q *Queries) DeletePasteByIp(ctx context.Context, ip pqtype.Inet) error
- func (q *Queries) DeleteWallById(ctx context.Context, id int64) error
- func (q *Queries) DeleteWallsByIp(ctx context.Context, ip pqtype.Inet) error
- func (q *Queries) GetPasteByRandId(ctx context.Context, randID string) (Paste, error)
- func (q *Queries) GetPastesByWall(ctx context.Context, arg GetPastesByWallParams) ([]GetPastesByWallRow, error)
- func (q *Queries) GetWallByRandId(ctx context.Context, randID string) (Wall, error)
- func (q *Queries) LinkPasteToWall(ctx context.Context, arg LinkPasteToWallParams) (WallsPaste, error)
- func (q *Queries) ListPublicPastes(ctx context.Context, arg ListPublicPastesParams) ([]Paste, error)
- func (q *Queries) ListPublicWalls(ctx context.Context, arg ListPublicWallsParams) ([]Wall, error)
- func (q *Queries) SearchPastesByText(ctx context.Context, arg SearchPastesByTextParams) ([]Paste, error)
- func (q *Queries) UpdatePaste(ctx context.Context, arg UpdatePasteParams) (Paste, error)
- func (q *Queries) UpdateWall(ctx context.Context, arg UpdateWallParams) (Wall, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type SearchPastesByTextParams
- type UpdatePasteParams
- type UpdateWallParams
- type Wall
- type WallsPaste
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatePasteParams ¶
type CreateWallParams ¶ added in v0.1.8
type GetPastesByWallParams ¶ added in v0.1.8
type GetPastesByWallRow ¶ added in v0.1.8
type GetPastesByWallRow struct { WallID int64 `json:"wall_id"` PasteID int64 `json:"paste_id"` ID int64 `json:"id"` Public bool `json:"public"` RandID string `json:"rand_id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` PasteBlob []byte `json:"paste_blob"` Ip pqtype.Inet `json:"ip"` }
type LinkPasteToWallParams ¶ added in v0.1.8
type ListPublicPastesParams ¶
type ListPublicWallsParams ¶ added in v0.1.8
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CountPastes ¶ added in v0.1.12
func (*Queries) CountWalls ¶ added in v0.1.12
func (*Queries) CreatePaste ¶
func (*Queries) CreateWall ¶ added in v0.1.8
func (*Queries) DeletePasteById ¶ added in v0.1.4
func (*Queries) DeletePasteByIp ¶ added in v0.1.4
func (*Queries) DeleteWallById ¶ added in v0.1.8
func (*Queries) DeleteWallsByIp ¶ added in v0.1.8
func (*Queries) GetPasteByRandId ¶
func (*Queries) GetPastesByWall ¶ added in v0.1.8
func (q *Queries) GetPastesByWall(ctx context.Context, arg GetPastesByWallParams) ([]GetPastesByWallRow, error)
func (*Queries) GetWallByRandId ¶ added in v0.1.8
func (*Queries) LinkPasteToWall ¶ added in v0.1.8
func (q *Queries) LinkPasteToWall(ctx context.Context, arg LinkPasteToWallParams) (WallsPaste, error)
func (*Queries) ListPublicPastes ¶
func (*Queries) ListPublicWalls ¶ added in v0.1.8
func (*Queries) SearchPastesByText ¶ added in v0.1.11
func (*Queries) UpdatePaste ¶
func (*Queries) UpdateWall ¶ added in v0.1.8
type SearchPastesByTextParams ¶ added in v0.1.11
type UpdatePasteParams ¶
type UpdateWallParams ¶ added in v0.1.8
type WallsPaste ¶ added in v0.1.8
Click to show internal directories.
Click to hide internal directories.