cross_chain

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 6 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthRequest        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRequest          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRequest = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthResponse        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowResponse          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupResponse = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type ChainIdentityRequest

type ChainIdentityRequest struct {
	// 请求消息版本
	Version common.Version `protobuf:"varint,1,opt,name=version,proto3,enum=common.Version" json:"version,omitempty"`
	// 操作
	Operate common.Operate `protobuf:"varint,2,opt,name=operate,proto3,enum=common.Operate" json:"operate,omitempty"`
	// chainmaker配置,chainmaker网关专属
	ChainmakerConfig *common.ChainmakerConfig `protobuf:"bytes,4,opt,name=chainmaker_config,json=chainmakerConfig,proto3" json:"chainmaker_config,omitempty"`
	// fabric配置,fabric网关专属
	FabricConfig *common.FabricConfig `protobuf:"bytes,5,opt,name=fabric_config,json=fabricConfig,proto3" json:"fabric_config,omitempty"`
	// bcos配置,bcos网关专属
	BcosConfig *common.BcosConfig `protobuf:"bytes,6,opt,name=bcos_config,json=bcosConfig,proto3" json:"bcos_config,omitempty"`
}

链配置管理

func (*ChainIdentityRequest) Descriptor

func (*ChainIdentityRequest) Descriptor() ([]byte, []int)

func (*ChainIdentityRequest) GetBcosConfig

func (m *ChainIdentityRequest) GetBcosConfig() *common.BcosConfig

func (*ChainIdentityRequest) GetChainmakerConfig

func (m *ChainIdentityRequest) GetChainmakerConfig() *common.ChainmakerConfig

func (*ChainIdentityRequest) GetFabricConfig

func (m *ChainIdentityRequest) GetFabricConfig() *common.FabricConfig

func (*ChainIdentityRequest) GetOperate

func (m *ChainIdentityRequest) GetOperate() common.Operate

func (*ChainIdentityRequest) GetVersion

func (m *ChainIdentityRequest) GetVersion() common.Version

func (*ChainIdentityRequest) Marshal

func (m *ChainIdentityRequest) Marshal() (dAtA []byte, err error)

func (*ChainIdentityRequest) MarshalTo

func (m *ChainIdentityRequest) MarshalTo(dAtA []byte) (int, error)

func (*ChainIdentityRequest) MarshalToSizedBuffer

func (m *ChainIdentityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChainIdentityRequest) ProtoMessage

func (*ChainIdentityRequest) ProtoMessage()

func (*ChainIdentityRequest) Reset

func (m *ChainIdentityRequest) Reset()

func (*ChainIdentityRequest) Size

func (m *ChainIdentityRequest) Size() (n int)

func (*ChainIdentityRequest) String

func (m *ChainIdentityRequest) String() string

func (*ChainIdentityRequest) Unmarshal

func (m *ChainIdentityRequest) Unmarshal(dAtA []byte) error

func (*ChainIdentityRequest) XXX_DiscardUnknown

func (m *ChainIdentityRequest) XXX_DiscardUnknown()

func (*ChainIdentityRequest) XXX_Marshal

func (m *ChainIdentityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainIdentityRequest) XXX_Merge

func (m *ChainIdentityRequest) XXX_Merge(src proto.Message)

func (*ChainIdentityRequest) XXX_Size

func (m *ChainIdentityRequest) XXX_Size() int

func (*ChainIdentityRequest) XXX_Unmarshal

func (m *ChainIdentityRequest) XXX_Unmarshal(b []byte) error

type ChainIdentityResponse

type ChainIdentityResponse struct {
	// 执行结果code
	Code common.Code `protobuf:"varint,1,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"`
	// 返回消息内容
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// chainmaker 配置列表
	ChainmakerConfig []*common.ChainmakerConfig `protobuf:"bytes,4,rep,name=chainmaker_config,json=chainmakerConfig,proto3" json:"chainmaker_config,omitempty"`
	// fabric 配置列表
	FabricConfig []*common.FabricConfig `protobuf:"bytes,5,rep,name=fabric_config,json=fabricConfig,proto3" json:"fabric_config,omitempty"`
	// bcos 配置列表
	BcosConfig []*common.BcosConfig `protobuf:"bytes,6,rep,name=bcos_config,json=bcosConfig,proto3" json:"bcos_config,omitempty"`
}

func (*ChainIdentityResponse) Descriptor

func (*ChainIdentityResponse) Descriptor() ([]byte, []int)

func (*ChainIdentityResponse) GetBcosConfig

func (m *ChainIdentityResponse) GetBcosConfig() []*common.BcosConfig

func (*ChainIdentityResponse) GetChainmakerConfig

func (m *ChainIdentityResponse) GetChainmakerConfig() []*common.ChainmakerConfig

func (*ChainIdentityResponse) GetCode

func (m *ChainIdentityResponse) GetCode() common.Code

func (*ChainIdentityResponse) GetFabricConfig

func (m *ChainIdentityResponse) GetFabricConfig() []*common.FabricConfig

func (*ChainIdentityResponse) GetMessage

func (m *ChainIdentityResponse) GetMessage() string

func (*ChainIdentityResponse) Marshal

func (m *ChainIdentityResponse) Marshal() (dAtA []byte, err error)

func (*ChainIdentityResponse) MarshalTo

func (m *ChainIdentityResponse) MarshalTo(dAtA []byte) (int, error)

func (*ChainIdentityResponse) MarshalToSizedBuffer

func (m *ChainIdentityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChainIdentityResponse) ProtoMessage

