service

package
v0.0.0-...-99cece9 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotServiceInstances = errors.New("instances are not existed")

Functions

This section is empty.

Types

type RegisterServiceImpl

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

func (*RegisterServiceImpl) DiscoveryService

func (service *RegisterServiceImpl) DiscoveryService(ctx context.Context, serviceName string) ([]*api.AgentService, error)

func (*RegisterServiceImpl) HealthCheck

func (*RegisterServiceImpl) HealthCheck() string

type Service

type Service interface {
	HealthCheck() string

	DiscoveryService(ctx context.Context, serviceName string) ([]*api.AgentService, error)
}

func NewRegisterServiceImpl

func NewRegisterServiceImpl(discoveryClient *discovery.DiscoveryClient) Service

Jump to

Keyboard shortcuts

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