db

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBegin

func GetBegin() *gorm.DB

GetBegin get db transaction

Types

type ConDB

type ConDB struct {
	ConnectionInfo string
	DBType         string
}

ConDB struct

func Database added in v1.13.0

func Database() *ConDB

func (*ConDB) CloseHandle added in v1.13.0

func (_ *ConDB) CloseHandle()

CloseHandle -

func (*ConDB) Start added in v1.13.0

func (_ *ConDB) Start(ctx context.Context, cfg *configs.Config) error

Start -

type OpentsdbManager

type OpentsdbManager struct {
	Endpoint string
}

OpentsdbManager OpentsdbManager

func (*OpentsdbManager) NewOpentsdbManager

func (o *OpentsdbManager) NewOpentsdbManager() (tsdbClient.Client, error)

NewOpentsdbManager NewOpentsdbManager

type TaskStruct

type TaskStruct struct {
	TaskType string
	TaskBody model.TaskBody
	User     string
}

TaskStruct task struct

Jump to

Keyboard shortcuts

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