Documentation ¶
Index ¶
- type AuthHandler
- type NezhaHandler
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶
type AuthHandler struct {
ClientSecret string
}
func (*AuthHandler) GetRequestMetadata ¶
func (*AuthHandler) RequireTransportSecurity ¶
func (a *AuthHandler) RequireTransportSecurity() bool
type NezhaHandler ¶
type NezhaHandler struct {
Auth *AuthHandler
}
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
Click to show internal directories.
Click to hide internal directories.