services

package
v0.0.0-...-88c21d1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MngoCtx context.Context

	MngoNamesCollection = MongoCollectionNames{
		DATA:       "datas",
		COMPUTING:  "computings",
		STORAGE:    "storages",
		DATACENTER: "datacenters",
		WORKSPACE:  "WORKSPACE",
		SCHEDULE:   "SCHEDULE",
	}

	MngoCollData       *mongo.Collection
	MngoCollComputing  *mongo.Collection
	MngoCollStorage    *mongo.Collection
	MngoCollDatacenter *mongo.Collection
	MngoCollWorkspace  *mongo.Collection
	MngoCollSchedule   *mongo.Collection
)
View Source
var DC_NAME string

Functions

func Discoveryinit

func Discoveryinit()

func GetSelfAPI

func GetSelfAPI(host string) *SelfAPI.APIClient

func Init

func Init()

func MongoDisconnect

func MongoDisconnect()

func Mongoinit

func Mongoinit(DBname string)

Types

type MongoCollectionNames

type MongoCollectionNames struct {
	DATA       string
	COMPUTING  string
	STORAGE    string
	DATACENTER string
	WORKSPACE  string
	SCHEDULE   string
}

Jump to

Keyboard shortcuts

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