clickhouse_dao

package
v0.0.0-...-07ef6c8 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Artistic-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	*sync.Mutex
	ConnectPool *gorm.DB
	Name        string
	ErrorLogger *zap.Logger
	FailLogger  *zap.Logger
}
var GlobalManager *Manager

func NewManager

func NewManager(dsn string, projectName string) (*Manager, error)

func (*Manager) InsertLogEventMulti

func (m *Manager) InsertLogEventMulti(mles []*log_event.MonitorLogEvent) error

func (*Manager) SelectLogEventName

func (m *Manager) SelectLogEventName() map[string]string

func (*Manager) SelectLogEventSla

func (m *Manager) SelectLogEventSla(startTime time.Time, endTime time.Time) []*log_event.Sla

Jump to

Keyboard shortcuts

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