Documentation ¶
Index ¶
- type AutocertCache
- type AutocertCachePutParams
- type CreateEventsParams
- type CreateSessionParams
- type DBTX
- type Domain
- type Event
- type GetSessionParams
- type Queries
- func (q *Queries) AutocertCacheDelete(ctx context.Context, key string) error
- func (q *Queries) AutocertCacheGet(ctx context.Context, key string) ([]byte, error)
- func (q *Queries) AutocertCachePut(ctx context.Context, arg AutocertCachePutParams) error
- func (q *Queries) CreateEvents(ctx context.Context, arg []CreateEventsParams) (int64, error)
- func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) (int64, error)
- func (q *Queries) GetEvent(ctx context.Context, id int64) (Event, error)
- func (q *Queries) GetSalt(ctx context.Context) (Salt, error)
- func (q *Queries) GetSession(ctx context.Context, arg GetSessionParams) (int64, error)
- func (q *Queries) ListEvents(ctx context.Context) ([]Event, error)
- func (q *Queries) PruneEvents(ctx context.Context, theInterval pgtype.Interval) error
- func (q *Queries) PruneSessions(ctx context.Context, theInterval pgtype.Interval) error
- func (q *Queries) UpdateSalt(ctx context.Context) error
- func (q *Queries) UpdateSession(ctx context.Context, arg UpdateSessionParams) error
- func (q *Queries) UpsertDomain(ctx context.Context, domainName string) (int32, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Salt
- type Session
- type UpdateSessionParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutocertCache ¶
type AutocertCache struct { Key string Data []byte CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }
type AutocertCachePutParams ¶
type CreateEventsParams ¶
type CreateSessionParams ¶
type CreateSessionParams struct { DomainID int32 ExitPath string VisitorID pgtype.Text EntryPath string Country pgtype.Text Latitude pgtype.Float8 Longitude pgtype.Float8 Subdivision pgtype.Text City pgtype.Text Browser pgtype.Text BrowserVersion pgtype.Text Os pgtype.Text OsVersion pgtype.Text Platform pgtype.Text DeviceType pgtype.Text Bot bool ScreenW pgtype.Int4 ScreenH pgtype.Int4 Timezone pgtype.Text PixelRatio pgtype.Float8 PixelDepth pgtype.Int4 UtmSource pgtype.Text UtmMedium pgtype.Text UtmCampaign pgtype.Text UtmContent pgtype.Text UtmTerm pgtype.Text }
type DBTX ¶
type DBTX interface { Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error) Query(context.Context, string, ...interface{}) (pgx.Rows, error) QueryRow(context.Context, string, ...interface{}) pgx.Row CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) }
type GetSessionParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AutocertCacheDelete ¶
func (*Queries) AutocertCacheGet ¶
func (*Queries) AutocertCachePut ¶
func (q *Queries) AutocertCachePut(ctx context.Context, arg AutocertCachePutParams) error
func (*Queries) CreateEvents ¶
func (*Queries) CreateSession ¶
-- MUST call this in a transaction after GetSession ----
func (*Queries) GetSession ¶
func (*Queries) PruneEvents ¶
func (*Queries) PruneSessions ¶
func (*Queries) UpdateSession ¶
func (q *Queries) UpdateSession(ctx context.Context, arg UpdateSessionParams) error
-- MUST call this in a transaction after GetSession ----
func (*Queries) UpsertDomain ¶
type Session ¶
type Session struct { ID int64 UpdatedAt pgtype.Timestamptz Duration pgtype.Int4 Bounce bool ExitPath string VisitorID pgtype.Text CreatedAt pgtype.Timestamptz DomainID int32 EntryPath string Country pgtype.Text Latitude pgtype.Float8 Longitude pgtype.Float8 Subdivision pgtype.Text City pgtype.Text Browser pgtype.Text BrowserVersion pgtype.Text Os pgtype.Text OsVersion pgtype.Text Platform pgtype.Text DeviceType pgtype.Text Bot bool ScreenW pgtype.Int4 ScreenH pgtype.Int4 Timezone pgtype.Text PixelRatio pgtype.Float8 PixelDepth pgtype.Int4 UtmSource pgtype.Text UtmMedium pgtype.Text UtmCampaign pgtype.Text UtmContent pgtype.Text UtmTerm pgtype.Text }
type UpdateSessionParams ¶
Click to show internal directories.
Click to hide internal directories.