Documentation ¶
Index ¶
- type AwsUptime
- type AwsUptimeTracker
- type DBTX
- type InsertParams
- type Queries
- func (q *Queries) Close() error
- func (q *Queries) Count(ctx context.Context) (int64, error)
- func (q *Queries) Insert(ctx context.Context, arg InsertParams) (int, error)
- func (q *Queries) Oldest(ctx context.Context) (string, error)
- func (q *Queries) Track(ctx context.Context, runDate string) error
- func (q *Queries) UptimePerDay(ctx context.Context, arg UptimePerDayParams) ([]UptimePerDayRow, error)
- func (q *Queries) UptimePerDayFilterByUnit(ctx context.Context, arg UptimePerDayFilterByUnitParams) ([]UptimePerDayFilterByUnitRow, error)
- func (q *Queries) UptimePerDayUnit(ctx context.Context, arg UptimePerDayUnitParams) ([]UptimePerDayUnitRow, error)
- func (q *Queries) UptimePerMonth(ctx context.Context, arg UptimePerMonthParams) ([]UptimePerMonthRow, error)
- func (q *Queries) UptimePerMonthFilterByUnit(ctx context.Context, arg UptimePerMonthFilterByUnitParams) ([]UptimePerMonthFilterByUnitRow, error)
- func (q *Queries) UptimePerMonthUnit(ctx context.Context, arg UptimePerMonthUnitParams) ([]UptimePerMonthUnitRow, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- func (q *Queries) Youngest(ctx context.Context) (string, error)
- type UptimePerDayFilterByUnitParams
- type UptimePerDayFilterByUnitRow
- type UptimePerDayParams
- type UptimePerDayRow
- type UptimePerDayUnitParams
- type UptimePerDayUnitRow
- type UptimePerMonthFilterByUnitParams
- type UptimePerMonthFilterByUnitRow
- type UptimePerMonthParams
- type UptimePerMonthRow
- type UptimePerMonthUnitParams
- type UptimePerMonthUnitRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsUptime ¶
type AwsUptime struct { ID int `json:"id"` Ts string `json:"ts"` Unit string `json:"unit"` Average float64 `json:"average"` Date string `json:"date"` }
func (*AwsUptime) Insertable ¶
func (a *AwsUptime) Insertable() InsertParams
type AwsUptimeTracker ¶
type InsertParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) UptimePerDay ¶ added in v1.6.0
func (q *Queries) UptimePerDay(ctx context.Context, arg UptimePerDayParams) ([]UptimePerDayRow, error)
func (*Queries) UptimePerDayFilterByUnit ¶ added in v1.6.0
func (q *Queries) UptimePerDayFilterByUnit(ctx context.Context, arg UptimePerDayFilterByUnitParams) ([]UptimePerDayFilterByUnitRow, error)
func (*Queries) UptimePerDayUnit ¶ added in v1.6.0
func (q *Queries) UptimePerDayUnit(ctx context.Context, arg UptimePerDayUnitParams) ([]UptimePerDayUnitRow, error)
func (*Queries) UptimePerMonth ¶ added in v1.6.0
func (q *Queries) UptimePerMonth(ctx context.Context, arg UptimePerMonthParams) ([]UptimePerMonthRow, error)
func (*Queries) UptimePerMonthFilterByUnit ¶ added in v1.6.0
func (q *Queries) UptimePerMonthFilterByUnit(ctx context.Context, arg UptimePerMonthFilterByUnitParams) ([]UptimePerMonthFilterByUnitRow, error)
func (*Queries) UptimePerMonthUnit ¶ added in v1.6.0
func (q *Queries) UptimePerMonthUnit(ctx context.Context, arg UptimePerMonthUnitParams) ([]UptimePerMonthUnitRow, error)
type UptimePerDayFilterByUnitParams ¶ added in v1.6.0
type UptimePerDayFilterByUnitRow ¶ added in v1.6.0
type UptimePerDayFilterByUnitRow struct { Average interface{} `json:"average"` Interval interface{} `json:"interval"` Unit string `json:"unit"` }
type UptimePerDayParams ¶ added in v1.6.0
type UptimePerDayRow ¶ added in v1.6.0
type UptimePerDayRow struct { Average interface{} `json:"average"` Interval interface{} `json:"interval"` }
type UptimePerDayUnitParams ¶ added in v1.6.0
type UptimePerDayUnitRow ¶ added in v1.6.0
type UptimePerDayUnitRow struct { Average interface{} `json:"average"` Interval interface{} `json:"interval"` Unit string `json:"unit"` }
type UptimePerMonthFilterByUnitParams ¶ added in v1.6.0
type UptimePerMonthFilterByUnitRow ¶ added in v1.6.0
type UptimePerMonthFilterByUnitRow struct { Average interface{} `json:"average"` Interval interface{} `json:"interval"` Unit string `json:"unit"` }
type UptimePerMonthParams ¶ added in v1.6.0
type UptimePerMonthRow ¶ added in v1.6.0
type UptimePerMonthRow struct { Average interface{} `json:"average"` Interval interface{} `json:"interval"` }
type UptimePerMonthUnitParams ¶ added in v1.6.0
type UptimePerMonthUnitRow ¶ added in v1.6.0
type UptimePerMonthUnitRow struct { Average interface{} `json:"average"` Interval interface{} `json:"interval"` Unit string `json:"unit"` }
Click to show internal directories.
Click to hide internal directories.