apecs

package
v0.0.0-...-160e8be Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_SYNC_TIMEOUT time.Duration = time.Minute * 5

Variables

This section is empty.

Functions

func CodeTranslate

func CodeTranslate(code rkcypb.Code) grpc_codes.Code

func ExecuteTxnAsync

func ExecuteTxnAsync(
	ctx context.Context,
	plat *platform.Platform,
	txn *rkcy.Txn,
) error

func ExecuteTxnSync

func ExecuteTxnSync(
	ctx context.Context,
	plat *platform.Platform,
	txn *rkcy.Txn,
	timeout time.Duration,
) (*rkcy.ResultProto, error)

func ProduceComplete

func ProduceComplete(
	ctx context.Context,
	plat *platform.Platform,
	rtxn *rkcy.RtApecsTxn,
) error

func ProduceCurrentStep

func ProduceCurrentStep(
	ctx context.Context,
	wg *sync.WaitGroup,
	aprod *stream.ApecsProducer,
	txn *rkcypb.ApecsTxn,
	traceParent string,
) error

func ProduceError

func ProduceError(
	ctx context.Context,
	plat *platform.Platform,
	rtxn *rkcy.RtApecsTxn,
	step *rkcypb.ApecsTxn_Step,
	code rkcypb.Code,
	logToResult bool,
	msg string,
) error

func ProduceResponse

func ProduceResponse(
	ctx context.Context,
	plat *platform.Platform,
	respBrokers string,
	rtxn *rkcy.RtApecsTxn,
) error

func SetStepResult

func SetStepResult(rslt *rkcypb.ApecsTxn_Step_Result, err error)

func StartApecsConsumer

func StartApecsConsumer(
	ctx context.Context,
	plat *platform.Platform,
	storageTarget string,
	consumerBrokers string,
	fullTopic string,
	partition int32,
	bailoutCh chan<- bool,
)

func StartApecsRunner

func StartApecsRunner(
	ctx context.Context,
	plat *platform.Platform,
	storageTarget string,
	consumerBrokers string,
	tp *rkcy.TopicParts,
	partition int32,
	bailoutCh chan<- bool,
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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