serviceprovider

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Config     config.Config
	Redis      *redis.Service
	Mongo      *mongo.Service
	Prometheus *prometheusprovider.Service
	KubeCtl    *kubeCtl.KubeCtl
	Validator  *validator.Validate
}

Container is the structure for container

func New

func New(cf config.Config) *Container

New will create container

func NewContainer

func NewContainer(configPath string) *Container

NewContainer will new a container

func NewForTesting

func NewForTesting(cf config.Config) *Container

NewForTesting will test container for creating a container

type Service

type Service interface{}

Service is the interface

type ServiceDiscoverResponse

type ServiceDiscoverResponse struct {
	Container map[string]Service `json:"services"`
}

ServiceDiscoverResponse is the structure for Service Discover Response

Jump to

Keyboard shortcuts

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