func (*ChainIdentityResponse) ProtoMessage()

func (*ChainIdentityResponse) Reset

func (m *ChainIdentityResponse) Reset()

func (*ChainIdentityResponse) Size

func (m *ChainIdentityResponse) Size() (n int)

func (*ChainIdentityResponse) String

func (m *ChainIdentityResponse) String() string

func (*ChainIdentityResponse) Unmarshal

func (m *ChainIdentityResponse) Unmarshal(dAtA []byte) error

func (*ChainIdentityResponse) XXX_DiscardUnknown

func (m *ChainIdentityResponse) XXX_DiscardUnknown()

func (*ChainIdentityResponse) XXX_Marshal

func (m *ChainIdentityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainIdentityResponse) XXX_Merge

func (m *ChainIdentityResponse) XXX_Merge(src proto.Message)

func (*ChainIdentityResponse) XXX_Size

func (m *ChainIdentityResponse) XXX_Size() int

func (*ChainIdentityResponse) XXX_Unmarshal

func (m *ChainIdentityResponse) XXX_Unmarshal(b []byte) error

type CrossChainCancelRequest

type CrossChainCancelRequest struct {
	// 请求消息版本
	Version common.Version `protobuf:"varint,1,opt,name=version,proto3,enum=common.Version" json:"version,omitempty"`
	// 跨链Id
	CrossChainId string `protobuf:"bytes,2,opt,name=cross_chain_id,json=crossChainId,proto3" json:"cross_chain_id,omitempty"`
	// 跨链名称
	CrossChainName string `protobuf:"bytes,3,opt,name=cross_chain_name,json=crossChainName,proto3" json:"cross_chain_name,omitempty"`
	// 跨链标记
	CrossChainFlag string `protobuf:"bytes,4,opt,name=cross_chain_flag,json=crossChainFlag,proto3" json:"cross_chain_flag,omitempty"`
	// cancel数据
	CancelInfo *common.CancelInfo `protobuf:"bytes,5,opt,name=cancel_info,json=cancelInfo,proto3" json:"cancel_info,omitempty"`
}

跨链结果确认

func (*CrossChainCancelRequest) Descriptor

func (*CrossChainCancelRequest) Descriptor() ([]byte, []int)

func (*CrossChainCancelRequest) GetCancelInfo

func (m *CrossChainCancelRequest) GetCancelInfo() *common.CancelInfo

func (*CrossChainCancelRequest) GetCrossChainFlag

func (m *CrossChainCancelRequest) GetCrossChainFlag() string

func (*CrossChainCancelRequest) GetCrossChainId

func (m *CrossChainCancelRequest) GetCrossChainId() string

func (*CrossChainCancelRequest) GetCrossChainName

func (m *CrossChainCancelRequest) GetCrossChainName() string

func (*CrossChainCancelRequest) GetVersion

func (m *CrossChainCancelRequest) GetVersion() common.Version

func (*CrossChainCancelRequest) Marshal

func (m *CrossChainCancelRequest) Marshal() (dAtA []byte, err error)

func (*CrossChainCancelRequest) MarshalTo

func (m *CrossChainCancelRequest) MarshalTo(dAtA []byte) (int, error)

func (*CrossChainCancelRequest) MarshalToSizedBuffer

func (m *CrossChainCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CrossChainCancelRequest) ProtoMessage

func (*CrossChainCancelRequest) ProtoMessage()

func (*CrossChainCancelRequest) Reset

func (m *CrossChainCancelRequest) Reset()

func (*CrossChainCancelRequest) Size

func (m *CrossChainCancelRequest) Size() (n int)

func (*CrossChainCancelRequest) String

func (m *CrossChainCancelRequest) String() string

func (*CrossChainCancelRequest) Unmarshal

func (m *CrossChainCancelRequest) Unmarshal(dAtA []byte) error

func (*CrossChainCancelRequest) XXX_DiscardUnknown

func (m *CrossChainCancelRequest) XXX_DiscardUnknown()

func (*CrossChainCancelRequest) XXX_Marshal

func (m *CrossChainCancelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CrossChainCancelRequest) XXX_Merge

func (m *CrossChainCancelRequest) XXX_Merge(src proto.Message)

func (*CrossChainCancelRequest) XXX_Size

func (m *CrossChainCancelRequest) XXX_Size() int

func (*CrossChainCancelRequest) XXX_Unmarshal

func (m *CrossChainCancelRequest) XXX_Unmarshal(b []byte) error

type CrossChainCancelResponse

type CrossChainCancelResponse struct {
	// 交易详情,可选,不验证
	TxContent *common.TxContent `protobuf:"bytes,1,opt,name=tx_content,json=txContent,proto3" json:"tx_content,omitempty"`
	// 执行结果code
	Code common.Code `protobuf:"varint,2,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"`
	// 返回消息内容
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
}

跨链结果确认

func (*CrossChainCancelResponse) Descriptor

func (*CrossChainCancelResponse) Descriptor() ([]byte, []int)

func (*CrossChainCancelResponse) GetCode

func (m *CrossChainCancelResponse) GetCode() common.Code

func (*CrossChainCancelResponse) GetMessage

func (m *CrossChainCancelResponse) GetMessage() string

func (*CrossChainCancelResponse) GetTxContent

func (m *CrossChainCancelResponse) GetTxContent() *common.TxContent

func (*CrossChainCancelResponse) Marshal

func (m *CrossChainCancelResponse) Marshal() (dAtA []byte, err error)

func (*CrossChainCancelResponse) MarshalTo

