service

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrPanicCode        = "11000"
	ErrGrpcListenerCode = "11001"
	ErrGrpcServerCode   = "11002"
	ErrNewDiscoveryCode = "11003"
	ErrNewInformerCode  = "11004"
	ErrSetupClusterCode = "11005"
	ErrSetupIstioCode   = "11006"
)

Variables

This section is empty.

Functions

func ErrGrpcListener

func ErrGrpcListener(err error) error

func ErrGrpcServer

func ErrGrpcServer(err error) error

func ErrNewDiscovery

func ErrNewDiscovery(err error) error

func ErrNewInformer

func ErrNewInformer(err error) error

func ErrPanic

func ErrPanic(err interface{}) error

func ErrSetupCluster

func ErrSetupCluster(err error) error

func ErrSetupIstio

func ErrSetupIstio(err error) error

func Start

func Start(s *Service) error

Start starts grpc server.

Types

type Service

type Service struct {
	Name      string    `json:"name"`
	Port      string    `json:"port"`
	Version   string    `json:"version"`
	StartedAt time.Time `json:"startedat"`
	Logger    logger.Handler
	Broker    broker.Handler
}

Service object holds all the information about the server parameters.

func (*Service) Health

func (*Service) Info

func (*Service) Initialize

func (s *Service) Initialize(config *rest.Config) error

func (*Service) Sync

Jump to

Keyboard shortcuts

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