mysql

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_TABLE = "k8s-event"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MysqlKubeEventPoint

type MysqlKubeEventPoint struct {
	Namespace                string
	Kind                     string
	Name                     string
	Type                     string
	Reason                   string
	Message                  string
	EventID                  string
	FirstOccurrenceTimestamp string
	LastOccurrenceTimestamp  string
}

type MysqlService

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

func NewMysqlClient

func NewMysqlClient(uri *url.URL) (*MysqlService, error)

func (MysqlService) CloseDB

func (mySvc MysqlService) CloseDB() error

func (MysqlService) CreateDatabase

func (mySvc MysqlService) CreateDatabase(name string) error

func (MysqlService) FlushData

func (mySvc MysqlService) FlushData() error

func (MysqlService) SaveData

func (mySvc MysqlService) SaveData(sinkData []interface{}) error

Jump to

Keyboard shortcuts

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