db

package
v3.4.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTask

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

BuildTask build task

Types

type ConDB

type ConDB struct {
	ConnectionInfo string
	DBType         string
}

ConDB struct

func (*ConDB) GetDBManager

func (d *ConDB) GetDBManager() (db.Manager, error)

GetDBManager get db manager TODO: need to try when happend error, try 4 times

type MQManager

type MQManager struct {
	Endpoint string
}

MQManager mq manager

func (*MQManager) NewMQManager

func (m *MQManager) NewMQManager() (pb.TaskQueueClient, error)

NewMQManager new mq manager

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