solananet

package
v0.0.0-...-1fb291d Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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)

View Source
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) Enum

func (ConfirmationLevel) EnumDescriptor deprecated

func (ConfirmationLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use ConfirmationLevel.Descriptor instead.

func (ConfirmationLevel) Number

func (ConfirmationLevel) String

func (x ConfirmationLevel) String() string

func (ConfirmationLevel) Type

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

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.

Jump to

Keyboard shortcuts

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