func (m *CrossChainCancelResponse) MarshalTo(dAtA []byte) (int, error)

func (*CrossChainCancelResponse) MarshalToSizedBuffer

func (m *CrossChainCancelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CrossChainCancelResponse) ProtoMessage

func (*CrossChainCancelResponse) ProtoMessage()

func (*CrossChainCancelResponse) Reset

func (m *CrossChainCancelResponse) Reset()

func (*CrossChainCancelResponse) Size

func (m *CrossChainCancelResponse) Size() (n int)

func (*CrossChainCancelResponse) String

func (m *CrossChainCancelResponse) String() string

func (*CrossChainCancelResponse) Unmarshal

func (m *CrossChainCancelResponse) Unmarshal(dAtA []byte) error

func (*CrossChainCancelResponse) XXX_DiscardUnknown

func (m *CrossChainCancelResponse) XXX_DiscardUnknown()

func (*CrossChainCancelResponse) XXX_Marshal

func (m *CrossChainCancelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CrossChainCancelResponse) XXX_Merge

func (m *CrossChainCancelResponse) XXX_Merge(src proto.Message)

func (*CrossChainCancelResponse) XXX_Size

func (m *CrossChainCancelResponse) XXX_Size() int

func (*CrossChainCancelResponse) XXX_Unmarshal

func (m *CrossChainCancelResponse) XXX_Unmarshal(b []byte) error

type CrossChainConfirmRequest

type CrossChainConfirmRequest struct {
	// 请求消息版本
	Version common.Version `protobuf:"varint,1,opt,name=version,proto3,enum=common.Version" json:"version,omitempty"`
	// 跨链Id
	CrossChainId string `protobuf:"bytes,2,opt,name=cross_chain_id,json=crossChainId,proto3" json:"cross_chain_id,omitempty"`
	// 跨链名称
	CrossChainName string `protobuf:"bytes,3,opt,name=cross_chain_name,json=crossChainName,proto3" json:"cross_chain_name,omitempty"`
	// 跨链标记
	CrossChainFlag string `protobuf:"bytes,4,opt,name=cross_chain_flag,json=crossChainFlag,proto3" json:"cross_chain_flag,omitempty"`
	// confirm数据
	ConfirmInfo *common.ConfirmInfo `protobuf:"bytes,5,opt,name=confirm_info,json=confirmInfo,proto3" json:"confirm_info,omitempty"`
	// try_result
	TryResult []string `protobuf:"bytes,6,rep,name=try_result,json=tryResult,proto3" json:"try_result,omitempty"`
	// 跨链类型
	CrossType common.CrossType `protobuf:"varint,7,opt,name=cross_type,json=crossType,proto3,enum=common.CrossType" json:"cross_type,omitempty"`
}

跨链结果确认

func (*CrossChainConfirmRequest) Descriptor

func (*CrossChainConfirmRequest) Descriptor() ([]byte, []int)

func (*CrossChainConfirmRequest) GetConfirmInfo

func (m *CrossChainConfirmRequest) GetConfirmInfo() *common.ConfirmInfo

func (*CrossChainConfirmRequest) GetCrossChainFlag

func (m *CrossChainConfirmRequest) GetCrossChainFlag() string

func (*CrossChainConfirmRequest) GetCrossChainId

func (m *CrossChainConfirmRequest) GetCrossChainId() string

func (*CrossChainConfirmRequest) GetCrossChainName

func (m *CrossChainConfirmRequest) GetCrossChainName() string

func (*CrossChainConfirmRequest) GetCrossType

func (m *CrossChainConfirmRequest) GetCrossType() common.CrossType

func (*CrossChainConfirmRequest) GetTryResult

func (m *CrossChainConfirmRequest) GetTryResult() []string

func (*CrossChainConfirmRequest) GetVersion

func (m *CrossChainConfirmRequest) GetVersion() common.Version

func (*CrossChainConfirmRequest) Marshal

func (m *CrossChainConfirmRequest) Marshal() (dAtA []byte, err error)

func (*CrossChainConfirmRequest) MarshalTo

func (m *CrossChainConfirmRequest) MarshalTo(dAtA []byte) (int, error)

func (*CrossChainConfirmRequest) MarshalToSizedBuffer

func (m *CrossChainConfirmRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CrossChainConfirmRequest) ProtoMessage

func (*CrossChainConfirmRequest) ProtoMessage()

func (*CrossChainConfirmRequest) Reset

func (m *CrossChainConfirmRequest) Reset()

func (*CrossChainConfirmRequest) Size

func (m *CrossChainConfirmRequest) Size() (n int)

func (*CrossChainConfirmRequest) String

func (m *CrossChainConfirmRequest) String() string

func (*CrossChainConfirmRequest) Unmarshal

func (m *CrossChainConfirmRequest) Unmarshal(dAtA []byte) error

func (*CrossChainConfirmRequest) XXX_DiscardUnknown

func (m *CrossChainConfirmRequest) XXX_DiscardUnknown()

func (*CrossChainConfirmRequest) XXX_Marshal

func (m *CrossChainConfirmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CrossChainConfirmRequest) XXX_Merge

func (m *CrossChainConfirmRequest) XXX_Merge(src proto.Message)

func (*CrossChainConfirmRequest) XXX_Size

func (m *CrossChainConfirmRequest) XXX_Size() int

func (*CrossChainConfirmRequest) XXX_Unmarshal

func (m *CrossChainConfirmRequest) XXX_Unmarshal(b []byte) error

type CrossChainConfirmResponse

