Documentation
¶
Index ¶
- Constants
- Variables
- func AreSameHeight(h1, h2 *TxRef) bool
- func RegisterNotifierServer(s grpc.ServiceRegistrar, srv NotifierServer)
- func RegisterQueryServiceServer(s grpc.ServiceRegistrar, srv QueryServiceServer)
- type IsoLevel
- type NotificationRequest
- func (*NotificationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NotificationRequest) GetTimeout() *durationpb.Duration
- func (x *NotificationRequest) GetTxStatusRequest() *TxIDsBatch
- func (*NotificationRequest) ProtoMessage()
- func (x *NotificationRequest) ProtoReflect() protoreflect.Message
- func (x *NotificationRequest) Reset()
- func (x *NotificationRequest) String() string
- type NotificationResponse
- func (*NotificationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NotificationResponse) GetTimeoutTxIds() []string
- func (x *NotificationResponse) GetTxStatusEvents() []*TxStatus
- func (*NotificationResponse) ProtoMessage()
- func (x *NotificationResponse) ProtoReflect() protoreflect.Message
- func (x *NotificationResponse) Reset()
- func (x *NotificationResponse) String() string
- type NotifierClient
- type NotifierServer
- type Notifier_OpenNotificationStreamClient
- type Notifier_OpenNotificationStreamServer
- type Query
- type QueryNamespace
- func (*QueryNamespace) Descriptor() ([]byte, []int)deprecated
- func (x *QueryNamespace) GetKeys() [][]byte
- func (x *QueryNamespace) GetNsId() string
- func (*QueryNamespace) ProtoMessage()
- func (x *QueryNamespace) ProtoReflect() protoreflect.Message
- func (x *QueryNamespace) Reset()
- func (x *QueryNamespace) String() string
- type QueryServiceClient
- type QueryServiceServer
- type Row
- type Rows
- type RowsNamespace
- func (*RowsNamespace) Descriptor() ([]byte, []int)deprecated
- func (x *RowsNamespace) GetNsId() string
- func (x *RowsNamespace) GetRows() []*Row
- func (*RowsNamespace) ProtoMessage()
- func (x *RowsNamespace) ProtoReflect() protoreflect.Message
- func (x *RowsNamespace) Reset()
- func (x *RowsNamespace) String() string
- type Status
- type TxIDsBatch
- type TxRef
- func (*TxRef) Descriptor() ([]byte, []int)deprecated
- func (x *TxRef) GetBlockNum() uint64
- func (x *TxRef) GetTxId() string
- func (x *TxRef) GetTxNum() uint32
- func (x *TxRef) IsHeight(blockNum uint64, txNum uint32) bool
- func (*TxRef) ProtoMessage()
- func (x *TxRef) ProtoReflect() protoreflect.Message
- func (x *TxRef) Reset()
- func (x *TxRef) String() string
- type TxStatus
- type TxStatusBatch
- type TxStatusQuery
- func (*TxStatusQuery) Descriptor() ([]byte, []int)deprecated
- func (x *TxStatusQuery) GetTxIds() []string
- func (x *TxStatusQuery) GetView() *View
- func (*TxStatusQuery) ProtoMessage()
- func (x *TxStatusQuery) ProtoReflect() protoreflect.Message
- func (x *TxStatusQuery) Reset()
- func (x *TxStatusQuery) String() string
- type TxStatusResponse
- type UnimplementedNotifierServer
- type UnimplementedQueryServiceServer
- func (UnimplementedQueryServiceServer) BeginView(context.Context, *ViewParameters) (*View, error)
- func (UnimplementedQueryServiceServer) EndView(context.Context, *View) (*emptypb.Empty, error)
- func (UnimplementedQueryServiceServer) GetConfigTransaction(context.Context, *emptypb.Empty) (*applicationpb.ConfigTransaction, error)
- func (UnimplementedQueryServiceServer) GetNamespacePolicies(context.Context, *emptypb.Empty) (*applicationpb.NamespacePolicies, error)
- func (UnimplementedQueryServiceServer) GetRows(context.Context, *Query) (*Rows, error)
- func (UnimplementedQueryServiceServer) GetTransactionStatus(context.Context, *TxStatusQuery) (*TxStatusResponse, error)
- type UnsafeNotifierServer
- type UnsafeQueryServiceServer
- type View
- type ViewParameters
- func (*ViewParameters) Descriptor() ([]byte, []int)deprecated
- func (x *ViewParameters) GetIsoLevel() IsoLevel
- func (x *ViewParameters) GetNonDeferrable() bool
- func (x *ViewParameters) GetTimeoutMilliseconds() uint64
- func (*ViewParameters) ProtoMessage()
- func (x *ViewParameters) ProtoReflect() protoreflect.Message
- func (x *ViewParameters) Reset()
- func (x *ViewParameters) String() string
Constants ¶
const ( QueryService_GetRows_FullMethodName = "/committerpb.QueryService/GetRows" QueryService_BeginView_FullMethodName = "/committerpb.QueryService/BeginView" QueryService_EndView_FullMethodName = "/committerpb.QueryService/EndView" QueryService_GetNamespacePolicies_FullMethodName = "/committerpb.QueryService/GetNamespacePolicies" QueryService_GetConfigTransaction_FullMethodName = "/committerpb.QueryService/GetConfigTransaction" QueryService_GetTransactionStatus_FullMethodName = "/committerpb.QueryService/GetTransactionStatus" )
const ( // MetaNamespaceID is the system's namespace ID that holds information about application's namespaces. MetaNamespaceID = "_meta" // ConfigNamespaceID is the system's namespace ID that holds the config transaction. ConfigNamespaceID = "_config" // ConfigKey is the key of the config transaction. ConfigKey = "_config" )
const (
Notifier_OpenNotificationStream_FullMethodName = "/committerpb.Notifier/OpenNotificationStream"
)
Variables ¶
var ( IsoLevel_name = map[int32]string{ 0: "ISO_LEVEL_UNSPECIFIED", 1: "SERIALIZABLE", 2: "REPEATABLE_READ", 3: "READ_COMMITTED", 4: "READ_UNCOMMITTED", } IsoLevel_value = map[string]int32{ "ISO_LEVEL_UNSPECIFIED": 0, "SERIALIZABLE": 1, "REPEATABLE_READ": 2, "READ_COMMITTED": 3, "READ_UNCOMMITTED": 4, } )
Enum value maps for IsoLevel.
var ( Status_name = map[int32]string{ 0: "STATUS_UNSPECIFIED", 1: "COMMITTED", 2: "ABORTED_SIGNATURE_INVALID", 3: "ABORTED_MVCC_CONFLICT", 100: "REJECTED_DUPLICATE_TX_ID", 101: "MALFORMED_BAD_ENVELOPE", 102: "MALFORMED_MISSING_TX_ID", 103: "MALFORMED_UNSUPPORTED_ENVELOPE_PAYLOAD", 104: "MALFORMED_BAD_ENVELOPE_PAYLOAD", 105: "MALFORMED_TX_ID_CONFLICT", 106: "MALFORMED_EMPTY_NAMESPACES", 107: "MALFORMED_DUPLICATE_NAMESPACE", 108: "MALFORMED_NAMESPACE_ID_INVALID", 109: "MALFORMED_BLIND_WRITES_NOT_ALLOWED", 110: "MALFORMED_NO_WRITES", 111: "MALFORMED_EMPTY_KEY", 112: "MALFORMED_DUPLICATE_KEY_IN_READ_WRITE_SET", 113: "MALFORMED_MISSING_SIGNATURE", 114: "MALFORMED_NAMESPACE_POLICY_INVALID", 115: "MALFORMED_CONFIG_TX_INVALID", } Status_value = map[string]int32{ "STATUS_UNSPECIFIED": 0, "COMMITTED": 1, "ABORTED_SIGNATURE_INVALID": 2, "ABORTED_MVCC_CONFLICT": 3, "REJECTED_DUPLICATE_TX_ID": 100, "MALFORMED_BAD_ENVELOPE": 101, "MALFORMED_MISSING_TX_ID": 102, "MALFORMED_UNSUPPORTED_ENVELOPE_PAYLOAD": 103, "MALFORMED_BAD_ENVELOPE_PAYLOAD": 104, "MALFORMED_TX_ID_CONFLICT": 105, "MALFORMED_EMPTY_NAMESPACES": 106, "MALFORMED_DUPLICATE_NAMESPACE": 107, "MALFORMED_NAMESPACE_ID_INVALID": 108, "MALFORMED_BLIND_WRITES_NOT_ALLOWED": 109, "MALFORMED_NO_WRITES": 110, "MALFORMED_EMPTY_KEY": 111, "MALFORMED_DUPLICATE_KEY_IN_READ_WRITE_SET": 112, "MALFORMED_MISSING_SIGNATURE": 113, "MALFORMED_NAMESPACE_POLICY_INVALID": 114, "MALFORMED_CONFIG_TX_INVALID": 115, } )
Enum value maps for Status.
var File_api_committerpb_notify_proto protoreflect.FileDescriptor
var File_api_committerpb_query_proto protoreflect.FileDescriptor
var File_api_committerpb_ref_proto protoreflect.FileDescriptor
var File_api_committerpb_status_proto protoreflect.FileDescriptor
var Notifier_ServiceDesc = grpc.ServiceDesc{ ServiceName: "committerpb.Notifier", HandlerType: (*NotifierServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "OpenNotificationStream", Handler: _Notifier_OpenNotificationStream_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "api/committerpb/notify.proto", }
Notifier_ServiceDesc is the grpc.ServiceDesc for Notifier service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var QueryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "committerpb.QueryService", HandlerType: (*QueryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetRows", Handler: _QueryService_GetRows_Handler, }, { MethodName: "BeginView", Handler: _QueryService_BeginView_Handler, }, { MethodName: "EndView", Handler: _QueryService_EndView_Handler, }, { MethodName: "GetNamespacePolicies", Handler: _QueryService_GetNamespacePolicies_Handler, }, { MethodName: "GetConfigTransaction", Handler: _QueryService_GetConfigTransaction_Handler, }, { MethodName: "GetTransactionStatus", Handler: _QueryService_GetTransactionStatus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/committerpb/query.proto", }
QueryService_ServiceDesc is the grpc.ServiceDesc for QueryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func AreSameHeight ¶
AreSameHeight returns true if both references' heights are either nil or equal.
func RegisterNotifierServer ¶
func RegisterNotifierServer(s grpc.ServiceRegistrar, srv NotifierServer)
func RegisterQueryServiceServer ¶
func RegisterQueryServiceServer(s grpc.ServiceRegistrar, srv QueryServiceServer)
Types ¶
type IsoLevel ¶
type IsoLevel int32
func (IsoLevel) Descriptor ¶
func (IsoLevel) Descriptor() protoreflect.EnumDescriptor
func (IsoLevel) EnumDescriptor
deprecated
func (IsoLevel) Number ¶
func (x IsoLevel) Number() protoreflect.EnumNumber
func (IsoLevel) Type ¶
func (IsoLevel) Type() protoreflect.EnumType
type NotificationRequest ¶
type NotificationRequest struct {
TxStatusRequest *TxIDsBatch `protobuf:"bytes,1,opt,name=tx_status_request,json=txStatusRequest,proto3,oneof" json:"tx_status_request,omitempty"`
// The timeout duration that applies to ALL the subscriptions in this request.
// It is non-strict, i.e., it is possible to receive notifications for this request
// after the timeout has passed.
// If this field is not set or has a default value (zero), the default would be applied as
// per the committer's configuration.
Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
// contains filtered or unexported fields
}
NotificationRequest is sent by the clients to subscribe to events.
func (*NotificationRequest) Descriptor
deprecated
func (*NotificationRequest) Descriptor() ([]byte, []int)
Deprecated: Use NotificationRequest.ProtoReflect.Descriptor instead.
func (*NotificationRequest) GetTimeout ¶
func (x *NotificationRequest) GetTimeout() *durationpb.Duration
func (*NotificationRequest) GetTxStatusRequest ¶
func (x *NotificationRequest) GetTxStatusRequest() *TxIDsBatch
func (*NotificationRequest) ProtoMessage ¶
func (*NotificationRequest) ProtoMessage()
func (*NotificationRequest) ProtoReflect ¶
func (x *NotificationRequest) ProtoReflect() protoreflect.Message
func (*NotificationRequest) Reset ¶
func (x *NotificationRequest) Reset()
func (*NotificationRequest) String ¶
func (x *NotificationRequest) String() string
type NotificationResponse ¶
type NotificationResponse struct {
TxStatusEvents []*TxStatus `protobuf:"bytes,1,rep,name=tx_status_events,json=txStatusEvents,proto3" json:"tx_status_events,omitempty"` // List of transaction status events.
TimeoutTxIds []string `protobuf:"bytes,2,rep,name=timeout_tx_ids,json=timeoutTxIds,proto3" json:"timeout_tx_ids,omitempty"` // List of timeout events.
// contains filtered or unexported fields
}
NotificationResponse contains a batch of event details. It is pushed to the client via the stream.
func (*NotificationResponse) Descriptor
deprecated
func (*NotificationResponse) Descriptor() ([]byte, []int)
Deprecated: Use NotificationResponse.ProtoReflect.Descriptor instead.
func (*NotificationResponse) GetTimeoutTxIds ¶
func (x *NotificationResponse) GetTimeoutTxIds() []string
func (*NotificationResponse) GetTxStatusEvents ¶
func (x *NotificationResponse) GetTxStatusEvents() []*TxStatus
func (*NotificationResponse) ProtoMessage ¶
func (*NotificationResponse) ProtoMessage()
func (*NotificationResponse) ProtoReflect ¶
func (x *NotificationResponse) ProtoReflect() protoreflect.Message
func (*NotificationResponse) Reset ¶
func (x *NotificationResponse) Reset()
func (*NotificationResponse) String ¶
func (x *NotificationResponse) String() string
type NotifierClient ¶
type NotifierClient interface {
OpenNotificationStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[NotificationRequest, NotificationResponse], error)
}
NotifierClient is the client API for Notifier 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.
The notifier service provides API to subscribe to ledger events and receive asynchronous notifications.
func NewNotifierClient ¶
func NewNotifierClient(cc grpc.ClientConnInterface) NotifierClient
type NotifierServer ¶
type NotifierServer interface {
OpenNotificationStream(grpc.BidiStreamingServer[NotificationRequest, NotificationResponse]) error
// contains filtered or unexported methods
}
NotifierServer is the server API for Notifier service. All implementations must embed UnimplementedNotifierServer for forward compatibility.
The notifier service provides API to subscribe to ledger events and receive asynchronous notifications.
type Notifier_OpenNotificationStreamClient ¶
type Notifier_OpenNotificationStreamClient = grpc.BidiStreamingClient[NotificationRequest, NotificationResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Notifier_OpenNotificationStreamServer ¶
type Notifier_OpenNotificationStreamServer = grpc.BidiStreamingServer[NotificationRequest, NotificationResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Query ¶
type Query struct {
View *View `protobuf:"bytes,1,opt,name=view,proto3,oneof" json:"view,omitempty"`
Namespaces []*QueryNamespace `protobuf:"bytes,2,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
// contains filtered or unexported fields
}
func (*Query) Descriptor
deprecated
func (*Query) GetNamespaces ¶
func (x *Query) GetNamespaces() []*QueryNamespace
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
type QueryNamespace ¶
type QueryNamespace struct {
NsId string `protobuf:"bytes,1,opt,name=ns_id,json=nsId,proto3" json:"ns_id,omitempty"`
Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
// contains filtered or unexported fields
}
func (*QueryNamespace) Descriptor
deprecated
func (*QueryNamespace) Descriptor() ([]byte, []int)
Deprecated: Use QueryNamespace.ProtoReflect.Descriptor instead.
func (*QueryNamespace) GetKeys ¶
func (x *QueryNamespace) GetKeys() [][]byte
func (*QueryNamespace) GetNsId ¶
func (x *QueryNamespace) GetNsId() string
func (*QueryNamespace) ProtoMessage ¶
func (*QueryNamespace) ProtoMessage()
func (*QueryNamespace) ProtoReflect ¶
func (x *QueryNamespace) ProtoReflect() protoreflect.Message
func (*QueryNamespace) Reset ¶
func (x *QueryNamespace) Reset()
func (*QueryNamespace) String ¶
func (x *QueryNamespace) String() string
type QueryServiceClient ¶
type QueryServiceClient interface {
GetRows(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Rows, error)
BeginView(ctx context.Context, in *ViewParameters, opts ...grpc.CallOption) (*View, error)
EndView(ctx context.Context, in *View, opts ...grpc.CallOption) (*emptypb.Empty, error)
GetNamespacePolicies(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*applicationpb.NamespacePolicies, error)
GetConfigTransaction(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*applicationpb.ConfigTransaction, error)
GetTransactionStatus(ctx context.Context, in *TxStatusQuery, opts ...grpc.CallOption) (*TxStatusResponse, error)
}
QueryServiceClient is the client API for QueryService 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 NewQueryServiceClient ¶
func NewQueryServiceClient(cc grpc.ClientConnInterface) QueryServiceClient
type QueryServiceServer ¶
type QueryServiceServer interface {
GetRows(context.Context, *Query) (*Rows, error)
BeginView(context.Context, *ViewParameters) (*View, error)
EndView(context.Context, *View) (*emptypb.Empty, error)
GetNamespacePolicies(context.Context, *emptypb.Empty) (*applicationpb.NamespacePolicies, error)
GetConfigTransaction(context.Context, *emptypb.Empty) (*applicationpb.ConfigTransaction, error)
GetTransactionStatus(context.Context, *TxStatusQuery) (*TxStatusResponse, error)
// contains filtered or unexported methods
}
QueryServiceServer is the server API for QueryService service. All implementations must embed UnimplementedQueryServiceServer for forward compatibility.
type Row ¶
type Row struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
Version uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
func (*Row) Descriptor
deprecated
func (*Row) GetVersion ¶
func (*Row) ProtoMessage ¶
func (*Row) ProtoMessage()
func (*Row) ProtoReflect ¶
func (x *Row) ProtoReflect() protoreflect.Message
type Rows ¶
type Rows struct {
Namespaces []*RowsNamespace `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
// contains filtered or unexported fields
}
func (*Rows) Descriptor
deprecated
func (*Rows) GetNamespaces ¶
func (x *Rows) GetNamespaces() []*RowsNamespace
func (*Rows) ProtoMessage ¶
func (*Rows) ProtoMessage()
func (*Rows) ProtoReflect ¶
func (x *Rows) ProtoReflect() protoreflect.Message
type RowsNamespace ¶
type RowsNamespace struct {
NsId string `protobuf:"bytes,1,opt,name=ns_id,json=nsId,proto3" json:"ns_id,omitempty"`
Rows []*Row `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
// contains filtered or unexported fields
}
func (*RowsNamespace) Descriptor
deprecated
func (*RowsNamespace) Descriptor() ([]byte, []int)
Deprecated: Use RowsNamespace.ProtoReflect.Descriptor instead.
func (*RowsNamespace) GetNsId ¶
func (x *RowsNamespace) GetNsId() string
func (*RowsNamespace) GetRows ¶
func (x *RowsNamespace) GetRows() []*Row
func (*RowsNamespace) ProtoMessage ¶
func (*RowsNamespace) ProtoMessage()
func (*RowsNamespace) ProtoReflect ¶
func (x *RowsNamespace) ProtoReflect() protoreflect.Message
func (*RowsNamespace) Reset ¶
func (x *RowsNamespace) Reset()
func (*RowsNamespace) String ¶
func (x *RowsNamespace) String() string
type Status ¶
type Status int32
Status represents the result of transaction validation. Except for STATUS_UNSPECIFIED, all statuses are recorded in the ledger. Some statuses are also stored in the state database which prevent resubmission of the same transaction ID.
const ( // Should never be persisted or reported. Status_STATUS_UNSPECIFIED Status = 0 // Default. The transaction has not been validated yet. // Stored in the state database. Prevents submitting a transaction with the same ID. Status_COMMITTED Status = 1 // Successfully committed and state updated. Status_ABORTED_SIGNATURE_INVALID Status = 2 // Signature is invalid according to the namespace policy. Status_ABORTED_MVCC_CONFLICT Status = 3 // Read-write set conflict. // Cannot be stored in the state database because the TX ID cannot be extracted, // or the TX ID entry is already occupied. Status_REJECTED_DUPLICATE_TX_ID Status = 100 // Transaction with the same ID has already been processed. Status_MALFORMED_BAD_ENVELOPE Status = 101 // Cannot unmarshal envelope. Status_MALFORMED_MISSING_TX_ID Status = 102 // Envelope is missing transaction ID. // Stored in the state database. Prevents submitting a transaction with the same ID. Status_MALFORMED_UNSUPPORTED_ENVELOPE_PAYLOAD Status = 103 // Unsupported envelope payload type. Status_MALFORMED_BAD_ENVELOPE_PAYLOAD Status = 104 // Cannot unmarshal envelope's payload. Status_MALFORMED_TX_ID_CONFLICT Status = 105 // Envelope's TX ID does not match the payload's TX ID. Status_MALFORMED_EMPTY_NAMESPACES Status = 106 // No namespaces provided. Status_MALFORMED_DUPLICATE_NAMESPACE Status = 107 // Duplicate namespace detected. Status_MALFORMED_NAMESPACE_ID_INVALID Status = 108 // Invalid namespace identifier. Status_MALFORMED_BLIND_WRITES_NOT_ALLOWED Status = 109 // Blind writes are not allowed in a namespace transaction. Status_MALFORMED_NO_WRITES Status = 110 // No write operations in the transaction. Status_MALFORMED_EMPTY_KEY Status = 111 // Unset key detected. Status_MALFORMED_DUPLICATE_KEY_IN_READ_WRITE_SET Status = 112 // Duplicate key in the read-write set. Status_MALFORMED_MISSING_SIGNATURE Status = 113 // Number of signatures does not match the number of namespaces. Status_MALFORMED_NAMESPACE_POLICY_INVALID Status = 114 // Invalid namespace policy. Status_MALFORMED_CONFIG_TX_INVALID Status = 115 // Invalid configuration transaction. )
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type TxIDsBatch ¶
type TxIDsBatch struct {
TxIds []string `protobuf:"bytes,1,rep,name=tx_ids,json=txIds,proto3" json:"tx_ids,omitempty"` // List of transaction IDs.
// contains filtered or unexported fields
}
A batch of TX IDs.
func (*TxIDsBatch) Descriptor
deprecated
func (*TxIDsBatch) Descriptor() ([]byte, []int)
Deprecated: Use TxIDsBatch.ProtoReflect.Descriptor instead.
func (*TxIDsBatch) GetTxIds ¶
func (x *TxIDsBatch) GetTxIds() []string
func (*TxIDsBatch) ProtoMessage ¶
func (*TxIDsBatch) ProtoMessage()
func (*TxIDsBatch) ProtoReflect ¶
func (x *TxIDsBatch) ProtoReflect() protoreflect.Message
func (*TxIDsBatch) Reset ¶
func (x *TxIDsBatch) Reset()
func (*TxIDsBatch) String ¶
func (x *TxIDsBatch) String() string
type TxRef ¶
type TxRef struct {
BlockNum uint64 `protobuf:"varint,1,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"` // The block number.
TxNum uint32 `protobuf:"varint,2,opt,name=tx_num,json=txNum,proto3" json:"tx_num,omitempty"` // Transaction number within the block
TxId string `protobuf:"bytes,3,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` // Transaction ID within the block.
// contains filtered or unexported fields
}
The TX reference with respect to the block generated by the orderer.
func (*TxRef) Descriptor
deprecated
func (*TxRef) GetBlockNum ¶
func (*TxRef) ProtoMessage ¶
func (*TxRef) ProtoMessage()
func (*TxRef) ProtoReflect ¶
func (x *TxRef) ProtoReflect() protoreflect.Message
type TxStatus ¶
type TxStatus struct {
Ref *TxRef `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=committerpb.Status" json:"status,omitempty"`
// contains filtered or unexported fields
}
The status of a TX.
func NewTxStatus ¶
NewTxStatus is a convenient method to create a TxStatus in a single line.
func NewTxStatusFromRef ¶
NewTxStatusFromRef is a convenient method to create a TxStatus from a TxRef in a single line.
func (*TxStatus) Descriptor
deprecated
func (*TxStatus) ProtoMessage ¶
func (*TxStatus) ProtoMessage()
func (*TxStatus) ProtoReflect ¶
func (x *TxStatus) ProtoReflect() protoreflect.Message
type TxStatusBatch ¶
type TxStatusBatch struct {
Status []*TxStatus `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
A batch of TXs' status.
func (*TxStatusBatch) Descriptor
deprecated
func (*TxStatusBatch) Descriptor() ([]byte, []int)
Deprecated: Use TxStatusBatch.ProtoReflect.Descriptor instead.
func (*TxStatusBatch) GetStatus ¶
func (x *TxStatusBatch) GetStatus() []*TxStatus
func (*TxStatusBatch) ProtoMessage ¶
func (*TxStatusBatch) ProtoMessage()
func (*TxStatusBatch) ProtoReflect ¶
func (x *TxStatusBatch) ProtoReflect() protoreflect.Message
func (*TxStatusBatch) Reset ¶
func (x *TxStatusBatch) Reset()
func (*TxStatusBatch) String ¶
func (x *TxStatusBatch) String() string
type TxStatusQuery ¶
type TxStatusQuery struct {
View *View `protobuf:"bytes,1,opt,name=view,proto3,oneof" json:"view,omitempty"`
TxIds []string `protobuf:"bytes,2,rep,name=tx_ids,json=txIds,proto3" json:"tx_ids,omitempty"` // List of transaction IDs.
// contains filtered or unexported fields
}
func (*TxStatusQuery) Descriptor
deprecated
func (*TxStatusQuery) Descriptor() ([]byte, []int)
Deprecated: Use TxStatusQuery.ProtoReflect.Descriptor instead.
func (*TxStatusQuery) GetTxIds ¶
func (x *TxStatusQuery) GetTxIds() []string
func (*TxStatusQuery) GetView ¶
func (x *TxStatusQuery) GetView() *View
func (*TxStatusQuery) ProtoMessage ¶
func (*TxStatusQuery) ProtoMessage()
func (*TxStatusQuery) ProtoReflect ¶
func (x *TxStatusQuery) ProtoReflect() protoreflect.Message
func (*TxStatusQuery) Reset ¶
func (x *TxStatusQuery) Reset()
func (*TxStatusQuery) String ¶
func (x *TxStatusQuery) String() string
type TxStatusResponse ¶
type TxStatusResponse struct {
Statuses []*TxStatus `protobuf:"bytes,1,rep,name=statuses,proto3" json:"statuses,omitempty"`
// contains filtered or unexported fields
}
func (*TxStatusResponse) Descriptor
deprecated
func (*TxStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use TxStatusResponse.ProtoReflect.Descriptor instead.
func (*TxStatusResponse) GetStatuses ¶
func (x *TxStatusResponse) GetStatuses() []*TxStatus
func (*TxStatusResponse) ProtoMessage ¶
func (*TxStatusResponse) ProtoMessage()
func (*TxStatusResponse) ProtoReflect ¶
func (x *TxStatusResponse) ProtoReflect() protoreflect.Message
func (*TxStatusResponse) Reset ¶
func (x *TxStatusResponse) Reset()
func (*TxStatusResponse) String ¶
func (x *TxStatusResponse) String() string
type UnimplementedNotifierServer ¶
type UnimplementedNotifierServer struct{}
UnimplementedNotifierServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedNotifierServer) OpenNotificationStream ¶
func (UnimplementedNotifierServer) OpenNotificationStream(grpc.BidiStreamingServer[NotificationRequest, NotificationResponse]) error
type UnimplementedQueryServiceServer ¶
type UnimplementedQueryServiceServer struct{}
UnimplementedQueryServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedQueryServiceServer) BeginView ¶
func (UnimplementedQueryServiceServer) BeginView(context.Context, *ViewParameters) (*View, error)
func (UnimplementedQueryServiceServer) GetConfigTransaction ¶
func (UnimplementedQueryServiceServer) GetConfigTransaction(context.Context, *emptypb.Empty) (*applicationpb.ConfigTransaction, error)
func (UnimplementedQueryServiceServer) GetNamespacePolicies ¶
func (UnimplementedQueryServiceServer) GetNamespacePolicies(context.Context, *emptypb.Empty) (*applicationpb.NamespacePolicies, error)
func (UnimplementedQueryServiceServer) GetTransactionStatus ¶
func (UnimplementedQueryServiceServer) GetTransactionStatus(context.Context, *TxStatusQuery) (*TxStatusResponse, error)
type UnsafeNotifierServer ¶
type UnsafeNotifierServer interface {
// contains filtered or unexported methods
}
UnsafeNotifierServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NotifierServer will result in compilation errors.
type UnsafeQueryServiceServer ¶
type UnsafeQueryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServiceServer will result in compilation errors.
type View ¶
type View struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*View) Descriptor
deprecated
func (*View) ProtoMessage ¶
func (*View) ProtoMessage()
func (*View) ProtoReflect ¶
func (x *View) ProtoReflect() protoreflect.Message
type ViewParameters ¶
type ViewParameters struct {
IsoLevel IsoLevel `protobuf:"varint,1,opt,name=iso_level,json=isoLevel,proto3,enum=committerpb.IsoLevel" json:"iso_level,omitempty"` // View's isolation level. Defaults to serializable.
NonDeferrable bool `protobuf:"varint,2,opt,name=non_deferrable,json=nonDeferrable,proto3" json:"non_deferrable,omitempty"` // Do not defer errors. Defaults deferrable.
TimeoutMilliseconds uint64 `protobuf:"varint,3,opt,name=timeout_milliseconds,json=timeoutMilliseconds,proto3" json:"timeout_milliseconds,omitempty"` // View's timeout. Zero => maximal value
// contains filtered or unexported fields
}
func (*ViewParameters) Descriptor
deprecated
func (*ViewParameters) Descriptor() ([]byte, []int)
Deprecated: Use ViewParameters.ProtoReflect.Descriptor instead.
func (*ViewParameters) GetIsoLevel ¶
func (x *ViewParameters) GetIsoLevel() IsoLevel
func (*ViewParameters) GetNonDeferrable ¶
func (x *ViewParameters) GetNonDeferrable() bool
func (*ViewParameters) GetTimeoutMilliseconds ¶
func (x *ViewParameters) GetTimeoutMilliseconds() uint64
func (*ViewParameters) ProtoMessage ¶
func (*ViewParameters) ProtoMessage()
func (*ViewParameters) ProtoReflect ¶
func (x *ViewParameters) ProtoReflect() protoreflect.Message
func (*ViewParameters) Reset ¶
func (x *ViewParameters) Reset()
func (*ViewParameters) String ¶
func (x *ViewParameters) String() string