Documentation
¶
Index ¶
- type Operator
- type RpcClient
- func (c *RpcClient) DoOps(obj interface{}, ops pb.Ops, search *pb.Search) (instances []interface{}, count int32, err error)
- func (c *RpcClient) ExecDone(execution *pb.Execution) error
- func (c *RpcClient) GetJob(name, region string) (*pb.Job, error)
- func (c *RpcClient) ProxyJobRun(name, region string) (*pb.Execution, error)
- func (c *RpcClient) Shutdown() error
- type RpcServer
- func (s *RpcServer) DoOps(ctx context.Context, p *pb.Params) (*pb.Result, error)
- func (s *RpcServer) ExecDone(ctx context.Context, execution *pb.Execution) (*google_protobuf.Empty, error)
- func (s *RpcServer) GetJob(ctx context.Context, job *pb.Job) (*pb.Job, error)
- func (s *RpcServer) ProxyJobRun(ctx context.Context, in *pb.Job) (*pb.Execution, error)
- func (s *RpcServer) Run() error
- func (s *RpcServer) Shutdown(timeout time.Duration) error
- type TlsOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operator ¶
type Operator interface { // use to client get job GetJob(name, region string) (*pb.Job, error) // client send execution to server SendBackExecution(execution *pb.Execution) error // forwarding CRUD operation between servers PerformOps(obj interface{}, ops pb.Ops, search *pb.Search) ([]interface{}, int32, error) // forwarding run job action between servers RunJob(name, region string) (*pb.Execution, error) }
type RpcClient ¶
type RpcClient struct {
// contains filtered or unexported fields
}
func NewRpcClient ¶
func (*RpcClient) ProxyJobRun ¶
type RpcServer ¶
type RpcServer struct {
// contains filtered or unexported fields
}
func NewRPCServer ¶
func (*RpcServer) ExecDone ¶
func (s *RpcServer) ExecDone(ctx context.Context, execution *pb.Execution) (*google_protobuf.Empty, error)
receive the execution result
func (*RpcServer) ProxyJobRun ¶
forwarding run job action
Click to show internal directories.
Click to hide internal directories.