registry

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MongoDB mongoDB

MongoDB client for mongo database

View Source
var (
	// RedisDB client for redis
	RedisDB redisClient
)

Functions

func GetAllServices

func GetAllServices() (*[]string, error)

GetAllServices returns all services names

Types

type SchemaRegistry

type SchemaRegistry struct {
	ServiceName string
	ServiceURL  string
	TypeDefs    string
}

SchemaRegistry to add a schema to the registry

func GetServiceSchema

func GetServiceSchema(service string) (*SchemaRegistry, error)

GetServiceSchema get service schema from redis

func (*SchemaRegistry) Save

func (s *SchemaRegistry) Save() error

Save the schema in redis

func (*SchemaRegistry) ValidateSchema

func (s *SchemaRegistry) ValidateSchema() error

ValidateSchema validates the graphql schema

Jump to

Keyboard shortcuts

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