Documentation ¶
Index ¶
- type ControlServer
- func (s *ControlServer) AddService(ctx context.Context, svc *pb.NewService) (*pb.Nope, error)
- func (s *ControlServer) AllServices(context.Context, *pb.Nope) (*pb.Services, error)
- func (s *ControlServer) GetService(ctx context.Context, name *pb.ServiceName) (*pb.Service, error)
- func (s *ControlServer) Start(ctx context.Context) error
- func (s *ControlServer) Stop(ctx context.Context)
- func (s *ControlServer) UpdateService(ctx context.Context, svc *pb.NewService) (*pb.Nope, error)
- type Service
- type Supervisor
- func (s *Supervisor) AddService(name string, cmdline string) error
- func (s *Supervisor) AllServiceNames() []string
- func (s *Supervisor) Get(name string) (*Service, error)
- func (s *Supervisor) GetService(name string) (*pb.Service, error)
- func (s *Supervisor) StopAll()
- func (s *Supervisor) StopService(name string) error
- func (s *Supervisor) UpdateService(name string, cmdline string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlServer ¶
type ControlServer struct {
// contains filtered or unexported fields
}
func NewControlServer ¶
func NewControlServer(super *Supervisor) *ControlServer
func (*ControlServer) AddService ¶
func (s *ControlServer) AddService(ctx context.Context, svc *pb.NewService) (*pb.Nope, error)
func (*ControlServer) AllServices ¶
AllServices returns all registered services.
func (*ControlServer) GetService ¶
func (s *ControlServer) GetService(ctx context.Context, name *pb.ServiceName) (*pb.Service, error)
GetService returns service description for provided topic name.
func (*ControlServer) Stop ¶
func (s *ControlServer) Stop(ctx context.Context)
func (*ControlServer) UpdateService ¶
func (s *ControlServer) UpdateService(ctx context.Context, svc *pb.NewService) (*pb.Nope, error)
type Supervisor ¶
type Supervisor struct {
// contains filtered or unexported fields
}
func NewSupervisor ¶
func NewSupervisor() *Supervisor
func (*Supervisor) AddService ¶
func (s *Supervisor) AddService(name string, cmdline string) error
func (*Supervisor) AllServiceNames ¶
func (s *Supervisor) AllServiceNames() []string
func (*Supervisor) GetService ¶
func (s *Supervisor) GetService(name string) (*pb.Service, error)
func (*Supervisor) StopAll ¶
func (s *Supervisor) StopAll()
func (*Supervisor) StopService ¶
func (s *Supervisor) StopService(name string) error
func (*Supervisor) UpdateService ¶
func (s *Supervisor) UpdateService(name string, cmdline string) error
Click to show internal directories.
Click to hide internal directories.