type CrossChainConfirmResponse struct {
	// 交易详情,可选,不验证
	TxContent *common.TxContent `protobuf:"bytes,1,opt,name=tx_content,json=txContent,proto3" json:"tx_content,omitempty"`
	// 执行结果code
	Code common.Code `protobuf:"varint,2,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"`
	// 返回消息内容
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
}

跨链结果确认

func (*CrossChainConfirmResponse) Descriptor

func (*CrossChainConfirmResponse) Descriptor() ([]byte, []int)

func (*CrossChainConfirmResponse) GetCode

func (m *CrossChainConfirmResponse) GetCode() common.Code

func (*CrossChainConfirmResponse) GetMessage

func (m *CrossChainConfirmResponse) GetMessage() string

func (*CrossChainConfirmResponse) GetTxContent

func (m *CrossChainConfirmResponse) GetTxContent() *common.TxContent

func (*CrossChainConfirmResponse) Marshal

func (m *CrossChainConfirmResponse) Marshal() (dAtA []byte, err error)

func (*CrossChainConfirmResponse) MarshalTo

func (m *CrossChainConfirmResponse) MarshalTo(dAtA []byte) (int, error)

func (*CrossChainConfirmResponse) MarshalToSizedBuffer

func (m *CrossChainConfirmResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CrossChainConfirmResponse) ProtoMessage

func (*CrossChainConfirmResponse) ProtoMessage()

func (*CrossChainConfirmResponse) Reset

func (m *CrossChainConfirmResponse) Reset()

func (*CrossChainConfirmResponse) Size

func (m *CrossChainConfirmResponse) Size() (n int)

func (*CrossChainConfirmResponse) String

func (m *CrossChainConfirmResponse) String() string

func (*CrossChainConfirmResponse) Unmarshal

func (m *CrossChainConfirmResponse) Unmarshal(dAtA []byte) error

func (*CrossChainConfirmResponse) XXX_DiscardUnknown

func (m *CrossChainConfirmResponse) XXX_DiscardUnknown()

func (*CrossChainConfirmResponse) XXX_Marshal

func (m *CrossChainConfirmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CrossChainConfirmResponse) XXX_Merge

func (m *CrossChainConfirmResponse) XXX_Merge(src proto.Message)

func (*CrossChainConfirmResponse) XXX_Size

func (m *CrossChainConfirmResponse) XXX_Size() int

func (*CrossChainConfirmResponse) XXX_Unmarshal

func (m *CrossChainConfirmResponse) XXX_Unmarshal(b []byte) error

type CrossChainEventRequest

type CrossChainEventRequest struct {
	// 请求消息版本
	Version common.Version `protobuf:"varint,1,opt,name=version,proto3,enum=common.Version" json:"version,omitempty"`
	// 操作
	Operate common.Operate `protobuf:"varint,2,opt,name=operate,proto3,enum=common.Operate" json:"operate,omitempty"`
	// 具体内容
	CrossChainEvent *common.CrossChainEvent `protobuf:"bytes,3,opt,name=cross_chain_event,json=crossChainEvent,proto3" json:"cross_chain_event,omitempty"`
}

跨链事件管理请求

func (*CrossChainEventRequest) Descriptor

func (*CrossChainEventRequest) Descriptor() ([]byte, []int)

func (*CrossChainEventRequest) GetCrossChainEvent

func (m *CrossChainEventRequest) GetCrossChainEvent() *common.CrossChainEvent

func (*CrossChainEventRequest) GetOperate

func (m *CrossChainEventRequest) GetOperate() common.Operate

func (*CrossChainEventRequest) GetVersion

func (m *CrossChainEventRequest) GetVersion() common.Version

func (*CrossChainEventRequest) Marshal

func (m *CrossChainEventRequest) Marshal() (dAtA []byte, err error)

func (*CrossChainEventRequest) MarshalTo

func (m *CrossChainEventRequest) MarshalTo(dAtA []byte) (int, error)

func (*CrossChainEventRequest) MarshalToSizedBuffer

func (m *CrossChainEventRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CrossChainEventRequest) ProtoMessage

func (*CrossChainEventRequest) ProtoMessage()

func (*CrossChainEventRequest) Reset

func (m *CrossChainEventRequest) Reset()

func (*CrossChainEventRequest) Size

func (m *CrossChainEventRequest) Size() (n int)

func (*CrossChainEventRequest) String

func (m *CrossChainEventRequest) String() string

func (*CrossChainEventRequest) Unmarshal

func (m *CrossChainEventRequest) Unmarshal(dAtA []byte) error

func (*CrossChainEventRequest) XXX_DiscardUnknown

func (m *CrossChainEventRequest) XXX_DiscardUnknown()

func (*CrossChainEventRequest) XXX_Marshal

func (m *CrossChainEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CrossChainEventRequest) XXX_Merge

func (m *CrossChainEventRequest) XXX_Merge(src proto.Message)

func (*CrossChainEventRequest) XXX_Size

func (m *CrossChainEventRequest) XXX_Size() int

func (*CrossChainEventRequest) XXX_Unmarshal

func (m *CrossChainEventRequest) XXX_Unmarshal(b []byte) error

type CrossChainEventResponse

type CrossChainEventResponse struct {
	// 执行结果code
	Code common.Code `protobuf:"varint,1,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"`
	// 返回消息内容
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// 事件列表
	CrossChainEventList []*common.CrossChainEvent `protobuf:"bytes,3,rep,name=cross_chain_event_list,json=crossChainEventList,proto3" json:"cross_chain_event_list,omitempty"`
}

