mysql

package
v1.5.2-0...-5a4c8dc Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(conf *config.DB) (*Client, error)

func (*Client) AddAlert

func (db *Client) AddAlert(alert cache.Alert) error

func (*Client) Close

func (db *Client) Close() error

func (*Client) CreateTables

func (db *Client) CreateTables() error

func (*Client) DeleteOldAlerts

func (db *Client) DeleteOldAlerts() (int64, error)

func (*Client) Healthy

func (db *Client) Healthy() error

func (*Client) LoadAlerts

func (db *Client) LoadAlerts() ([]cache.Alert, error)

func (*Client) LoadUser

func (db *Client) LoadUser(login string) (cache.User, error)

func (*Client) LoadUsers

func (db *Client) LoadUsers() ([]cache.User, error)

func (*Client) SaveAlerts

func (db *Client) SaveAlerts(alerts map[string]cache.Alert) error

func (*Client) SaveUser

func (db *Client) SaveUser(user cache.User) error

func (*Client) UpdAlert

func (db *Client) UpdAlert(alert cache.Alert) error

Jump to

Keyboard shortcuts

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