Versions in this module Expand all Collapse all v0 v0.0.1 Apr 21, 2023 Changes in this version + var Action_name = map[int32]string + var Action_value = map[string]int32 + var BranchState_name = map[int32]string + var BranchState_value = map[string]int32 + var EasyCar_ServiceDesc = grpc.ServiceDesc + var File_proto_easycar_proto protoreflect.FileDescriptor + var GlobalState_name = map[int32]string + var GlobalState_value = map[string]int32 + var TranType_name = map[int32]string + var TranType_value = map[string]int32 + func RegisterEasyCarHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterEasyCarHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EasyCarClient) error + func RegisterEasyCarHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterEasyCarHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EasyCarServer) error + func RegisterEasyCarServer(s grpc.ServiceRegistrar, srv EasyCarServer) + type Action int32 + const Action_CANCEL + const Action_COMPENSATION + const Action_CONFIRM + const Action_NORMAL + const Action_TRY + const Action_UN_KNOW_TRANSACTION_TYPE + func (Action) Descriptor() protoreflect.EnumDescriptor + func (Action) EnumDescriptor() ([]byte, []int) + func (Action) Type() protoreflect.EnumType + func (x Action) Enum() *Action + func (x Action) Number() protoreflect.EnumNumber + func (x Action) String() string + type BeginResp struct + GId string + func (*BeginResp) Descriptor() ([]byte, []int) + func (*BeginResp) ProtoMessage() + func (m *BeginResp) Validate() error + func (m *BeginResp) ValidateAll() error + func (x *BeginResp) GetGId() string + func (x *BeginResp) ProtoReflect() protoreflect.Message + func (x *BeginResp) Reset() + func (x *BeginResp) String() string + type BeginRespMultiError []error + func (m BeginRespMultiError) AllErrors() []error + func (m BeginRespMultiError) Error() string + type BeginRespValidationError struct + func (e BeginRespValidationError) Cause() error + func (e BeginRespValidationError) Error() string + func (e BeginRespValidationError) ErrorName() string + func (e BeginRespValidationError) Field() string + func (e BeginRespValidationError) Key() bool + func (e BeginRespValidationError) Reason() string + type BranchState int32 + const BranchState_B_INIT + const BranchState_FAILED + const BranchState_RETRYING + const BranchState_SUCCEED + const BranchState_UN_KNOW_STATE + func (BranchState) Descriptor() protoreflect.EnumDescriptor + func (BranchState) EnumDescriptor() ([]byte, []int) + func (BranchState) Type() protoreflect.EnumType + func (x BranchState) Enum() *BranchState + func (x BranchState) Number() protoreflect.EnumNumber + func (x BranchState) String() string + type CommitReq struct + GId string + func (*CommitReq) Descriptor() ([]byte, []int) + func (*CommitReq) ProtoMessage() + func (m *CommitReq) Validate() error + func (m *CommitReq) ValidateAll() error + func (x *CommitReq) GetGId() string + func (x *CommitReq) ProtoReflect() protoreflect.Message + func (x *CommitReq) Reset() + func (x *CommitReq) String() string + type CommitReqMultiError []error + func (m CommitReqMultiError) AllErrors() []error + func (m CommitReqMultiError) Error() string + type CommitReqValidationError struct + func (e CommitReqValidationError) Cause() error + func (e CommitReqValidationError) Error() string + func (e CommitReqValidationError) ErrorName() string + func (e CommitReqValidationError) Field() string + func (e CommitReqValidationError) Key() bool + func (e CommitReqValidationError) Reason() string + type EasyCarClient interface + Begin func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*BeginResp, error) + Commit func(ctx context.Context, in *CommitReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + GetState func(ctx context.Context, in *GetStateReq, opts ...grpc.CallOption) (*GetStateResp, error) + Register func(ctx context.Context, in *RegisterReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + Rollback func(ctx context.Context, in *RollBckReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + Start func(ctx context.Context, in *StartReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + func NewEasyCarClient(cc grpc.ClientConnInterface) EasyCarClient + type EasyCarServer interface + Begin func(context.Context, *emptypb.Empty) (*BeginResp, error) + Commit func(context.Context, *CommitReq) (*emptypb.Empty, error) + GetState func(context.Context, *GetStateReq) (*GetStateResp, error) + Register func(context.Context, *RegisterReq) (*emptypb.Empty, error) + Rollback func(context.Context, *RollBckReq) (*emptypb.Empty, error) + Start func(context.Context, *StartReq) (*emptypb.Empty, error) + type GetStateReq struct + GId string + func (*GetStateReq) Descriptor() ([]byte, []int) + func (*GetStateReq) ProtoMessage() + func (m *GetStateReq) Validate() error + func (m *GetStateReq) ValidateAll() error + func (x *GetStateReq) GetGId() string + func (x *GetStateReq) ProtoReflect() protoreflect.Message + func (x *GetStateReq) Reset() + func (x *GetStateReq) String() string + type GetStateReqMultiError []error + func (m GetStateReqMultiError) AllErrors() []error + func (m GetStateReqMultiError) Error() string + type GetStateReqValidationError struct + func (e GetStateReqValidationError) Cause() error + func (e GetStateReqValidationError) Error() string + func (e GetStateReqValidationError) ErrorName() string + func (e GetStateReqValidationError) Field() string + func (e GetStateReqValidationError) Key() bool + func (e GetStateReqValidationError) Reason() string + type GetStateResp struct + Branches []*GetStateRespBranch + EndTime int64 + GId string + State GlobalState + func (*GetStateResp) Descriptor() ([]byte, []int) + func (*GetStateResp) ProtoMessage() + func (m *GetStateResp) Validate() error + func (m *GetStateResp) ValidateAll() error + func (x *GetStateResp) GetBranches() []*GetStateRespBranch + func (x *GetStateResp) GetEndTime() int64 + func (x *GetStateResp) GetGId() string + func (x *GetStateResp) GetState() GlobalState + func (x *GetStateResp) ProtoReflect() protoreflect.Message + func (x *GetStateResp) Reset() + func (x *GetStateResp) String() string + type GetStateRespBranch struct + Action Action + BranchId string + LastErrMsg string + Level int64 + Protocol string + ReqData string + ReqHeader string + State BranchState + TranType TranType + Uri string + func (*GetStateRespBranch) Descriptor() ([]byte, []int) + func (*GetStateRespBranch) ProtoMessage() + func (m *GetStateRespBranch) Validate() error + func (m *GetStateRespBranch) ValidateAll() error + func (x *GetStateRespBranch) GetAction() Action + func (x *GetStateRespBranch) GetBranchId() string + func (x *GetStateRespBranch) GetLastErrMsg() string + func (x *GetStateRespBranch) GetLevel() int64 + func (x *GetStateRespBranch) GetProtocol() string + func (x *GetStateRespBranch) GetReqData() string + func (x *GetStateRespBranch) GetReqHeader() string + func (x *GetStateRespBranch) GetState() BranchState + func (x *GetStateRespBranch) GetTranType() TranType + func (x *GetStateRespBranch) GetUri() string + func (x *GetStateRespBranch) ProtoReflect() protoreflect.Message + func (x *GetStateRespBranch) Reset() + func (x *GetStateRespBranch) String() string + type GetStateRespBranchMultiError []error + func (m GetStateRespBranchMultiError) AllErrors() []error + func (m GetStateRespBranchMultiError) Error() string + type GetStateRespBranchValidationError struct + func (e GetStateRespBranchValidationError) Cause() error + func (e GetStateRespBranchValidationError) Error() string + func (e GetStateRespBranchValidationError) ErrorName() string + func (e GetStateRespBranchValidationError) Field() string + func (e GetStateRespBranchValidationError) Key() bool + func (e GetStateRespBranchValidationError) Reason() string + type GetStateRespMultiError []error + func (m GetStateRespMultiError) AllErrors() []error + func (m GetStateRespMultiError) Error() string + type GetStateRespValidationError struct + func (e GetStateRespValidationError) Cause() error + func (e GetStateRespValidationError) Error() string + func (e GetStateRespValidationError) ErrorName() string + func (e GetStateRespValidationError) Field() string + func (e GetStateRespValidationError) Key() bool + func (e GetStateRespValidationError) Reason() string + type GlobalState int32 + const GlobalState_COMMITTED + const GlobalState_GLOBAL_DEFAULT + const GlobalState_INIT + const GlobalState_PHASE1_FAILED + const GlobalState_PHASE1_PROCESSING + const GlobalState_PHASE1_RETRYING + const GlobalState_PHASE1_SUCCESS + const GlobalState_PHASE2_COMMITTING + const GlobalState_PHASE2_COMMIT_FAILED + const GlobalState_PHASE2_ROLLBACKING + const GlobalState_PHASE2_ROLLBACK_FAILED + const GlobalState_ROLLBACKED + func (GlobalState) Descriptor() protoreflect.EnumDescriptor + func (GlobalState) EnumDescriptor() ([]byte, []int) + func (GlobalState) Type() protoreflect.EnumType + func (x GlobalState) Enum() *GlobalState + func (x GlobalState) Number() protoreflect.EnumNumber + func (x GlobalState) String() string + type RegisterReq struct + Branches []*RegisterReq_Branch + GId string + func (*RegisterReq) Descriptor() ([]byte, []int) + func (*RegisterReq) ProtoMessage() + func (m *RegisterReq) Validate() error + func (m *RegisterReq) ValidateAll() error + func (x *RegisterReq) GetBranches() []*RegisterReq_Branch + func (x *RegisterReq) GetGId() string + func (x *RegisterReq) ProtoReflect() protoreflect.Message + func (x *RegisterReq) Reset() + func (x *RegisterReq) String() string + type RegisterReqMultiError []error + func (m RegisterReqMultiError) AllErrors() []error + func (m RegisterReqMultiError) Error() string + type RegisterReqValidationError struct + func (e RegisterReqValidationError) Cause() error + func (e RegisterReqValidationError) Error() string + func (e RegisterReqValidationError) ErrorName() string + func (e RegisterReqValidationError) Field() string + func (e RegisterReqValidationError) Key() bool + func (e RegisterReqValidationError) Reason() string + type RegisterReq_Branch struct + Action Action + Level int32 + Protocol string + ReqData string + ReqHeader string + Timeout int32 + TranType TranType + Uri string + func (*RegisterReq_Branch) Descriptor() ([]byte, []int) + func (*RegisterReq_Branch) ProtoMessage() + func (m *RegisterReq_Branch) Validate() error + func (m *RegisterReq_Branch) ValidateAll() error + func (x *RegisterReq_Branch) GetAction() Action + func (x *RegisterReq_Branch) GetLevel() int32 + func (x *RegisterReq_Branch) GetProtocol() string + func (x *RegisterReq_Branch) GetReqData() string + func (x *RegisterReq_Branch) GetReqHeader() string + func (x *RegisterReq_Branch) GetTimeout() int32 + func (x *RegisterReq_Branch) GetTranType() TranType + func (x *RegisterReq_Branch) GetUri() string + func (x *RegisterReq_Branch) ProtoReflect() protoreflect.Message + func (x *RegisterReq_Branch) Reset() + func (x *RegisterReq_Branch) String() string + type RegisterReq_BranchMultiError []error + func (m RegisterReq_BranchMultiError) AllErrors() []error + func (m RegisterReq_BranchMultiError) Error() string + type RegisterReq_BranchValidationError struct + func (e RegisterReq_BranchValidationError) Cause() error + func (e RegisterReq_BranchValidationError) Error() string + func (e RegisterReq_BranchValidationError) ErrorName() string + func (e RegisterReq_BranchValidationError) Field() string + func (e RegisterReq_BranchValidationError) Key() bool + func (e RegisterReq_BranchValidationError) Reason() string + type RegisterResp struct + func (*RegisterResp) Descriptor() ([]byte, []int) + func (*RegisterResp) ProtoMessage() + func (m *RegisterResp) Validate() error + func (m *RegisterResp) ValidateAll() error + func (x *RegisterResp) ProtoReflect() protoreflect.Message + func (x *RegisterResp) Reset() + func (x *RegisterResp) String() string + type RegisterRespMultiError []error + func (m RegisterRespMultiError) AllErrors() []error + func (m RegisterRespMultiError) Error() string + type RegisterRespValidationError struct + func (e RegisterRespValidationError) Cause() error + func (e RegisterRespValidationError) Error() string + func (e RegisterRespValidationError) ErrorName() string + func (e RegisterRespValidationError) Field() string + func (e RegisterRespValidationError) Key() bool + func (e RegisterRespValidationError) Reason() string + type RollBckReq struct + GId string + func (*RollBckReq) Descriptor() ([]byte, []int) + func (*RollBckReq) ProtoMessage() + func (m *RollBckReq) Validate() error + func (m *RollBckReq) ValidateAll() error + func (x *RollBckReq) GetGId() string + func (x *RollBckReq) ProtoReflect() protoreflect.Message + func (x *RollBckReq) Reset() + func (x *RollBckReq) String() string + type RollBckReqMultiError []error + func (m RollBckReqMultiError) AllErrors() []error + func (m RollBckReqMultiError) Error() string + type RollBckReqValidationError struct + func (e RollBckReqValidationError) Cause() error + func (e RollBckReqValidationError) Error() string + func (e RollBckReqValidationError) ErrorName() string + func (e RollBckReqValidationError) Field() string + func (e RollBckReqValidationError) Key() bool + func (e RollBckReqValidationError) Reason() string + type StartReq struct + GId string + func (*StartReq) Descriptor() ([]byte, []int) + func (*StartReq) ProtoMessage() + func (m *StartReq) Validate() error + func (m *StartReq) ValidateAll() error + func (x *StartReq) GetGId() string + func (x *StartReq) ProtoReflect() protoreflect.Message + func (x *StartReq) Reset() + func (x *StartReq) String() string + type StartReqMultiError []error + func (m StartReqMultiError) AllErrors() []error + func (m StartReqMultiError) Error() string + type StartReqValidationError struct + func (e StartReqValidationError) Cause() error + func (e StartReqValidationError) Error() string + func (e StartReqValidationError) ErrorName() string + func (e StartReqValidationError) Field() string + func (e StartReqValidationError) Key() bool + func (e StartReqValidationError) Reason() string + type TranType int32 + const TranType_SAGE + const TranType_TCC + const TranType_UN_KNOW + func (TranType) Descriptor() protoreflect.EnumDescriptor + func (TranType) EnumDescriptor() ([]byte, []int) + func (TranType) Type() protoreflect.EnumType + func (x TranType) Enum() *TranType + func (x TranType) Number() protoreflect.EnumNumber + func (x TranType) String() string + type UnimplementedEasyCarServer struct + func (UnimplementedEasyCarServer) Begin(context.Context, *emptypb.Empty) (*BeginResp, error) + func (UnimplementedEasyCarServer) Commit(context.Context, *CommitReq) (*emptypb.Empty, error) + func (UnimplementedEasyCarServer) GetState(context.Context, *GetStateReq) (*GetStateResp, error) + func (UnimplementedEasyCarServer) Register(context.Context, *RegisterReq) (*emptypb.Empty, error) + func (UnimplementedEasyCarServer) Rollback(context.Context, *RollBckReq) (*emptypb.Empty, error) + func (UnimplementedEasyCarServer) Start(context.Context, *StartReq) (*emptypb.Empty, error) + type UnsafeEasyCarServer interface