跨链事件管理返回

func (*CrossChainEventResponse) Descriptor

func (*CrossChainEventResponse) Descriptor() ([]byte, []int)

func (*CrossChainEventResponse) GetCode

func (m *CrossChainEventResponse) GetCode() common.Code

func (*CrossChainEventResponse) GetCrossChainEventList

func (m *CrossChainEventResponse) GetCrossChainEventList() []*common.CrossChainEvent

func (*CrossChainEventResponse) GetMessage

func (m *CrossChainEventResponse) GetMessage() string

func (*CrossChainEventResponse) Marshal

func (m *CrossChainEventResponse) Marshal() (dAtA []byte, err error)

func (*CrossChainEventResponse) MarshalTo

func (m *CrossChainEventResponse) MarshalTo(dAtA []byte) (int, error)

func (*CrossChainEventResponse) MarshalToSizedBuffer

func (m *CrossChainEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CrossChainEventResponse) ProtoMessage

func (*CrossChainEventResponse) ProtoMessage()

func (*CrossChainEventResponse) Reset

func (m *CrossChainEventResponse) Reset()

func (*CrossChainEventResponse) Size

func (m *CrossChainEventResponse) Size() (n int)

func (*CrossChainEventResponse) String

func (m *CrossChainEventResponse) String() string

func (*CrossChainEventResponse) Unmarshal

func (m *CrossChainEventResponse) Unmarshal(dAtA []byte) error

func (*CrossChainEventResponse) XXX_DiscardUnknown

func (m *CrossChainEventResponse) XXX_DiscardUnknown()

func (*CrossChainEventResponse) XXX_Marshal

func (m *CrossChainEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CrossChainEventResponse) XXX_Merge

func (m *CrossChainEventResponse) XXX_Merge(src proto.Message)

func (*CrossChainEventResponse) XXX_Size

func (m *CrossChainEventResponse) XXX_Size() int

func (*CrossChainEventResponse) XXX_Unmarshal

func (m *CrossChainEventResponse) XXX_Unmarshal(b []byte) error

type CrossChainTryRequest

type CrossChainTryRequest struct {
	// 请求消息版本
	Version common.Version `protobuf:"varint,1,opt,name=version,proto3,enum=common.Version" json:"version,omitempty"`
	// 跨链Id
	CrossChainId string `protobuf:"bytes,2,opt,name=cross_chain_id,json=crossChainId,proto3" json:"cross_chain_id,omitempty"`
	// 跨链名称
	CrossChainName string `protobuf:"bytes,3,opt,name=cross_chain_name,json=crossChainName,proto3" json:"cross_chain_name,omitempty"`
	// 跨链标记
	CrossChainFlag string `protobuf:"bytes,4,opt,name=cross_chain_flag,json=crossChainFlag,proto3" json:"cross_chain_flag,omitempty"`
	// 跨链信息
	CrossChainMsg *common.CrossChainMsg `protobuf:"bytes,5,opt,name=cross_chain_msg,json=crossChainMsg,proto3" json:"cross_chain_msg,omitempty"`
	// 跨链首笔交易内容
	TxContent *common.TxContentWithVerify `protobuf:"bytes,6,opt,name=tx_content,json=txContent,proto3" json:"tx_content,omitempty"`
	// 发起跨链网关的id
	From string `protobuf:"bytes,7,opt,name=from,proto3" json:"from,omitempty"`
}

中继网关向跨链网关发起跨链请求的消息

func (*CrossChainTryRequest) Descriptor

func (*CrossChainTryRequest) Descriptor() ([]byte, []int)

func (*CrossChainTryRequest) GetCrossChainFlag

func (m *CrossChainTryRequest) GetCrossChainFlag() string

func (*CrossChainTryRequest) GetCrossChainId

func (m *CrossChainTryRequest) GetCrossChainId() string

func (*CrossChainTryRequest) GetCrossChainMsg

func (m *CrossChainTryRequest) GetCrossChainMsg() *common.CrossChainMsg

func (*CrossChainTryRequest) GetCrossChainName

func (m *CrossChainTryRequest) GetCrossChainName() string

func (*CrossChainTryRequest) GetFrom

func (m *CrossChainTryRequest) GetFrom() string

func (*CrossChainTryRequest) GetTxContent

func (m *CrossChainTryRequest) GetTxContent() *common.TxContentWithVerify

func (*CrossChainTryRequest) GetVersion

func (m *CrossChainTryRequest) GetVersion() common.Version

func (*CrossChainTryRequest) Marshal

func (m *CrossChainTryRequest) Marshal() (dAtA []byte, err error)

func (*CrossChainTryRequest) MarshalTo

func (m *CrossChainTryRequest) MarshalTo(dAtA []byte) (int, error)

func (*CrossChainTryRequest) MarshalToSizedBuffer

func (m *CrossChainTryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CrossChainTryRequest) ProtoMessage

func (*CrossChainTryRequest) ProtoMessage()

func (*CrossChainTryRequest) Reset

func (m *CrossChainTryRequest) Reset()

func (*CrossChainTryRequest) Size

func (m *CrossChainTryRequest) Size() (n int)

func (*CrossChainTryRequest) String

func (m *CrossChainTryRequest) String() string

func (*CrossChainTryRequest) Unmarshal

func (m *CrossChainTryRequest) Unmarshal(dAtA []byte) error

func (*CrossChainTryRequest) XXX_DiscardUnknown

func (m *CrossChainTryRequest) XXX_DiscardUnknown()

func (*CrossChainTryRequest) XXX_Marshal

