Documentation ¶
Index ¶
- func ServeGrpc(host, port string, handler operator.AppEventHandler)
- type PairHandler
- func (ph *PairHandler) Finish(ctx context.Context, request *pb.FinishRequest) (*pb.Status, error)
- func (ph *PairHandler) Pair(ctx context.Context, request *pb.PairRequest) (*pb.Status, error)
- func (ph *PairHandler) Ping(_ context.Context, _ *empty.Empty) (*pb.Status, error)
- func (ph *PairHandler) Register(ctx context.Context, request *pb.RegisterRequest) (*pb.Status, error)
- func (ph *PairHandler) ShutDown(ctx context.Context, request *pb.ShutDownRequest) (*pb.Status, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeGrpc ¶
func ServeGrpc(host, port string, handler operator.AppEventHandler)
Types ¶
type PairHandler ¶
type PairHandler struct {
// contains filtered or unexported fields
}
func (*PairHandler) Finish ¶
func (ph *PairHandler) Finish(ctx context.Context, request *pb.FinishRequest) (*pb.Status, error)
func (*PairHandler) Pair ¶
func (ph *PairHandler) Pair(ctx context.Context, request *pb.PairRequest) (*pb.Status, error)
func (*PairHandler) Register ¶
func (ph *PairHandler) Register(ctx context.Context, request *pb.RegisterRequest) (*pb.Status, error)
func (*PairHandler) ShutDown ¶
func (ph *PairHandler) ShutDown(ctx context.Context, request *pb.ShutDownRequest) (*pb.Status, error)
Click to show internal directories.
Click to hide internal directories.