mysql

package
v0.0.0-...-788cf20 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 11 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 {
	*sql.DB
	// contains filtered or unexported fields
}

func New

func New(logger *zap.Logger, conf *types.DatabaseMetadata, modelsDir string) (*Client, error)

New returns backend client with error to the calling function.

func (*Client) Close

func (c *Client) Close()

func (*Client) CreateInterruptRecord

func (c *Client) CreateInterruptRecord(i *types.Interrupt) error

func (*Client) CreateOncallRecord

func (c *Client) CreateOncallRecord(o *types.Oncall) error

func (*Client) DeleteInterruptRecord

func (c *Client) DeleteInterruptRecord(i *types.Interrupt) error

func (*Client) DeleteOncallRecord

func (c *Client) DeleteOncallRecord(o *types.Oncall) error

func (*Client) GetInterruptRecords

func (c *Client) GetInterruptRecords(i *types.Interrupt) ([]types.Interrupt, error)

func (*Client) GetInterruptRecordsForChannel

func (c *Client) GetInterruptRecordsForChannel(i *types.Interrupt) ([]types.Interrupt, error)

func (*Client) GetOncallRecords

func (c *Client) GetOncallRecords(o *types.Oncall) ([]types.Oncall, error)

Jump to

Keyboard shortcuts

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