func (m *CrossChainTryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CrossChainTryRequest) XXX_Merge

func (m *CrossChainTryRequest) XXX_Merge(src proto.Message)

func (*CrossChainTryRequest) XXX_Size

func (m *CrossChainTryRequest) XXX_Size() int

func (*CrossChainTryRequest) XXX_Unmarshal

func (m *CrossChainTryRequest) XXX_Unmarshal(b []byte) error

type CrossChainTryResponse

type CrossChainTryResponse struct {
	// 跨链Id
	CrossChainId string `protobuf:"bytes,1,opt,name=cross_chain_id,json=crossChainId,proto3" json:"cross_chain_id,omitempty"`
	// 跨链名称
	CrossChainName string `protobuf:"bytes,2,opt,name=cross_chain_name,json=crossChainName,proto3" json:"cross_chain_name,omitempty"`
	// 跨链标记
	CrossChainFlag string `protobuf:"bytes,3,opt,name=cross_chain_flag,json=crossChainFlag,proto3" json:"cross_chain_flag,omitempty"`
	// 跨链交易内容
	TxContent *common.TxContent `protobuf:"bytes,5,opt,name=tx_content,json=txContent,proto3" json:"tx_content,omitempty"`
	// 跨链交易结果
	TryResult []string `protobuf:"bytes,6,rep,name=try_result,json=tryResult,proto3" json:"try_result,omitempty"`
	// 执行结果code
	Code common.Code `protobuf:"varint,7,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"`
	// 返回消息内容
	Message string `protobuf:"bytes,8,opt,name=message,proto3" json:"message,omitempty"`
}

中继网关向跨链网关发起跨链请求回复

func (*CrossChainTryResponse) Descriptor

func (*CrossChainTryResponse) Descriptor() ([]byte, []int)

func (*CrossChainTryResponse) GetCode

func (m *CrossChainTryResponse) GetCode() common.Code

func (*CrossChainTryResponse) GetCrossChainFlag

func (m *CrossChainTryResponse) GetCrossChainFlag() string

func (*CrossChainTryResponse) GetCrossChainId

func (m *CrossChainTryResponse) GetCrossChainId() string

func (*CrossChainTryResponse) GetCrossChainName

func (m *CrossChainTryResponse) GetCrossChainName() string

func (*CrossChainTryResponse) GetMessage

func (m *CrossChainTryResponse) GetMessage() string

func (*CrossChainTryResponse) GetTryResult

func (m *CrossChainTryResponse) GetTryResult() []string

func (*CrossChainTryResponse) GetTxContent

func (m *CrossChainTryResponse) GetTxContent() *common.TxContent

func (*CrossChainTryResponse) Marshal

func (m *CrossChainTryResponse) Marshal() (dAtA []byte, err error)

func (*CrossChainTryResponse) MarshalTo

func (m *CrossChainTryResponse) MarshalTo(dAtA []byte) (int, error)

func (*CrossChainTryResponse) MarshalToSizedBuffer

func (m *CrossChainTryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CrossChainTryResponse) ProtoMessage

func (*CrossChainTryResponse) ProtoMessage()

func (*CrossChainTryResponse) Reset

func (m *CrossChainTryResponse) Reset()

func (*CrossChainTryResponse) Size

func (m *CrossChainTryResponse) Size() (n int)

func (*CrossChainTryResponse) String

func (m *CrossChainTryResponse) String() string

func (*CrossChainTryResponse) Unmarshal

func (m *CrossChainTryResponse) Unmarshal(dAtA []byte) error

func (*CrossChainTryResponse) XXX_DiscardUnknown

func (m *CrossChainTryResponse) XXX_DiscardUnknown()

func (*CrossChainTryResponse) XXX_Marshal

func (m *CrossChainTryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CrossChainTryResponse) XXX_Merge

func (m *CrossChainTryResponse) XXX_Merge(src proto.Message)

func (*CrossChainTryResponse) XXX_Size

func (m *CrossChainTryResponse) XXX_Size() int

func (*CrossChainTryResponse) XXX_Unmarshal

func (m *CrossChainTryResponse) XXX_Unmarshal(b []byte) error

type IsCrossChainSuccessRequest

type IsCrossChainSuccessRequest struct {
	// 请求消息版本
	Version common.Version `protobuf:"varint,1,opt,name=version,proto3,enum=common.Version" json:"version,omitempty"`
	// 跨链Id
	CrossChainId string `protobuf:"bytes,2,opt,name=cross_chain_id,json=crossChainId,proto3" json:"cross_chain_id,omitempty"`
	// 跨链名称
	CrossChainName string `protobuf:"bytes,3,opt,name=cross_chain_name,json=crossChainName,proto3" json:"cross_chain_name,omitempty"`
	// 跨链标记
	CrossChainFlag string `protobuf:"bytes,4,opt,name=cross_chain_flag,json=crossChainFlag,proto3" json:"cross_chain_flag,omitempty"`
	// 每个网关执行跨链交易的结果
	TxContent []*common.TxContentWithVerify `protobuf:"bytes,5,rep,name=tx_content,json=txContent,proto3" json:"tx_content,omitempty"`
}

判断跨链结果

func (*IsCrossChainSuccessRequest) Descriptor

func (*IsCrossChainSuccessRequest) Descriptor() ([]byte, []int)

func (*IsCrossChainSuccessRequest) GetCrossChainFlag

func (m *IsCrossChainSuccessRequest) GetCrossChainFlag() string

func (*IsCrossChainSuccessRequest) GetCrossChainId

