rainbond: github.com/goodrain/rainbond/api/db Index | Files

package db

import "github.com/goodrain/rainbond/api/db"


Package Files


func BuildTask Uses

func BuildTask(t *TaskStruct) (*pb.EnqueueRequest, error)

BuildTask build task

func CreateDBManager Uses

func CreateDBManager(conf option.Config) error

CreateDBManager get db manager TODO: need to try when happened error, try 4 times

func CreateEventManager Uses

func CreateEventManager(conf option.Config) error

CreateEventManager create event manager

func GetBegin Uses

func GetBegin() *gorm.DB

GetBegin get db transaction

type ConDB Uses

type ConDB struct {
    ConnectionInfo string
    DBType         string

ConDB struct

type MQManager Uses

type MQManager struct {
    EtcdClientArgs *etcdutil.ClientArgs
    DefaultServer  string

MQManager mq manager

func (*MQManager) NewMQManager Uses

func (m *MQManager) NewMQManager() (client.MQClient, error)

NewMQManager new mq manager

type OpentsdbManager Uses

type OpentsdbManager struct {
    Endpoint string

OpentsdbManager OpentsdbManager

func (*OpentsdbManager) NewOpentsdbManager Uses

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

NewOpentsdbManager NewOpentsdbManager

type TaskStruct Uses

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

TaskStruct task struct

Package db imports 15 packages (graph) and is imported by 2 packages. Updated 2020-03-30. Refresh now. Tools for package owners.