cql

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertHistory

type AlertHistory struct {
	GroupID    string `db:"group_id"`
	Timestamp  int64  `db:"timestamp"`
	AlertState string `db:"alert_state"`
	Title      string `db:"title"`
	Content    string `db:"content"`
	DisplayURL string `db:"display_url"`
}

AlertHistory .

type AlertHistoryCql

type AlertHistoryCql struct {
	*gocql.Session
}

func (*AlertHistoryCql) QueryAlertHistory

func (cql *AlertHistoryCql) QueryAlertHistory(groupID string, start, end int64, limit uint) ([]*AlertHistory, error)

func (*AlertHistoryCql) TableName

func (cql *AlertHistoryCql) TableName() string

type Cql

type Cql struct {
	*gocql.Session
	AlertHistory AlertHistoryCql
}

Cql .

func New

func New(session *gocql.Session) *Cql

New .

func (*Cql) Init

func (cql *Cql) Init(log logs.Logger, gcGraceSeconds int) error

Init .

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL