grpc

package
v0.0.0-...-d5b0b98 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 12 Imported by: 0

Documentation

Index

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

func (s *Grpc) Commit(ctx context.Context, in *producer.CommitReq) (*producer.CommitRsp, error)

Commit is used to commit a transaction message to the server

func (*Grpc) Fork

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

func (s *Grpc) Report(ctx context.Context, in *producer.ReportReq) (*producer.ReportRsp, error)

Report is used to report events 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

func (*Grpc) Start

func (s *Grpc) Start() error

Start initialize some operations

func (*Grpc) Stop

func (s *Grpc) Stop() error

Stop stops the grpc server gracefully.

Jump to

Keyboard shortcuts

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