appsender

package
v1.22.88 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: BSD-3-Clause Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	AppSender_SendRequest_FullMethodName            = "/appsender.AppSender/SendRequest"
	AppSender_SendResponse_FullMethodName           = "/appsender.AppSender/SendResponse"
	AppSender_SendError_FullMethodName              = "/appsender.AppSender/SendError"
	AppSender_SendGossip_FullMethodName             = "/appsender.AppSender/SendGossip"
	AppSender_SendCrossChainRequest_FullMethodName  = "/appsender.AppSender/SendCrossChainRequest"
	AppSender_SendCrossChainResponse_FullMethodName = "/appsender.AppSender/SendCrossChainResponse"
	AppSender_SendCrossChainError_FullMethodName    = "/appsender.AppSender/SendCrossChainError"
)

Variables

View Source
var AppSender_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "appsender.AppSender",
	HandlerType: (*AppSenderServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendRequest",
			Handler:    _AppSender_SendRequest_Handler,
		},
		{
			MethodName: "SendResponse",
			Handler:    _AppSender_SendResponse_Handler,
		},
		{
			MethodName: "SendError",
			Handler:    _AppSender_SendError_Handler,
		},
		{
			MethodName: "SendGossip",
			Handler:    _AppSender_SendGossip_Handler,
		},
		{
			MethodName: "SendCrossChainRequest",
			Handler:    _AppSender_SendCrossChainRequest_Handler,
		},
		{
			MethodName: "SendCrossChainResponse",
			Handler:    _AppSender_SendCrossChainResponse_Handler,
		},
		{
			MethodName: "SendCrossChainError",
			Handler:    _AppSender_SendCrossChainError_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "appsender/appsender.proto",
}

AppSender_ServiceDesc is the grpc.ServiceDesc for AppSender service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_appsender_appsender_proto protoreflect.FileDescriptor

Functions

func RegisterAppSenderServer

func RegisterAppSenderServer(s grpc.ServiceRegistrar, srv AppSenderServer)

Types

type AppSenderClient

