rpc

package
v0.30.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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 (s *NezhaHandler) LookupGeoIP(c context.Context, r *pb.GeoIP) (*pb.GeoIP, error)

func (*NezhaHandler) ReportSystemInfo

func (s *NezhaHandler) ReportSystemInfo(c context.Context, r *pb.Host) (*pb.Receipt, error)

func (*NezhaHandler) ReportSystemState

func (s *NezhaHandler) ReportSystemState(c context.Context, r *pb.State) (*pb.Receipt, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL