Documentation ¶
Index ¶
- type Op
- type Value
- type Worker
- type WorkerArpcServer
- type WorkerServiceServer
- func (s *WorkerServiceServer) CallOp(ctx context.Context, req *pb.CallOpRequest) (*pb.CallOpResponse, error)
- func (s *WorkerServiceServer) GetValue(ctx context.Context, req *pb.Empty) (*pb.GetValueResponse, error)
- func (s *WorkerServiceServer) Start(ctx context.Context, req *pb.Empty) (*pb.Empty, error)
- func (s *WorkerServiceServer) Subscribe(req *pb.Empty, stream pb.WorkerService_SubscribeServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkerArpcServer ¶
func NewWorkerArpcServer ¶
func (*WorkerArpcServer) CallOpEnter ¶
func (w *WorkerArpcServer) CallOpEnter(e *am.Event) bool
func (*WorkerArpcServer) CallOpState ¶
func (w *WorkerArpcServer) CallOpState(e *am.Event)
func (*WorkerArpcServer) EventState ¶
func (w *WorkerArpcServer) EventState(_ *am.Event)
func (*WorkerArpcServer) StartState ¶
func (w *WorkerArpcServer) StartState(_ *am.Event)
type WorkerServiceServer ¶
type WorkerServiceServer struct { pb.UnimplementedWorkerServiceServer // contains filtered or unexported fields }
func NewWorkerServiceServer ¶
func NewWorkerServiceServer(worker *Worker) *WorkerServiceServer
func (*WorkerServiceServer) CallOp ¶
func (s *WorkerServiceServer) CallOp(ctx context.Context, req *pb.CallOpRequest) (*pb.CallOpResponse, error)
func (*WorkerServiceServer) GetValue ¶
func (s *WorkerServiceServer) GetValue(ctx context.Context, req *pb.Empty) (*pb.GetValueResponse, error)
func (*WorkerServiceServer) Subscribe ¶
func (s *WorkerServiceServer) Subscribe(req *pb.Empty, stream pb.WorkerService_SubscribeServer) error
Click to show internal directories.
Click to hide internal directories.