Documentation
¶
Index ¶
- type NezhaHandler
- func (s *NezhaHandler) AgentConnected(streamId string, agentIo io.ReadWriteCloser) error
- func (s *NezhaHandler) CloseStream(streamId string) error
- func (s *NezhaHandler) CreateStream(streamId string)
- func (s *NezhaHandler) GetStream(streamId string) (*ioStreamContext, error)
- func (s *NezhaHandler) IOStream(stream pb.NezhaService_IOStreamServer) error
- func (s *NezhaHandler) LookupGeoIP(c context.Context, r *pb.GeoIP) (*pb.GeoIP, error)
- func (s *NezhaHandler) ReportSystemInfo(c context.Context, r *pb.Host) (*pb.Receipt, error)
- func (s *NezhaHandler) ReportSystemState(c context.Context, r *pb.State) (*pb.Receipt, error)
- func (s *NezhaHandler) ReportTask(c context.Context, r *pb.TaskResult) (*pb.Receipt, error)
- func (s *NezhaHandler) RequestTask(h *pb.Host, stream pb.NezhaService_RequestTaskServer) error
- func (s *NezhaHandler) StartStream(streamId string, timeout time.Duration) error
- func (s *NezhaHandler) UserConnected(streamId string, userIo io.ReadWriteCloser) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NezhaHandler ¶
type NezhaHandler struct {
Auth *authHandler
// contains filtered or unexported fields
}
var NezhaHandlerSingleton *NezhaHandler
func NewNezhaHandler ¶
func NewNezhaHandler() *NezhaHandler
func (*NezhaHandler) AgentConnected ¶
func (s *NezhaHandler) AgentConnected(streamId string, agentIo io.ReadWriteCloser) error
func (*NezhaHandler) CloseStream ¶
func (s *NezhaHandler) CloseStream(streamId string) error
func (*NezhaHandler) CreateStream ¶
func (s *NezhaHandler) CreateStream(streamId string)
func (*NezhaHandler) GetStream ¶
func (s *NezhaHandler) GetStream(streamId string) (*ioStreamContext, error)
func (*NezhaHandler) IOStream ¶
func (s *NezhaHandler) IOStream(stream pb.NezhaService_IOStreamServer) error
func (*NezhaHandler) LookupGeoIP ¶
func (*NezhaHandler) ReportSystemInfo ¶
func (*NezhaHandler) ReportSystemState ¶
func (*NezhaHandler) ReportTask ¶
func (s *NezhaHandler) ReportTask(c context.Context, r *pb.TaskResult) (*pb.Receipt, error)
func (*NezhaHandler) RequestTask ¶
func (s *NezhaHandler) RequestTask(h *pb.Host, stream pb.NezhaService_RequestTaskServer) error
func (*NezhaHandler) StartStream ¶
func (s *NezhaHandler) StartStream(streamId string, timeout time.Duration) error
func (*NezhaHandler) UserConnected ¶
func (s *NezhaHandler) UserConnected(streamId string, userIo io.ReadWriteCloser) error
Click to show internal directories.
Click to hide internal directories.