Documentation ¶
Index ¶
- type CreateLinkParams
- type DBTX
- type Link
- type Queries
- func (q *Queries) CreateLink(ctx context.Context, arg CreateLinkParams) (sql.Result, error)
- func (q *Queries) DeleteLink(ctx context.Context, hash string) error
- func (q *Queries) GetLinkByHash(ctx context.Context, hash string) (Link, error)
- func (q *Queries) GetLinks(ctx context.Context) ([]Link, error)
- func (q *Queries) UpdateLink(ctx context.Context, arg UpdateLinkParams) (sql.Result, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type UpdateLinkParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateLinkParams ¶
type CreateLinkParams struct { ID uuid.UUID Url string Hash string Describe sql.NullString Json json.RawMessage }
type Link ¶
type Link struct { ID uuid.UUID Url string Hash string Describe sql.NullString Json json.RawMessage CreatedAt time.Time UpdatedAt time.Time }
Link list
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateLink ¶
func (*Queries) GetLinkByHash ¶
func (*Queries) UpdateLink ¶
type UpdateLinkParams ¶
type UpdateLinkParams struct { Url string Hash string Describe sql.NullString Json json.RawMessage ID uuid.UUID }
Click to show internal directories.
Click to hide internal directories.