Documentation ¶
Index ¶
- Variables
- func RegisterBroadcastServer(s grpc.ServiceRegistrar, srv BroadcastServer)
- type BroadcastClient
- type BroadcastServer
- type ConfirmationLevel
- func (ConfirmationLevel) Descriptor() protoreflect.EnumDescriptor
- func (x ConfirmationLevel) Enum() *ConfirmationLevel
- func (ConfirmationLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConfirmationLevel) Number() protoreflect.EnumNumber
- func (x ConfirmationLevel) String() string
- func (ConfirmationLevel) Type() protoreflect.EnumType
- type SendBatchRequest
- func (*SendBatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendBatchRequest) GetConfirmationLevel() ConfirmationLevel
- func (x *SendBatchRequest) GetTx() [][]byte
- func (*SendBatchRequest) ProtoMessage()
- func (x *SendBatchRequest) ProtoReflect() protoreflect.Message
- func (x *SendBatchRequest) Reset()
- func (x *SendBatchRequest) String() string
- type SendBatchResponse
- func (*SendBatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendBatchResponse) GetSignature() [][]byte
- func (*SendBatchResponse) ProtoMessage()
- func (x *SendBatchResponse) ProtoReflect() protoreflect.Message
- func (x *SendBatchResponse) Reset()
- func (x *SendBatchResponse) String() string
- type UnimplementedBroadcastServer
- type UnsafeBroadcastServer
Constants ¶
This section is empty.
Variables ¶
var ( ConfirmationLevel_name = map[int32]string{ 0: "PROCESSED", 1: "CONFIRMED", 2: "FINALIZED", } ConfirmationLevel_value = map[string]int32{ "PROCESSED": 0, "CONFIRMED": 1, "FINALIZED": 2, } )
Enum value maps for ConfirmationLevel.
var Broadcast_ServiceDesc = grpc.ServiceDesc{ ServiceName: "solananet.Broadcast", HandlerType: (*BroadcastServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendTx", Handler: _Broadcast_SendTx_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/solana-net.proto", }
Broadcast_ServiceDesc is the grpc.ServiceDesc for Broadcast service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_solana_net_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBroadcastServer ¶
func RegisterBroadcastServer(s grpc.ServiceRegistrar, srv BroadcastServer)
Types ¶
type BroadcastClient ¶
type BroadcastClient interface { //rpc SendTx(SendTxRequest) returns (SendTxResponse) {} SendTx(ctx context.Context, in *SendBatchRequest, opts ...grpc.CallOption) (*SendBatchResponse, error) }
BroadcastClient is the client API for Broadcast 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 NewBroadcastClient ¶
func NewBroadcastClient(cc grpc.ClientConnInterface) BroadcastClient
type BroadcastServer ¶
type BroadcastServer interface { //rpc SendTx(SendTxRequest) returns (SendTxResponse) {} SendTx(context.Context, *SendBatchRequest) (*SendBatchResponse, error) // contains filtered or unexported methods }
BroadcastServer is the server API for Broadcast service. All implementations must embed UnimplementedBroadcastServer for forward compatibility
type ConfirmationLevel ¶
type ConfirmationLevel int32
const ( ConfirmationLevel_PROCESSED ConfirmationLevel = 0 ConfirmationLevel_CONFIRMED ConfirmationLevel = 1 ConfirmationLevel_FINALIZED ConfirmationLevel = 2 )
func (ConfirmationLevel) Descriptor ¶
func (ConfirmationLevel) Descriptor() protoreflect.EnumDescriptor
func (ConfirmationLevel) Enum ¶
func (x ConfirmationLevel) Enum() *ConfirmationLevel
func (ConfirmationLevel) EnumDescriptor
deprecated
func (ConfirmationLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConfirmationLevel.Descriptor instead.
func (ConfirmationLevel) Number ¶
func (x ConfirmationLevel) Number() protoreflect.EnumNumber
func (ConfirmationLevel) String ¶
func (x ConfirmationLevel) String() string
func (ConfirmationLevel) Type ¶
func (ConfirmationLevel) Type() protoreflect.EnumType
type SendBatchRequest ¶
type SendBatchRequest struct { Tx [][]byte `protobuf:"bytes,1,rep,name=tx,proto3" json:"tx,omitempty"` ConfirmationLevel ConfirmationLevel `` /* 146-byte string literal not displayed */ // contains filtered or unexported fields }
func (*SendBatchRequest) Descriptor
deprecated
func (*SendBatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendBatchRequest.ProtoReflect.Descriptor instead.
func (*SendBatchRequest) GetConfirmationLevel ¶
func (x *SendBatchRequest) GetConfirmationLevel() ConfirmationLevel
func (*SendBatchRequest) GetTx ¶
func (x *SendBatchRequest) GetTx() [][]byte
func (*SendBatchRequest) ProtoMessage ¶
func (*SendBatchRequest) ProtoMessage()
func (*SendBatchRequest) ProtoReflect ¶
func (x *SendBatchRequest) ProtoReflect() protoreflect.Message
func (*SendBatchRequest) Reset ¶
func (x *SendBatchRequest) Reset()
func (*SendBatchRequest) String ¶
func (x *SendBatchRequest) String() string
type SendBatchResponse ¶
type SendBatchResponse struct { Signature [][]byte `protobuf:"bytes,1,rep,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*SendBatchResponse) Descriptor
deprecated
func (*SendBatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendBatchResponse.ProtoReflect.Descriptor instead.
func (*SendBatchResponse) GetSignature ¶
func (x *SendBatchResponse) GetSignature() [][]byte
func (*SendBatchResponse) ProtoMessage ¶
func (*SendBatchResponse) ProtoMessage()
func (*SendBatchResponse) ProtoReflect ¶
func (x *SendBatchResponse) ProtoReflect() protoreflect.Message
func (*SendBatchResponse) Reset ¶
func (x *SendBatchResponse) Reset()
func (*SendBatchResponse) String ¶
func (x *SendBatchResponse) String() string
type UnimplementedBroadcastServer ¶
type UnimplementedBroadcastServer struct { }
UnimplementedBroadcastServer must be embedded to have forward compatible implementations.
func (UnimplementedBroadcastServer) SendTx ¶
func (UnimplementedBroadcastServer) SendTx(context.Context, *SendBatchRequest) (*SendBatchResponse, error)
type UnsafeBroadcastServer ¶
type UnsafeBroadcastServer interface {
// contains filtered or unexported methods
}
UnsafeBroadcastServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BroadcastServer will result in compilation errors.