type AppSenderClient interface {
	SendRequest(ctx context.Context, in *SendRequestMsg, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SendResponse(ctx context.Context, in *SendResponseMsg, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SendError(ctx context.Context, in *SendErrorMsg, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SendGossip(ctx context.Context, in *SendGossipMsg, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SendCrossChainRequest(ctx context.Context, in *SendCrossChainRequestMsg, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SendCrossChainResponse(ctx context.Context, in *SendCrossChainResponseMsg, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SendCrossChainError(ctx context.Context, in *SendCrossChainErrorMsg, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

AppSenderClient is the client API for AppSender service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAppSenderClient

func NewAppSenderClient(cc grpc.ClientConnInterface) AppSenderClient

type AppSenderServer

type AppSenderServer interface {
	SendRequest(context.Context, *SendRequestMsg) (*emptypb.Empty, error)
	SendResponse(context.Context, *SendResponseMsg) (*emptypb.Empty, error)
	SendError(context.Context, *SendErrorMsg) (*emptypb.Empty, error)
	SendGossip(context.Context, *SendGossipMsg) (*emptypb.Empty, error)
	SendCrossChainRequest(context.Context, *SendCrossChainRequestMsg) (*emptypb.Empty, error)
	SendCrossChainResponse(context.Context, *SendCrossChainResponseMsg) (*emptypb.Empty, error)
	SendCrossChainError(context.Context, *SendCrossChainErrorMsg) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

AppSenderServer is the server API for AppSender service. All implementations must embed UnimplementedAppSenderServer for forward compatibility

type SendCrossChainErrorMsg added in v1.22.87

type SendCrossChainErrorMsg struct {

	// The chain to send a response to
	ChainId []byte `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// ID of this request
	RequestId uint32 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// Application-defined error code
	ErrorCode int32 `protobuf:"zigzag32,3,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
	// Application-defined error message
	ErrorMessage string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

func (*SendCrossChainErrorMsg) Descriptor deprecated added in v1.22.87

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

Deprecated: Use SendCrossChainErrorMsg.ProtoReflect.Descriptor instead.

func (*SendCrossChainErrorMsg) GetChainId added in v1.22.87

func (x *SendCrossChainErrorMsg) GetChainId() []byte

func (*SendCrossChainErrorMsg) GetErrorCode added in v1.22.87

func (x *SendCrossChainErrorMsg) GetErrorCode() int32

func (*SendCrossChainErrorMsg) GetErrorMessage added in v1.22.87

func (x *SendCrossChainErrorMsg) GetErrorMessage() string

func (*SendCrossChainErrorMsg) GetRequestId added in v1.22.87

func (x *SendCrossChainErrorMsg) GetRequestId() uint32

func (*SendCrossChainErrorMsg) ProtoMessage added in v1.22.87

func (*SendCrossChainErrorMsg) ProtoMessage()

func (*SendCrossChainErrorMsg) ProtoReflect added in v1.22.87

func (x *SendCrossChainErrorMsg) ProtoReflect() protoreflect.Message

func (*SendCrossChainErrorMsg) Reset added in v1.22.87

func (x *SendCrossChainErrorMsg) Reset()

func (*SendCrossChainErrorMsg) String added in v1.22.87

func (x *SendCrossChainErrorMsg) String() string

type SendCrossChainRequestMsg added in v1.22.87

type SendCrossChainRequestMsg struct {

	// The chain to send this request to
	ChainId []byte `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// The ID of this request
	RequestId uint32 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The request body
	Request []byte `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

func (*SendCrossChainRequestMsg) Descriptor deprecated added in v1.22.87

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

Deprecated: Use SendCrossChainRequestMsg.ProtoReflect.Descriptor instead.

func (*SendCrossChainRequestMsg) GetChainId added in v1.22.87

func (x *SendCrossChainRequestMsg) GetChainId() []byte

func (*SendCrossChainRequestMsg) GetRequest added in v1.22.87

func (x *SendCrossChainRequestMsg) GetRequest() []byte

func (*SendCrossChainRequestMsg) GetRequestId added in v1.22.87

func (x *SendCrossChainRequestMsg) GetRequestId() uint32

func (*SendCrossChainRequestMsg) ProtoMessage added in v1.22.87

func (*SendCrossChainRequestMsg) ProtoMessage()

func (*SendCrossChainRequestMsg) ProtoReflect added in v1.22.87

func (x *SendCrossChainRequestMsg) ProtoReflect() protoreflect.Message

func (*SendCrossChainRequestMsg) Reset added in v1.22.87

func (x *SendCrossChainRequestMsg) Reset()

func (*SendCrossChainRequestMsg) String added in v1.22.87

func (x *SendCrossChainRequestMsg) String() string

type SendCrossChainResponseMsg added in v1.22.87

type SendCrossChainResponseMsg struct {

	// The chain to send a response to
	ChainId []byte `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// ID of this request
	RequestId uint32 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The response body
	Response []byte `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*SendCrossChainResponseMsg) Descriptor deprecated added in v1.22.87

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

Deprecated: Use SendCrossChainResponseMsg.ProtoReflect.Descriptor instead.

func (*SendCrossChainResponseMsg) GetChainId added in v1.22.87

func (x *SendCrossChainResponseMsg) GetChainId() []byte

func (*SendCrossChainResponseMsg) GetRequestId added in v1.22.87

func (x *SendCrossChainResponseMsg) GetRequestId() uint32

func (*SendCrossChainResponseMsg) GetResponse added in v1.22.87

func (x *SendCrossChainResponseMsg) GetResponse() []byte

func (*SendCrossChainResponseMsg) ProtoMessage added in v1.22.87

func (*SendCrossChainResponseMsg) ProtoMessage()

func (*SendCrossChainResponseMsg) ProtoReflect added in v1.22.87

func (*SendCrossChainResponseMsg) Reset added in v1.22.87

func (x *SendCrossChainResponseMsg) Reset()

func (*SendCrossChainResponseMsg) String added in v1.22.87

func (x *SendCrossChainResponseMsg) String() string

type SendErrorMsg added in v1.22.87

type SendErrorMsg struct {

	// The node to send a response to
	NodeId []byte `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// ID of this request
	RequestId uint32 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// Application-defined error code
	ErrorCode int32 `protobuf:"zigzag32,3,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
	// Application-defined error message
	ErrorMessage string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

func (*SendErrorMsg) Descriptor deprecated added in v1.22.87

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

Deprecated: Use SendErrorMsg.ProtoReflect.Descriptor instead.

func (*SendErrorMsg) GetErrorCode added in v1.22.87

func (x *SendErrorMsg) GetErrorCode() int32

func (*SendErrorMsg) GetErrorMessage added in v1.22.87

func (x *SendErrorMsg) GetErrorMessage() string

func (*SendErrorMsg) GetNodeId added in v1.22.87

func (x *SendErrorMsg) GetNodeId() []byte

func (*SendErrorMsg) GetRequestId added in v1.22.87

func (x *SendErrorMsg) GetRequestId() uint32

func (*SendErrorMsg) ProtoMessage added in v1.22.87

func (*SendErrorMsg) ProtoMessage()

func (*SendErrorMsg) ProtoReflect added in v1.22.87

func (x *SendErrorMsg) ProtoReflect() protoreflect.Message

func (*SendErrorMsg) Reset added in v1.22.87

func (x *SendErrorMsg) Reset()

func (*SendErrorMsg) String added in v1.22.87

func (x *SendErrorMsg) String() string

type SendGossipMsg added in v1.22.87

type SendGossipMsg struct {

	// Who to send this message to
	NodeIds       [][]byte `protobuf:"bytes,1,rep,name=node_ids,json=nodeIds,proto3" json:"node_ids,omitempty"`
	Validators    uint64   `protobuf:"varint,2,opt,name=validators,proto3" json:"validators,omitempty"`
	NonValidators uint64   `protobuf:"varint,3,opt,name=non_validators,json=nonValidators,proto3" json:"non_validators,omitempty"`
	Peers         uint64   `protobuf:"varint,4,opt,name=peers,proto3" json:"peers,omitempty"`
	// The message body
	Msg []byte `protobuf:"bytes,5,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*SendGossipMsg) Descriptor deprecated added in v1.22.87

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

Deprecated: Use SendGossipMsg.ProtoReflect.Descriptor instead.

func (*SendGossipMsg) GetMsg added in v1.22.87

func (x *SendGossipMsg) GetMsg() []byte

func (*SendGossipMsg) GetNodeIds added in v1.22.87

func (x *SendGossipMsg) GetNodeIds() [][]byte

func (*SendGossipMsg) GetNonValidators added in v1.22.87

func (x *SendGossipMsg) GetNonValidators() uint64

func (*SendGossipMsg) GetPeers added in v1.22.87

func (x *SendGossipMsg) GetPeers() uint64

func (*SendGossipMsg) GetValidators added in v1.22.87

func (x *SendGossipMsg) GetValidators() uint64

func (*SendGossipMsg) ProtoMessage added in v1.22.87

func (*SendGossipMsg) ProtoMessage()

func (*SendGossipMsg) ProtoReflect added in v1.22.87

func (x *SendGossipMsg) ProtoReflect() protoreflect.Message

func (*SendGossipMsg) Reset added in v1.22.87

func (x *SendGossipMsg) Reset()

func (*SendGossipMsg) String added in v1.22.87

func (x *SendGossipMsg) String() string

type SendRequestMsg added in v1.22.87

type SendRequestMsg struct {

	// The nodes to send this request to
	NodeIds [][]byte `protobuf:"bytes,1,rep,name=node_ids,json=nodeIds,proto3" json:"node_ids,omitempty"`
	// The ID of this request
	RequestId uint32 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The request body
	Request []byte `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

func (*SendRequestMsg) Descriptor deprecated added in v1.22.87

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

Deprecated: Use SendRequestMsg.ProtoReflect.Descriptor instead.

func (*SendRequestMsg) GetNodeIds added in v1.22.87

func (x *SendRequestMsg) GetNodeIds() [][]byte

func (*SendRequestMsg) GetRequest added in v1.22.87

func (x *SendRequestMsg) GetRequest() []byte

func (*SendRequestMsg) GetRequestId added in v1.22.87

func (x *SendRequestMsg) GetRequestId() uint32

func (*SendRequestMsg) ProtoMessage added in v1.22.87

func (*SendRequestMsg) ProtoMessage()

func (*SendRequestMsg) ProtoReflect added in v1.22.87

func (x *SendRequestMsg) ProtoReflect() protoreflect.Message

func (*SendRequestMsg) Reset added in v1.22.87

func (x *SendRequestMsg) Reset()

func (*SendRequestMsg) String added in v1.22.87

func (x *SendRequestMsg) String() string

type SendResponseMsg added in v1.22.87

type SendResponseMsg struct {

	// The node to send a response to
	NodeId []byte `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// ID of this request
	RequestId uint32 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The response body
	Response []byte `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*SendResponseMsg) Descriptor deprecated added in v1.22.87

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

Deprecated: Use SendResponseMsg.ProtoReflect.Descriptor instead.

func (*SendResponseMsg) GetNodeId added in v1.22.87

func (x *SendResponseMsg) GetNodeId() []byte

func (*SendResponseMsg) GetRequestId added in v1.22.87

func (x *SendResponseMsg) GetRequestId() uint32

func (*SendResponseMsg) GetResponse added in v1.22.87

func (x *SendResponseMsg) GetResponse() []byte

func (*SendResponseMsg) ProtoMessage added in v1.22.87

func (*SendResponseMsg) ProtoMessage()

func (*SendResponseMsg) ProtoReflect added in v1.22.87

func (x *SendResponseMsg) ProtoReflect() protoreflect.Message

func (*SendResponseMsg) Reset added in v1.22.87

func (x *SendResponseMsg) Reset()

func (*SendResponseMsg) String added in v1.22.87

func (x *SendResponseMsg) String() string

type UnimplementedAppSenderServer

type UnimplementedAppSenderServer struct {
}

UnimplementedAppSenderServer must be embedded to have forward compatible implementations.

func (UnimplementedAppSenderServer) SendCrossChainError added in v1.22.87

func (UnimplementedAppSenderServer) SendCrossChainRequest added in v1.22.87

func (UnimplementedAppSenderServer) SendCrossChainResponse added in v1.22.87

func (UnimplementedAppSenderServer) SendError added in v1.22.87

func (UnimplementedAppSenderServer) SendGossip added in v1.22.87

func (UnimplementedAppSenderServer) SendRequest added in v1.22.87

func (UnimplementedAppSenderServer) SendResponse added in v1.22.87

type UnsafeAppSenderServer

type UnsafeAppSenderServer interface {
	// contains filtered or unexported methods
}

UnsafeAppSenderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AppSenderServer will result in compilation errors.

Jump to

Keyboard shortcuts

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