Documentation
¶
Index ¶
- type Server
- func (s *Server) AgentStream(stream pb.AgentService_AgentStreamServer) error
- func (s *Server) ExecuteCommand(ctx context.Context, req *pb.CommandRequest) (*pb.CommandResponse, error)
- func (s *Server) GracefulStop()
- func (s *Server) HealthCheck(ctx context.Context, req *pb.HealthCheckRequest) (*pb.HealthCheckResponse, error)
- func (s *Server) Serve(address string) error
- func (s *Server) Stop()
- func (s *Server) StreamLogs(req *pb.LogStreamRequest, stream pb.AgentService_StreamLogsServer) error
- func (s *Server) UpdateConfig(ctx context.Context, req *pb.ConfigUpdateRequest) (*pb.ConfigUpdateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
pb.UnimplementedAgentServiceServer
// contains filtered or unexported fields
}
Server represents the gRPC server
func (*Server) AgentStream ¶
func (s *Server) AgentStream(stream pb.AgentService_AgentStreamServer) error
AgentStream implements the AgentStream RPC method
func (*Server) ExecuteCommand ¶
func (s *Server) ExecuteCommand(ctx context.Context, req *pb.CommandRequest) (*pb.CommandResponse, error)
ExecuteCommand implements the ExecuteCommand RPC method
func (*Server) GracefulStop ¶
func (s *Server) GracefulStop()
GracefulStop gracefully stops the gRPC server
func (*Server) HealthCheck ¶
func (s *Server) HealthCheck(ctx context.Context, req *pb.HealthCheckRequest) (*pb.HealthCheckResponse, error)
HealthCheck implements the HealthCheck RPC method
func (*Server) StreamLogs ¶
func (s *Server) StreamLogs(req *pb.LogStreamRequest, stream pb.AgentService_StreamLogsServer) error
StreamLogs implements the StreamLogs RPC method
func (*Server) UpdateConfig ¶
func (s *Server) UpdateConfig(ctx context.Context, req *pb.ConfigUpdateRequest) (*pb.ConfigUpdateResponse, error)
UpdateConfig implements the UpdateConfig RPC method
Click to show internal directories.
Click to hide internal directories.