Documentation ¶
Overview ¶
Package server handles satisfying the api.RSCAServer interface for the gRPC connection from the clients.
Index ¶
- Variables
- type Server
- func (s *Server) ListHosts(_ *api.Empty, stream api.Admin_ListHostsServer) error
- func (s *Server) Pipe(stream api.RSCA_PipeServer) error
- func (s *Server) RemoveHost(_ context.Context, in *api.RemoveHostRequest) (*api.RemoveHostResponse, error)
- func (s *Server) Run(ctx context.Context, cfg config.Conf) func() error
- func (s *Server) Send(msg *api.Message) error
- func (s *Server) TriggerAll(_ context.Context, m *api.Members) (*api.TriggerAllResponse, error)
- func (s *Server) TriggerInfo(_ context.Context, m *api.Members) (*api.TriggerInfoResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownMessageType = errors.New("unknown message type")
ErrUnknownMessageType is returned when a message is of unknown type.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a api.RSCAServer for co-ordinating streams from clients.
func (*Server) Pipe ¶
func (s *Server) Pipe(stream api.RSCA_PipeServer) error
Pipe handles incoming streams and maintains the stream map.
func (*Server) RemoveHost ¶ added in v0.5.9
func (s *Server) RemoveHost(_ context.Context, in *api.RemoveHostRequest) (*api.RemoveHostResponse, error)
RemoveHost removes a specified list of hosts from the server.
func (*Server) Send ¶
Send sends a supplied message to the clients specified in the api.Message:Recipients.
func (*Server) TriggerAll ¶
TriggerAll triggers all the services on a matching host.
func (*Server) TriggerInfo ¶ added in v0.5.0
TriggerInfo triggers an information update from the host (repeat-registration).
Click to show internal directories.
Click to hide internal directories.