Documentation ¶
Index ¶
- type Grpc
- func (s *Grpc) Commit(ctx context.Context, in *producer.CommitReq) (*producer.CommitRsp, error)
- func (s *Grpc) Fork(ctx context.Context, in *internal_handler.ForkReq) (*internal_handler.ForkRsp, error)
- func (s *Grpc) Prepare(ctx context.Context, in *producer.PrepareReq) (*producer.PrepareRsp, error)
- func (s *Grpc) Report(ctx context.Context, in *producer.ReportReq) (*producer.ReportRsp, error)
- func (s *Grpc) Rollback(ctx context.Context, in *producer.RollbackReq) (*producer.RollbackRsp, error)
- func (s *Grpc) Start() error
- func (s *Grpc) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Grpc ¶
type Grpc struct { // H is the name of the handler H *handler.Handler // Opts is the name of the producer configuration Opts *options.Options // contains filtered or unexported fields }
Grpc is a type of protocol
func (*Grpc) Fork ¶
func (s *Grpc) Fork(ctx context.Context, in *internal_handler.ForkReq) (*internal_handler.ForkRsp, error)
Fork is used to handle internal messages
func (*Grpc) Prepare ¶
func (s *Grpc) Prepare(ctx context.Context, in *producer.PrepareReq) (*producer.PrepareRsp, error)
Prepare is used to prepare a transaction message to the server
func (*Grpc) Rollback ¶
func (s *Grpc) Rollback(ctx context.Context, in *producer.RollbackReq) (*producer.RollbackRsp, error)
Rollback is used to roll back a transaction message to the server
Click to show internal directories.
Click to hide internal directories.