schema

package
v0.0.0-...-5dc8409 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSchemaIDsMap map[string]string

DefaultSchemaIDsMap default schema schema IDs map

Functions

func GetMicroserviceNames

func GetMicroserviceNames() []string

GetMicroserviceNames get micro-service names

func GetMicroserviceNamesBySchemas

func GetMicroserviceNamesBySchemas() []string

GetMicroserviceNamesBySchemas get micro-service names by schemas

func GetSchemaIDs

func GetSchemaIDs(microserviceName string) ([]string, error)

GetSchemaIDs get schema IDs

func LoadSchema

func LoadSchema(path string, schemaEnv bool) error

LoadSchema to load the schema files and micro-service information under the conf directory

func SetMicroServiceNames

func SetMicroServiceNames(confDir string) error

SetMicroServiceNames set micro service names

Types

type MicroserviceMeta

type MicroserviceMeta struct {
	MicroserviceName string
	SchemaIDs        []string
}

MicroserviceMeta is the struct for micro service meta

func NewMicroserviceMeta

func NewMicroserviceMeta(microserviceName string) *MicroserviceMeta

NewMicroserviceMeta gives the object of MicroserviceMeta

Jump to

Keyboard shortcuts

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