Documentation ¶
Index ¶
- Variables
- func Dial(ctx context.Context, dbURL string) (*pgxpool.Pool, error)
- type DBTX
- type Endpoint
- type EndpointListParams
- type Headline
- type HeadlineListByEndpointParams
- type HeadlineListParams
- type Queries
- func (q *Queries) EndpointList(ctx context.Context, arg EndpointListParams) ([]Endpoint, error)
- func (q *Queries) EndpointListTop(ctx context.Context, limit int32) ([]Endpoint, error)
- func (q *Queries) HeadlineList(ctx context.Context, arg HeadlineListParams) ([]Headline, error)
- func (q *Queries) HeadlineListByEndpoint(ctx context.Context, arg HeadlineListByEndpointParams) ([]Headline, error)
- func (q *Queries) RequestCreate(ctx context.Context, arg []RequestCreateParams) *RequestCreateBatchResults
- func (q *Queries) RequestGet(ctx context.Context, id int64) (Request, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Request
- type RequestCreateBatchResults
- type RequestCreateParams
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBatchAlreadyClosed = errors.New("batch already closed")
)
Functions ¶
Types ¶
type EndpointListParams ¶
type HeadlineListParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) EndpointList ¶
func (*Queries) EndpointListTop ¶
func (*Queries) HeadlineList ¶
func (*Queries) HeadlineListByEndpoint ¶
func (*Queries) RequestCreate ¶
func (q *Queries) RequestCreate(ctx context.Context, arg []RequestCreateParams) *RequestCreateBatchResults
func (*Queries) RequestGet ¶
type Request ¶
type Request struct { ID int64 `json:"id"` CreatedAt time.Time `json:"created_at"` RequestID string `json:"request_id"` Domain string `json:"domain"` Method string `json:"method"` Path string `json:"path"` URL string `json:"url"` IP netip.Addr `json:"ip"` Headers []byte `json:"headers"` Content []byte `json:"content"` PartialContent bool `json:"partial_content"` }
type RequestCreateBatchResults ¶
type RequestCreateBatchResults struct {
// contains filtered or unexported fields
}
func (*RequestCreateBatchResults) Close ¶
func (b *RequestCreateBatchResults) Close() error
func (*RequestCreateBatchResults) Exec ¶
func (b *RequestCreateBatchResults) Exec(f func(int, error))
type RequestCreateParams ¶
type RequestCreateParams struct { CreatedAt time.Time `json:"created_at"` Domain string `json:"domain"` Method string `json:"method"` Path string `json:"path"` URL string `json:"url"` IP netip.Addr `json:"ip"` RequestID string `json:"request_id"` Headers []byte `json:"headers"` Content []byte `json:"content"` PartialContent bool `json:"partial_content"` }
Click to show internal directories.
Click to hide internal directories.