func (m *IsCrossChainSuccessRequest) GetCrossChainId() string

func (*IsCrossChainSuccessRequest) GetCrossChainName

func (m *IsCrossChainSuccessRequest) GetCrossChainName() string

func (*IsCrossChainSuccessRequest) GetTxContent

func (*IsCrossChainSuccessRequest) GetVersion

func (m *IsCrossChainSuccessRequest) GetVersion() common.Version

func (*IsCrossChainSuccessRequest) Marshal

func (m *IsCrossChainSuccessRequest) Marshal() (dAtA []byte, err error)

func (*IsCrossChainSuccessRequest) MarshalTo

func (m *IsCrossChainSuccessRequest) MarshalTo(dAtA []byte) (int, error)

func (*IsCrossChainSuccessRequest) MarshalToSizedBuffer

func (m *IsCrossChainSuccessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IsCrossChainSuccessRequest) ProtoMessage

func (*IsCrossChainSuccessRequest) ProtoMessage()

func (*IsCrossChainSuccessRequest) Reset

func (m *IsCrossChainSuccessRequest) Reset()

func (*IsCrossChainSuccessRequest) Size

func (m *IsCrossChainSuccessRequest) Size() (n int)

func (*IsCrossChainSuccessRequest) String

func (m *IsCrossChainSuccessRequest) String() string

func (*IsCrossChainSuccessRequest) Unmarshal

func (m *IsCrossChainSuccessRequest) Unmarshal(dAtA []byte) error

func (*IsCrossChainSuccessRequest) XXX_DiscardUnknown

func (m *IsCrossChainSuccessRequest) XXX_DiscardUnknown()

func (*IsCrossChainSuccessRequest) XXX_Marshal

func (m *IsCrossChainSuccessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IsCrossChainSuccessRequest) XXX_Merge

func (m *IsCrossChainSuccessRequest) XXX_Merge(src proto.Message)

func (*IsCrossChainSuccessRequest) XXX_Size

func (m *IsCrossChainSuccessRequest) XXX_Size() int

func (*IsCrossChainSuccessRequest) XXX_Unmarshal

func (m *IsCrossChainSuccessRequest) XXX_Unmarshal(b []byte) error

type IsCrossChainSuccessResponse

type IsCrossChainSuccessResponse struct {
	// 跨链结果
	CrossChainResult bool `protobuf:"varint,1,opt,name=cross_chain_result,json=crossChainResult,proto3" json:"cross_chain_result,omitempty"`
	// 执行结果code
	Code common.Code `protobuf:"varint,2,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"`
	// 返回消息内容
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
}

判断跨链结果

func (*IsCrossChainSuccessResponse) Descriptor

func (*IsCrossChainSuccessResponse) Descriptor() ([]byte, []int)

func (*IsCrossChainSuccessResponse) GetCode

func (*IsCrossChainSuccessResponse) GetCrossChainResult

func (m *IsCrossChainSuccessResponse) GetCrossChainResult() bool

func (*IsCrossChainSuccessResponse) GetMessage

func (m *IsCrossChainSuccessResponse) GetMessage() string

func (*IsCrossChainSuccessResponse) Marshal

func (m *IsCrossChainSuccessResponse) Marshal() (dAtA []byte, err error)

func (*IsCrossChainSuccessResponse) MarshalTo

func (m *IsCrossChainSuccessResponse) MarshalTo(dAtA []byte) (int, error)

func (*IsCrossChainSuccessResponse) MarshalToSizedBuffer

func (m *IsCrossChainSuccessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IsCrossChainSuccessResponse) ProtoMessage

func (*IsCrossChainSuccessResponse) ProtoMessage()

func (*IsCrossChainSuccessResponse) Reset

func (m *IsCrossChainSuccessResponse) Reset()

func (*IsCrossChainSuccessResponse) Size

func (m *IsCrossChainSuccessResponse) Size() (n int)

func (*IsCrossChainSuccessResponse) String

func (m *IsCrossChainSuccessResponse) String() string

func (*IsCrossChainSuccessResponse) Unmarshal

func (m *IsCrossChainSuccessResponse) Unmarshal(dAtA []byte) error

func (*IsCrossChainSuccessResponse) XXX_DiscardUnknown

func (m *IsCrossChainSuccessResponse) XXX_DiscardUnknown()

func (*IsCrossChainSuccessResponse) XXX_Marshal

func (m *IsCrossChainSuccessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IsCrossChainSuccessResponse) XXX_Merge

func (m *IsCrossChainSuccessResponse) XXX_Merge(src proto.Message)

func (*IsCrossChainSuccessResponse) XXX_Size

func (m *IsCrossChainSuccessResponse) XXX_Size() int

func (*IsCrossChainSuccessResponse) XXX_Unmarshal

func (m *IsCrossChainSuccessResponse) XXX_Unmarshal(b []byte) error

type PingPongResponse

type PingPongResponse struct {
	// 链是否正常
	ChainOk bool `protobuf:"varint,1,opt,name=chain_ok,json=chainOk,proto3" json:"chain_ok,omitempty"`
}

pingpong返回

func (*PingPongResponse) Descriptor

func (*PingPongResponse) Descriptor() ([]byte, []int)

func (*PingPongResponse) GetChainOk

func (m *PingPongResponse) GetChainOk() bool

func (*PingPongResponse) Marshal

func (m *PingPongResponse) Marshal() (dAtA []byte, err error)

func (*PingPongResponse) MarshalTo

func (m *PingPongResponse) MarshalTo(dAtA []byte) (int, error)

