mongo

package
v0.0.0-...-7aae7b9 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// 0-待初始化,1-流程执行中,2-实例有效,-2-已隔离(包年包月实例),-3-已隔离(按量计费实例)
	// 参考文档: https://console.cloud.tencent.com/api/explorer?Product=mongodb&Version=2019-07-25&Action=DescribeDBInstances&SignVersion=
	STATUS_MAP = map[int64]mongodb.STATUS{
		0:  mongodb.STATUS_PENDING,
		1:  mongodb.STATUS_PENDING,
		2:  mongodb.STATUS_RUNNING,
		-2: mongodb.STATUS_ISOLATIONED,
		-3: mongodb.STATUS_ISOLATIONED,
	}
)

Functions

func ParseClusterType

func ParseClusterType(t *uint64) string

Types

type MongoOperator

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

func NewMongoOperator

func NewMongoOperator(client *mongodb.Client) *MongoOperator

func (*MongoOperator) PageQueryMongoDB

func (o *MongoOperator) PageQueryMongoDB(req *provider.QueryRequest) pager.Pager

Jump to

Keyboard shortcuts

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