rpc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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) Check

func (a *AuthHandler) Check(ctx context.Context) (uint64, error)

func (*AuthHandler) GetRequestMetadata

func (a *AuthHandler) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

func (*AuthHandler) RequireTransportSecurity

func (a *AuthHandler) RequireTransportSecurity() bool

type NezhaHandler

type NezhaHandler struct {
	Auth *AuthHandler
}

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

Jump to

Keyboard shortcuts

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