func (*PingPongResponse) MarshalToSizedBuffer

func (m *PingPongResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PingPongResponse) ProtoMessage

func (*PingPongResponse) ProtoMessage()

func (*PingPongResponse) Reset

func (m *PingPongResponse) Reset()

func (*PingPongResponse) Size

func (m *PingPongResponse) Size() (n int)

func (*PingPongResponse) String

func (m *PingPongResponse) String() string

func (*PingPongResponse) Unmarshal

func (m *PingPongResponse) Unmarshal(dAtA []byte) error

func (*PingPongResponse) XXX_DiscardUnknown

func (m *PingPongResponse) XXX_DiscardUnknown()

func (*PingPongResponse) XXX_Marshal

func (m *PingPongResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PingPongResponse) XXX_Merge

func (m *PingPongResponse) XXX_Merge(src proto.Message)

func (*PingPongResponse) XXX_Size

func (m *PingPongResponse) XXX_Size() int

func (*PingPongResponse) XXX_Unmarshal

func (m *PingPongResponse) XXX_Unmarshal(b []byte) error

type TxVerifyRequest

type TxVerifyRequest struct {
	// 请求消息版本
	Version common.Version `protobuf:"varint,1,opt,name=version,proto3,enum=common.Version" json:"version,omitempty"`
	// 证明内容,json字符串,这里要和TxContent中的tx_prove字段对应
	TxProve string `protobuf:"bytes,2,opt,name=tx_prove,json=txProve,proto3" json:"tx_prove,omitempty"`
}

交易验证请求

func (*TxVerifyRequest) Descriptor

func (*TxVerifyRequest) Descriptor() ([]byte, []int)

func (*TxVerifyRequest) GetTxProve

func (m *TxVerifyRequest) GetTxProve() string

func (*TxVerifyRequest) GetVersion

func (m *TxVerifyRequest) GetVersion() common.Version

func (*TxVerifyRequest) Marshal

func (m *TxVerifyRequest) Marshal() (dAtA []byte, err error)

func (*TxVerifyRequest) MarshalTo

func (m *TxVerifyRequest) MarshalTo(dAtA []byte) (int, error)

func (*TxVerifyRequest) MarshalToSizedBuffer

func (m *TxVerifyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxVerifyRequest) ProtoMessage

func (*TxVerifyRequest) ProtoMessage()

func (*TxVerifyRequest) Reset

func (m *TxVerifyRequest) Reset()

func (*TxVerifyRequest) Size

func (m *TxVerifyRequest) Size() (n int)

func (*TxVerifyRequest) String

func (m *TxVerifyRequest) String() string

func (*TxVerifyRequest) Unmarshal

func (m *TxVerifyRequest) Unmarshal(dAtA []byte) error

func (*TxVerifyRequest) XXX_DiscardUnknown

func (m *TxVerifyRequest) XXX_DiscardUnknown()

func (*TxVerifyRequest) XXX_Marshal

func (m *TxVerifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxVerifyRequest) XXX_Merge

func (m *TxVerifyRequest) XXX_Merge(src proto.Message)

func (*TxVerifyRequest) XXX_Size

func (m *TxVerifyRequest) XXX_Size() int

func (*TxVerifyRequest) XXX_Unmarshal

func (m *TxVerifyRequest) XXX_Unmarshal(b []byte) error

type TxVerifyResponse

type TxVerifyResponse struct {
	// 交易验证结果
	TxVerifyResult bool `protobuf:"varint,1,opt,name=tx_verify_result,json=txVerifyResult,proto3" json:"tx_verify_result,omitempty"`
	// 执行结果code
	Code common.Code `protobuf:"varint,2,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"`
	// 返回消息内容
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
}

交易验证结果

func (*TxVerifyResponse) Descriptor

func (*TxVerifyResponse) Descriptor() ([]byte, []int)

func (*TxVerifyResponse) GetCode

func (m *TxVerifyResponse) GetCode() common.Code

func (*TxVerifyResponse) GetMessage

func (m *TxVerifyResponse) GetMessage() string

func (*TxVerifyResponse) GetTxVerifyResult

func (m *TxVerifyResponse) GetTxVerifyResult() bool

func (*TxVerifyResponse) Marshal

func (m *TxVerifyResponse) Marshal() (dAtA []byte, err error)

func (*TxVerifyResponse) MarshalTo

func (m *TxVerifyResponse) MarshalTo(dAtA []byte) (int, error)

func (*TxVerifyResponse) MarshalToSizedBuffer

func (m *TxVerifyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxVerifyResponse) ProtoMessage

func (*TxVerifyResponse) ProtoMessage()

func (*TxVerifyResponse) Reset

func (m *TxVerifyResponse) Reset()

func (*TxVerifyResponse) Size

func (m *TxVerifyResponse) Size() (n int)

func (*TxVerifyResponse) String

func (m *TxVerifyResponse) String() string

func (*TxVerifyResponse) Unmarshal

func (m *TxVerifyResponse) Unmarshal(dAtA []byte) error

func (*TxVerifyResponse) XXX_DiscardUnknown

func (m *TxVerifyResponse) XXX_DiscardUnknown()

func (*TxVerifyResponse) XXX_Marshal

func (m *TxVerifyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxVerifyResponse) XXX_Merge

func (m *TxVerifyResponse) XXX_Merge(src proto.Message)

func (*TxVerifyResponse) XXX_Size

func (m *TxVerifyResponse) XXX_Size() int

func (*TxVerifyResponse) XXX_Unmarshal

func (m *TxVerifyResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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