Documentation
¶
Index ¶
- Constants
- func ErrGrpcListener(err error) error
- func ErrGrpcServer(err error) error
- func ErrNewDiscovery(err error) error
- func ErrNewInformer(err error) error
- func ErrPanic(err interface{}) error
- func ErrSetupCluster(err error) error
- func ErrSetupIstio(err error) error
- func Start(s *Service) error
- type Service
- func (s *Service) Health(context.Context, *empty.Empty) (*controller.ControllerHealth, error)
- func (s *Service) Info(context.Context, *empty.Empty) (*controller.ControllerInfo, error)
- func (s *Service) Initialize(config *rest.Config) error
- func (s *Service) Sync(context.Context, *proto.Request) (*proto.Response, error)
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 ErrGrpcServer ¶
func ErrNewDiscovery ¶
func ErrNewInformer ¶
func ErrSetupCluster ¶
func ErrSetupIstio ¶
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 (s *Service) Health(context.Context, *empty.Empty) (*controller.ControllerHealth, error)
func (*Service) Info ¶
func (s *Service) Info(context.Context, *empty.Empty) (*controller.ControllerInfo, error)
Click to show internal directories.
Click to hide internal directories.