saga

package
v0.0.0-...-daf8b82 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SagaRmBankServiceBasePath = "/paywage/saga"
)

Functions

func StartRm

func StartRm(listen string, db *gorm.DB, protocol string) error

Types

type BankAccount

type BankAccount struct {
	Id      int
	Balance int
	Freeze  int `gorm:"balance_freeze"`
}

func (*BankAccount) TableName

func (*BankAccount) TableName() string

type BankAccountRecord

type BankAccountRecord struct {
	UserID  int
	Account int
	Fail    bool
}

func (*BankAccountRecord) ToPb

func (ba *BankAccountRecord) ToPb() *pb.SagaRequest

type SagaRmBankGrpcService

type SagaRmBankGrpcService struct {
	pb.UnsafeSagaBankServiceServer
	// contains filtered or unexported fields
}

func NewSagaRmBankGrpcService

func NewSagaRmBankGrpcService(listen string, db *gorm.DB) *SagaRmBankGrpcService

func (*SagaRmBankGrpcService) In

func (*SagaRmBankGrpcService) Out

func (*SagaRmBankGrpcService) Start

func (rm *SagaRmBankGrpcService) Start() error

type SagaRmBankService

type SagaRmBankService struct {
	// contains filtered or unexported fields
}

func NewSagaRmBankService

func NewSagaRmBankService(listen string, db *gorm.DB) *SagaRmBankService

func (*SagaRmBankService) Start

func (rm *SagaRmBankService) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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