metastorev1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	State_name = map[int32]string{
		0: "Follower",
		1: "Candidate",
		2: "Leader",
		3: "Shutdown",
	}
	State_value = map[string]int32{
		"Follower":  0,
		"Candidate": 1,
		"Leader":    2,
		"Shutdown":  3,
	}
)

Enum value maps for State.

View Source
var (
	Suffrage_name = map[int32]string{
		0: "Voter",
		1: "NonVoter",
		2: "Staging",
	}
	Suffrage_value = map[string]int32{
		"Voter":    0,
		"NonVoter": 1,
		"Staging":  2,
	}
)

Enum value maps for Suffrage.

View Source
var File_metastore_v1_metastore_proto protoreflect.FileDescriptor
View Source
var File_metastore_v1_operator_proto protoreflect.FileDescriptor
View Source
var MetastoreService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "metastore.v1.MetastoreService",
	HandlerType: (*MetastoreServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddBlock",
			Handler:    _MetastoreService_AddBlock_Handler,
		},
		{
			MethodName: "QueryMetadata",
			Handler:    _MetastoreService_QueryMetadata_Handler,
		},
		{
			MethodName: "ReadIndex",
			Handler:    _MetastoreService_ReadIndex_Handler,
		},
		{
			MethodName: "GetProfileStats",
			Handler:    _MetastoreService_GetProfileStats_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "metastore/v1/metastore.proto",
}

MetastoreService_ServiceDesc is the grpc.ServiceDesc for MetastoreService 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 OperatorService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "metastore.v1.OperatorService",
	HandlerType: (*OperatorServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Info",
			Handler:    _OperatorService_Info_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "metastore/v1/operator.proto",
}

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

Functions

func RegisterMetastoreServiceServer

func RegisterMetastoreServiceServer(s grpc.ServiceRegistrar, srv MetastoreServiceServer)

func RegisterOperatorServiceServer

func RegisterOperatorServiceServer(s grpc.ServiceRegistrar, srv OperatorServiceServer)

Types

type AddBlockRequest

type AddBlockRequest struct {
	Block *BlockMeta `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	// contains filtered or unexported fields
}

func (*AddBlockRequest) CloneMessageVT

func (m *AddBlockRequest) CloneMessageVT() proto.Message

func (*AddBlockRequest) CloneVT

func (m *AddBlockRequest) CloneVT() *AddBlockRequest

func (*AddBlockRequest) Descriptor deprecated

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

Deprecated: Use AddBlockRequest.ProtoReflect.Descriptor instead.

func (*AddBlockRequest) EqualMessageVT

func (this *AddBlockRequest) EqualMessageVT(thatMsg proto.Message) bool

func (*AddBlockRequest) EqualVT

func (this *AddBlockRequest) EqualVT(that *AddBlockRequest) bool

func (*AddBlockRequest) GetBlock

func (x *AddBlockRequest) GetBlock() *BlockMeta

func (*AddBlockRequest) MarshalToSizedBufferVT

func (m *AddBlockRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AddBlockRequest) MarshalToVT

func (m *AddBlockRequest) MarshalToVT(dAtA []byte) (int, error)

func (*AddBlockRequest) MarshalVT

func (m *AddBlockRequest) MarshalVT() (dAtA []byte, err error)

func (*AddBlockRequest) ProtoMessage

func (*AddBlockRequest) ProtoMessage()

func (*AddBlockRequest) ProtoReflect

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

func (*AddBlockRequest) Reset

func (x *AddBlockRequest) Reset()

func (*AddBlockRequest) SizeVT

func (m *AddBlockRequest) SizeVT() (n int)

func (*AddBlockRequest) String

func (x *AddBlockRequest) String() string

func (*AddBlockRequest) UnmarshalVT

func (m *AddBlockRequest) UnmarshalVT(dAtA []byte) error

type AddBlockResponse

type AddBlockResponse struct {
	// contains filtered or unexported fields
}

func (*AddBlockResponse) CloneMessageVT

func (m *AddBlockResponse) CloneMessageVT() proto.Message

func (*AddBlockResponse) CloneVT

func (m *AddBlockResponse) CloneVT() *AddBlockResponse

func (*AddBlockResponse) Descriptor deprecated

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

Deprecated: Use AddBlockResponse.ProtoReflect.Descriptor instead.

func (*AddBlockResponse) EqualMessageVT

func (this *AddBlockResponse) EqualMessageVT(thatMsg proto.Message) bool

func (*AddBlockResponse) EqualVT

func (this *AddBlockResponse) EqualVT(that *AddBlockResponse) bool

func (*AddBlockResponse) MarshalToSizedBufferVT

func (m *AddBlockResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AddBlockResponse) MarshalToVT

func (m *AddBlockResponse) MarshalToVT(dAtA []byte) (int, error)

func (*AddBlockResponse) MarshalVT

func (m *AddBlockResponse) MarshalVT() (dAtA []byte, err error)

func (*AddBlockResponse) ProtoMessage

func (*AddBlockResponse) ProtoMessage()

func (*AddBlockResponse) ProtoReflect

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

func (*AddBlockResponse) Reset

func (x *AddBlockResponse) Reset()

func (*AddBlockResponse) SizeVT

func (m *AddBlockResponse) SizeVT() (n int)

func (*AddBlockResponse) String

func (x *AddBlockResponse) String() string

func (*AddBlockResponse) UnmarshalVT

func (m *AddBlockResponse) UnmarshalVT(dAtA []byte) error

type BlockMeta

type BlockMeta struct {
	FormatVersion   uint64 `protobuf:"varint,1,opt,name=format_version,json=formatVersion,proto3" json:"format_version,omitempty"`
	Id              string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	MinTime         int64  `protobuf:"varint,3,opt,name=min_time,json=minTime,proto3" json:"min_time,omitempty"`
	MaxTime         int64  `protobuf:"varint,4,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"`
	Shard           uint32 `protobuf:"varint,5,opt,name=shard,proto3" json:"shard,omitempty"`
	CompactionLevel uint32 `protobuf:"varint,6,opt,name=compaction_level,json=compactionLevel,proto3" json:"compaction_level,omitempty"`
	// Optional. Empty if compaction level is 0.
	TenantId string     `protobuf:"bytes,7,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	Datasets []*Dataset `protobuf:"bytes,8,rep,name=datasets,proto3" json:"datasets,omitempty"`
	Size     uint64     `protobuf:"varint,9,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockMeta) CloneMessageVT

func (m *BlockMeta) CloneMessageVT() proto.Message

func (*BlockMeta) CloneVT

func (m *BlockMeta) CloneVT() *BlockMeta

func (*BlockMeta) Descriptor deprecated

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

Deprecated: Use BlockMeta.ProtoReflect.Descriptor instead.

func (*BlockMeta) EqualMessageVT

func (this *BlockMeta) EqualMessageVT(thatMsg proto.Message) bool

func (*BlockMeta) EqualVT

func (this *BlockMeta) EqualVT(that *BlockMeta) bool

func (*BlockMeta) GetCompactionLevel

func (x *BlockMeta) GetCompactionLevel() uint32

func (*BlockMeta) GetDatasets

func (x *BlockMeta) GetDatasets() []*Dataset

func (*BlockMeta) GetFormatVersion

func (x *BlockMeta) GetFormatVersion() uint64

func (*BlockMeta) GetId

func (x *BlockMeta) GetId() string

func (*BlockMeta) GetMaxTime

func (x *BlockMeta) GetMaxTime() int64

func (*BlockMeta) GetMinTime

func (x *BlockMeta) GetMinTime() int64

func (*BlockMeta) GetShard

func (x *BlockMeta) GetShard() uint32

func (*BlockMeta) GetSize

func (x *BlockMeta) GetSize() uint64

func (*BlockMeta) GetTenantId

func (x *BlockMeta) GetTenantId() string

func (*BlockMeta) MarshalToSizedBufferVT

func (m *BlockMeta) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*BlockMeta) MarshalToVT

func (m *BlockMeta) MarshalToVT(dAtA []byte) (int, error)

func (*BlockMeta) MarshalVT

func (m *BlockMeta) MarshalVT() (dAtA []byte, err error)

func (*BlockMeta) ProtoMessage

func (*BlockMeta) ProtoMessage()

func (*BlockMeta) ProtoReflect

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

func (*BlockMeta) Reset

func (x *BlockMeta) Reset()

func (*BlockMeta) SizeVT

func (m *BlockMeta) SizeVT() (n int)

func (*BlockMeta) String

func (x *BlockMeta) String() string

func (*BlockMeta) UnmarshalVT

func (m *BlockMeta) UnmarshalVT(dAtA []byte) error

type Dataset

type Dataset struct {
	Labels   []*v1.Labels `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty"`
	TenantId string       `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	Name     string       `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	MinTime  int64        `protobuf:"varint,3,opt,name=min_time,json=minTime,proto3" json:"min_time,omitempty"`
	MaxTime  int64        `protobuf:"varint,4,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"`
	// Table of contents lists data sections within the tenant
	// service region. The offsets are absolute.
	//
	// The interpretation of the table of contents is specific
	// to the metadata format version. By default, the sections are:
	//   - 0: profiles.parquet
	//   - 1: index.tsdb
	//   - 2: symbols.symdb
	TableOfContents []uint64 `protobuf:"varint,5,rep,packed,name=table_of_contents,json=tableOfContents,proto3" json:"table_of_contents,omitempty"`
	// Size of the section in bytes.
	Size uint64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"`
	// TODO: delete
	// Profile types present in the tenant service data.
	ProfileTypes []string `protobuf:"bytes,7,rep,name=profile_types,json=profileTypes,proto3" json:"profile_types,omitempty"`
	// contains filtered or unexported fields
}

func (*Dataset) CloneMessageVT

func (m *Dataset) CloneMessageVT() proto.Message

func (*Dataset) CloneVT

func (m *Dataset) CloneVT() *Dataset

func (*Dataset) Descriptor deprecated

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

Deprecated: Use Dataset.ProtoReflect.Descriptor instead.

func (*Dataset) EqualMessageVT

func (this *Dataset) EqualMessageVT(thatMsg proto.Message) bool

func (*Dataset) EqualVT

func (this *Dataset) EqualVT(that *Dataset) bool

func (*Dataset) GetLabels

func (x *Dataset) GetLabels() []*v1.Labels

func (*Dataset) GetMaxTime

func (x *Dataset) GetMaxTime() int64

func (*Dataset) GetMinTime

func (x *Dataset) GetMinTime() int64

func (*Dataset) GetName

func (x *Dataset) GetName() string

func (*Dataset) GetProfileTypes

func (x *Dataset) GetProfileTypes() []string

func (*Dataset) GetSize

func (x *Dataset) GetSize() uint64

func (*Dataset) GetTableOfContents

func (x *Dataset) GetTableOfContents() []uint64

func (*Dataset) GetTenantId

func (x *Dataset) GetTenantId() string

func (*Dataset) MarshalToSizedBufferVT

func (m *Dataset) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Dataset) MarshalToVT

func (m *Dataset) MarshalToVT(dAtA []byte) (int, error)

func (*Dataset) MarshalVT

func (m *Dataset) MarshalVT() (dAtA []byte, err error)

func (*Dataset) ProtoMessage

func (*Dataset) ProtoMessage()

func (*Dataset) ProtoReflect

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

func (*Dataset) Reset

func (x *Dataset) Reset()

func (*Dataset) SizeVT

func (m *Dataset) SizeVT() (n int)

func (*Dataset) String

func (x *Dataset) String() string

func (*Dataset) UnmarshalVT

func (m *Dataset) UnmarshalVT(dAtA []byte) error

type GetProfileStatsRequest

type GetProfileStatsRequest struct {
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProfileStatsRequest) CloneMessageVT

func (m *GetProfileStatsRequest) CloneMessageVT() proto.Message

func (*GetProfileStatsRequest) CloneVT

func (*GetProfileStatsRequest) Descriptor deprecated

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

Deprecated: Use GetProfileStatsRequest.ProtoReflect.Descriptor instead.

func (*GetProfileStatsRequest) EqualMessageVT

func (this *GetProfileStatsRequest) EqualMessageVT(thatMsg proto.Message) bool

func (*GetProfileStatsRequest) EqualVT

func (this *GetProfileStatsRequest) EqualVT(that *GetProfileStatsRequest) bool

func (*GetProfileStatsRequest) GetTenantId

func (x *GetProfileStatsRequest) GetTenantId() string

func (*GetProfileStatsRequest) MarshalToSizedBufferVT

func (m *GetProfileStatsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*GetProfileStatsRequest) MarshalToVT

func (m *GetProfileStatsRequest) MarshalToVT(dAtA []byte) (int, error)

func (*GetProfileStatsRequest) MarshalVT

func (m *GetProfileStatsRequest) MarshalVT() (dAtA []byte, err error)

func (*GetProfileStatsRequest) ProtoMessage

func (*GetProfileStatsRequest) ProtoMessage()

func (*GetProfileStatsRequest) ProtoReflect

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

func (*GetProfileStatsRequest) Reset

func (x *GetProfileStatsRequest) Reset()

func (*GetProfileStatsRequest) SizeVT

func (m *GetProfileStatsRequest) SizeVT() (n int)

func (*GetProfileStatsRequest) String

func (x *GetProfileStatsRequest) String() string

func (*GetProfileStatsRequest) UnmarshalVT

func (m *GetProfileStatsRequest) UnmarshalVT(dAtA []byte) error

type InfoRequest

type InfoRequest struct {
	// contains filtered or unexported fields
}

func (*InfoRequest) CloneMessageVT

func (m *InfoRequest) CloneMessageVT() proto.Message

func (*InfoRequest) CloneVT

func (m *InfoRequest) CloneVT() *InfoRequest

func (*InfoRequest) Descriptor deprecated

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

Deprecated: Use InfoRequest.ProtoReflect.Descriptor instead.

func (*InfoRequest) EqualMessageVT

func (this *InfoRequest) EqualMessageVT(thatMsg proto.Message) bool

func (*InfoRequest) EqualVT

func (this *InfoRequest) EqualVT(that *InfoRequest) bool

func (*InfoRequest) MarshalToSizedBufferVT

func (m *InfoRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*InfoRequest) MarshalToVT

func (m *InfoRequest) MarshalToVT(dAtA []byte) (int, error)

func (*InfoRequest) MarshalVT

func (m *InfoRequest) MarshalVT() (dAtA []byte, err error)

func (*InfoRequest) ProtoMessage

func (*InfoRequest) ProtoMessage()

func (*InfoRequest) ProtoReflect

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

func (*InfoRequest) Reset

func (x *InfoRequest) Reset()

func (*InfoRequest) SizeVT

func (m *InfoRequest) SizeVT() (n int)

func (*InfoRequest) String

func (x *InfoRequest) String() string

func (*InfoRequest) UnmarshalVT

func (m *InfoRequest) UnmarshalVT(dAtA []byte) error

type InfoResponse

type InfoResponse struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	State    State  `protobuf:"varint,2,opt,name=state,proto3,enum=metastore.v1.State" json:"state,omitempty"`
	LeaderId string `protobuf:"bytes,3,opt,name=leader_id,json=leaderId,proto3" json:"leader_id,omitempty"`
	// True if the state reported by this node matches the state the cluster
	// reports. For example, if this node claims to be a leader, but the rest of
	// the cluster disagrees, this value will be false.
	IsStateVerified bool `protobuf:"varint,4,opt,name=is_state_verified,json=isStateVerified,proto3" json:"is_state_verified,omitempty"`
	// Unix timestamp in milliseconds of when the leader last contacted this node.
	LastLeaderContact int64     `protobuf:"varint,5,opt,name=last_leader_contact,json=lastLeaderContact,proto3" json:"last_leader_contact,omitempty"`
	Term              uint64    `protobuf:"varint,6,opt,name=term,proto3" json:"term,omitempty"`
	Suffrage          Suffrage  `protobuf:"varint,7,opt,name=suffrage,proto3,enum=metastore.v1.Suffrage" json:"suffrage,omitempty"`
	Log               *Log      `protobuf:"bytes,8,opt,name=log,proto3" json:"log,omitempty"`
	Snapshot          *Snapshot `protobuf:"bytes,9,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
	Protocol          *Protocol `protobuf:"bytes,10,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Peers             []*Peer   `protobuf:"bytes,11,rep,name=peers,proto3" json:"peers,omitempty"`
	// contains filtered or unexported fields
}

func (*InfoResponse) CloneMessageVT

func (m *InfoResponse) CloneMessageVT() proto.Message

func (*InfoResponse) CloneVT

func (m *InfoResponse) CloneVT() *InfoResponse

func (*InfoResponse) Descriptor deprecated

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

Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead.

func (*InfoResponse) EqualMessageVT

func (this *InfoResponse) EqualMessageVT(thatMsg proto.Message) bool

func (*InfoResponse) EqualVT

func (this *InfoResponse) EqualVT(that *InfoResponse) bool

func (*InfoResponse) GetId

func (x *InfoResponse) GetId() string

func (*InfoResponse) GetIsStateVerified

func (x *InfoResponse) GetIsStateVerified() bool

func (*InfoResponse) GetLastLeaderContact

func (x *InfoResponse) GetLastLeaderContact() int64

func (*InfoResponse) GetLeaderId

func (x *InfoResponse) GetLeaderId() string

func (*InfoResponse) GetLog

func (x *InfoResponse) GetLog() *Log

func (*InfoResponse) GetPeers

func (x *InfoResponse) GetPeers() []*Peer

func (*InfoResponse) GetProtocol

func (x *InfoResponse) GetProtocol() *Protocol

func (*InfoResponse) GetSnapshot

func (x *InfoResponse) GetSnapshot() *Snapshot

func (*InfoResponse) GetState

func (x *InfoResponse) GetState() State

func (*InfoResponse) GetSuffrage

func (x *InfoResponse) GetSuffrage() Suffrage

func (*InfoResponse) GetTerm

func (x *InfoResponse) GetTerm() uint64

func (*InfoResponse) MarshalToSizedBufferVT

func (m *InfoResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*InfoResponse) MarshalToVT

func (m *InfoResponse) MarshalToVT(dAtA []byte) (int, error)

func (*InfoResponse) MarshalVT

func (m *InfoResponse) MarshalVT() (dAtA []byte, err error)

func (*InfoResponse) ProtoMessage

func (*InfoResponse) ProtoMessage()

func (*InfoResponse) ProtoReflect

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

func (*InfoResponse) Reset

func (x *InfoResponse) Reset()

func (*InfoResponse) SizeVT

func (m *InfoResponse) SizeVT() (n int)

func (*InfoResponse) String

func (x *InfoResponse) String() string

func (*InfoResponse) UnmarshalVT

func (m *InfoResponse) UnmarshalVT(dAtA []byte) error

type Log

type Log struct {
	CommitIndex      uint64 `protobuf:"varint,1,opt,name=commit_index,json=commitIndex,proto3" json:"commit_index,omitempty"`
	AppliedIndex     uint64 `protobuf:"varint,2,opt,name=applied_index,json=appliedIndex,proto3" json:"applied_index,omitempty"`
	LastIndex        uint64 `protobuf:"varint,3,opt,name=last_index,json=lastIndex,proto3" json:"last_index,omitempty"`
	FsmPendingLength uint64 `protobuf:"varint,4,opt,name=fsm_pending_length,json=fsmPendingLength,proto3" json:"fsm_pending_length,omitempty"`
	// contains filtered or unexported fields
}

func (*Log) CloneMessageVT

func (m *Log) CloneMessageVT() proto.Message

func (*Log) CloneVT

func (m *Log) CloneVT() *Log

func (*Log) Descriptor deprecated

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

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) EqualMessageVT

func (this *Log) EqualMessageVT(thatMsg proto.Message) bool

func (*Log) EqualVT

func (this *Log) EqualVT(that *Log) bool

func (*Log) GetAppliedIndex

func (x *Log) GetAppliedIndex() uint64

func (*Log) GetCommitIndex

func (x *Log) GetCommitIndex() uint64

func (*Log) GetFsmPendingLength

func (x *Log) GetFsmPendingLength() uint64

func (*Log) GetLastIndex

func (x *Log) GetLastIndex() uint64

func (*Log) MarshalToSizedBufferVT

func (m *Log) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Log) MarshalToVT

func (m *Log) MarshalToVT(dAtA []byte) (int, error)

func (*Log) MarshalVT

func (m *Log) MarshalVT() (dAtA []byte, err error)

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

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

func (*Log) Reset

func (x *Log) Reset()

func (*Log) SizeVT

func (m *Log) SizeVT() (n int)

func (*Log) String

func (x *Log) String() string

func (*Log) UnmarshalVT

func (m *Log) UnmarshalVT(dAtA []byte) error

type MetastoreServiceClient

type MetastoreServiceClient interface {
	AddBlock(ctx context.Context, in *AddBlockRequest, opts ...grpc.CallOption) (*AddBlockResponse, error)
	QueryMetadata(ctx context.Context, in *QueryMetadataRequest, opts ...grpc.CallOption) (*QueryMetadataResponse, error)
	ReadIndex(ctx context.Context, in *ReadIndexRequest, opts ...grpc.CallOption) (*ReadIndexResponse, error)
	GetProfileStats(ctx context.Context, in *GetProfileStatsRequest, opts ...grpc.CallOption) (*v1.GetProfileStatsResponse, error)
}

MetastoreServiceClient is the client API for MetastoreService 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.

type MetastoreServiceServer

type MetastoreServiceServer interface {
	AddBlock(context.Context, *AddBlockRequest) (*AddBlockResponse, error)
	QueryMetadata(context.Context, *QueryMetadataRequest) (*QueryMetadataResponse, error)
	ReadIndex(context.Context, *ReadIndexRequest) (*ReadIndexResponse, error)
	GetProfileStats(context.Context, *GetProfileStatsRequest) (*v1.GetProfileStatsResponse, error)
	// contains filtered or unexported methods
}

MetastoreServiceServer is the server API for MetastoreService service. All implementations must embed UnimplementedMetastoreServiceServer for forward compatibility

type OperatorServiceClient

type OperatorServiceClient interface {
	Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error)
}

OperatorServiceClient is the client API for OperatorService 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.

type OperatorServiceServer

type OperatorServiceServer interface {
	Info(context.Context, *InfoRequest) (*InfoResponse, error)
	// contains filtered or unexported methods
}

OperatorServiceServer is the server API for OperatorService service. All implementations must embed UnimplementedOperatorServiceServer for forward compatibility

type Peer

type Peer struct {
	Id       string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Address  string   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Suffrage Suffrage `protobuf:"varint,3,opt,name=suffrage,proto3,enum=metastore.v1.Suffrage" json:"suffrage,omitempty"`
	// contains filtered or unexported fields
}

func (*Peer) CloneMessageVT

func (m *Peer) CloneMessageVT() proto.Message

func (*Peer) CloneVT

func (m *Peer) CloneVT() *Peer

func (*Peer) Descriptor deprecated

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

Deprecated: Use Peer.ProtoReflect.Descriptor instead.

func (*Peer) EqualMessageVT

func (this *Peer) EqualMessageVT(thatMsg proto.Message) bool

func (*Peer) EqualVT

func (this *Peer) EqualVT(that *Peer) bool

func (*Peer) GetAddress

func (x *Peer) GetAddress() string

func (*Peer) GetId

func (x *Peer) GetId() string

func (*Peer) GetSuffrage

func (x *Peer) GetSuffrage() Suffrage

func (*Peer) MarshalToSizedBufferVT

func (m *Peer) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Peer) MarshalToVT

func (m *Peer) MarshalToVT(dAtA []byte) (int, error)

func (*Peer) MarshalVT

func (m *Peer) MarshalVT() (dAtA []byte, err error)

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) ProtoReflect

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

func (*Peer) Reset

func (x *Peer) Reset()

func (*Peer) SizeVT

func (m *Peer) SizeVT() (n int)

func (*Peer) String

func (x *Peer) String() string

func (*Peer) UnmarshalVT

func (m *Peer) UnmarshalVT(dAtA []byte) error

type Protocol

type Protocol struct {
	Version            uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	MinVersion         uint64 `protobuf:"varint,2,opt,name=min_version,json=minVersion,proto3" json:"min_version,omitempty"`
	MaxVersion         uint64 `protobuf:"varint,3,opt,name=max_version,json=maxVersion,proto3" json:"max_version,omitempty"`
	MinSnapshotVersion uint64 `protobuf:"varint,4,opt,name=min_snapshot_version,json=minSnapshotVersion,proto3" json:"min_snapshot_version,omitempty"`
	MaxSnapshotVersion uint64 `protobuf:"varint,5,opt,name=max_snapshot_version,json=maxSnapshotVersion,proto3" json:"max_snapshot_version,omitempty"`
	// contains filtered or unexported fields
}

func (*Protocol) CloneMessageVT

func (m *Protocol) CloneMessageVT() proto.Message

func (*Protocol) CloneVT

func (m *Protocol) CloneVT() *Protocol

func (*Protocol) Descriptor deprecated

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

Deprecated: Use Protocol.ProtoReflect.Descriptor instead.

func (*Protocol) EqualMessageVT

func (this *Protocol) EqualMessageVT(thatMsg proto.Message) bool

func (*Protocol) EqualVT

func (this *Protocol) EqualVT(that *Protocol) bool

func (*Protocol) GetMaxSnapshotVersion

func (x *Protocol) GetMaxSnapshotVersion() uint64

func (*Protocol) GetMaxVersion

func (x *Protocol) GetMaxVersion() uint64

func (*Protocol) GetMinSnapshotVersion

func (x *Protocol) GetMinSnapshotVersion() uint64

func (*Protocol) GetMinVersion

func (x *Protocol) GetMinVersion() uint64

func (*Protocol) GetVersion

func (x *Protocol) GetVersion() uint64

func (*Protocol) MarshalToSizedBufferVT

func (m *Protocol) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Protocol) MarshalToVT

func (m *Protocol) MarshalToVT(dAtA []byte) (int, error)

func (*Protocol) MarshalVT

func (m *Protocol) MarshalVT() (dAtA []byte, err error)

func (*Protocol) ProtoMessage

func (*Protocol) ProtoMessage()

func (*Protocol) ProtoReflect

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

func (*Protocol) Reset

func (x *Protocol) Reset()

func (*Protocol) SizeVT

func (m *Protocol) SizeVT() (n int)

func (*Protocol) String

func (x *Protocol) String() string

func (*Protocol) UnmarshalVT

func (m *Protocol) UnmarshalVT(dAtA []byte) error

type QueryMetadataRequest

type QueryMetadataRequest struct {
	TenantId  []string `protobuf:"bytes,1,rep,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	StartTime int64    `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	EndTime   int64    `protobuf:"varint,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	Query     string   `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryMetadataRequest) CloneMessageVT

func (m *QueryMetadataRequest) CloneMessageVT() proto.Message

func (*QueryMetadataRequest) CloneVT

func (*QueryMetadataRequest) Descriptor deprecated

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

Deprecated: Use QueryMetadataRequest.ProtoReflect.Descriptor instead.

func (*QueryMetadataRequest) EqualMessageVT

func (this *QueryMetadataRequest) EqualMessageVT(thatMsg proto.Message) bool

func (*QueryMetadataRequest) EqualVT

func (this *QueryMetadataRequest) EqualVT(that *QueryMetadataRequest) bool

func (*QueryMetadataRequest) GetEndTime

func (x *QueryMetadataRequest) GetEndTime() int64

func (*QueryMetadataRequest) GetQuery

func (x *QueryMetadataRequest) GetQuery() string

func (*QueryMetadataRequest) GetStartTime

func (x *QueryMetadataRequest) GetStartTime() int64

func (*QueryMetadataRequest) GetTenantId

func (x *QueryMetadataRequest) GetTenantId() []string

func (*QueryMetadataRequest) MarshalToSizedBufferVT

func (m *QueryMetadataRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*QueryMetadataRequest) MarshalToVT

func (m *QueryMetadataRequest) MarshalToVT(dAtA []byte) (int, error)

func (*QueryMetadataRequest) MarshalVT

func (m *QueryMetadataRequest) MarshalVT() (dAtA []byte, err error)

func (*QueryMetadataRequest) ProtoMessage

func (*QueryMetadataRequest) ProtoMessage()

func (*QueryMetadataRequest) ProtoReflect

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

func (*QueryMetadataRequest) Reset

func (x *QueryMetadataRequest) Reset()

func (*QueryMetadataRequest) SizeVT

func (m *QueryMetadataRequest) SizeVT() (n int)

func (*QueryMetadataRequest) String

func (x *QueryMetadataRequest) String() string

func (*QueryMetadataRequest) UnmarshalVT

func (m *QueryMetadataRequest) UnmarshalVT(dAtA []byte) error

type QueryMetadataResponse

type QueryMetadataResponse struct {
	Blocks []*BlockMeta `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryMetadataResponse) CloneMessageVT

func (m *QueryMetadataResponse) CloneMessageVT() proto.Message

func (*QueryMetadataResponse) CloneVT

func (*QueryMetadataResponse) Descriptor deprecated

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

Deprecated: Use QueryMetadataResponse.ProtoReflect.Descriptor instead.

func (*QueryMetadataResponse) EqualMessageVT

func (this *QueryMetadataResponse) EqualMessageVT(thatMsg proto.Message) bool

func (*QueryMetadataResponse) EqualVT

func (this *QueryMetadataResponse) EqualVT(that *QueryMetadataResponse) bool

func (*QueryMetadataResponse) GetBlocks

func (x *QueryMetadataResponse) GetBlocks() []*BlockMeta

func (*QueryMetadataResponse) MarshalToSizedBufferVT

func (m *QueryMetadataResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*QueryMetadataResponse) MarshalToVT

func (m *QueryMetadataResponse) MarshalToVT(dAtA []byte) (int, error)

func (*QueryMetadataResponse) MarshalVT

func (m *QueryMetadataResponse) MarshalVT() (dAtA []byte, err error)

func (*QueryMetadataResponse) ProtoMessage

func (*QueryMetadataResponse) ProtoMessage()

func (*QueryMetadataResponse) ProtoReflect

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

func (*QueryMetadataResponse) Reset

func (x *QueryMetadataResponse) Reset()

func (*QueryMetadataResponse) SizeVT

func (m *QueryMetadataResponse) SizeVT() (n int)

func (*QueryMetadataResponse) String

func (x *QueryMetadataResponse) String() string

func (*QueryMetadataResponse) UnmarshalVT

func (m *QueryMetadataResponse) UnmarshalVT(dAtA []byte) error

type ReadIndexRequest

type ReadIndexRequest struct {
	DebugRequestId string `protobuf:"bytes,1,opt,name=debug_request_id,json=debugRequestId,proto3" json:"debug_request_id,omitempty"` // for debug logging, // todo delete
	// contains filtered or unexported fields
}

func (*ReadIndexRequest) CloneMessageVT

func (m *ReadIndexRequest) CloneMessageVT() proto.Message

func (*ReadIndexRequest) CloneVT

func (m *ReadIndexRequest) CloneVT() *ReadIndexRequest

func (*ReadIndexRequest) Descriptor deprecated

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

Deprecated: Use ReadIndexRequest.ProtoReflect.Descriptor instead.

func (*ReadIndexRequest) EqualMessageVT

func (this *ReadIndexRequest) EqualMessageVT(thatMsg proto.Message) bool

func (*ReadIndexRequest) EqualVT

func (this *ReadIndexRequest) EqualVT(that *ReadIndexRequest) bool

func (*ReadIndexRequest) GetDebugRequestId

func (x *ReadIndexRequest) GetDebugRequestId() string

func (*ReadIndexRequest) MarshalToSizedBufferVT

func (m *ReadIndexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ReadIndexRequest) MarshalToVT

func (m *ReadIndexRequest) MarshalToVT(dAtA []byte) (int, error)

func (*ReadIndexRequest) MarshalVT

func (m *ReadIndexRequest) MarshalVT() (dAtA []byte, err error)

func (*ReadIndexRequest) ProtoMessage

func (*ReadIndexRequest) ProtoMessage()

func (*ReadIndexRequest) ProtoReflect

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

func (*ReadIndexRequest) Reset

func (x *ReadIndexRequest) Reset()

func (*ReadIndexRequest) SizeVT

func (m *ReadIndexRequest) SizeVT() (n int)

func (*ReadIndexRequest) String

func (x *ReadIndexRequest) String() string

func (*ReadIndexRequest) UnmarshalVT

func (m *ReadIndexRequest) UnmarshalVT(dAtA []byte) error

type ReadIndexResponse

type ReadIndexResponse struct {
	ReadIndex uint64 `protobuf:"varint,1,opt,name=read_index,json=readIndex,proto3" json:"read_index,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadIndexResponse) CloneMessageVT

func (m *ReadIndexResponse) CloneMessageVT() proto.Message

func (*ReadIndexResponse) CloneVT

func (m *ReadIndexResponse) CloneVT() *ReadIndexResponse

func (*ReadIndexResponse) Descriptor deprecated

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

Deprecated: Use ReadIndexResponse.ProtoReflect.Descriptor instead.

func (*ReadIndexResponse) EqualMessageVT

func (this *ReadIndexResponse) EqualMessageVT(thatMsg proto.Message) bool

func (*ReadIndexResponse) EqualVT

func (this *ReadIndexResponse) EqualVT(that *ReadIndexResponse) bool

func (*ReadIndexResponse) GetReadIndex

func (x *ReadIndexResponse) GetReadIndex() uint64

func (*ReadIndexResponse) MarshalToSizedBufferVT

func (m *ReadIndexResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ReadIndexResponse) MarshalToVT

func (m *ReadIndexResponse) MarshalToVT(dAtA []byte) (int, error)

func (*ReadIndexResponse) MarshalVT

func (m *ReadIndexResponse) MarshalVT() (dAtA []byte, err error)

func (*ReadIndexResponse) ProtoMessage

func (*ReadIndexResponse) ProtoMessage()

func (*ReadIndexResponse) ProtoReflect

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

func (*ReadIndexResponse) Reset

func (x *ReadIndexResponse) Reset()

func (*ReadIndexResponse) SizeVT

func (m *ReadIndexResponse) SizeVT() (n int)

func (*ReadIndexResponse) String

func (x *ReadIndexResponse) String() string

func (*ReadIndexResponse) UnmarshalVT

func (m *ReadIndexResponse) UnmarshalVT(dAtA []byte) error

type Snapshot

type Snapshot struct {
	LastIndex uint64 `protobuf:"varint,1,opt,name=last_index,json=lastIndex,proto3" json:"last_index,omitempty"`
	LastTerm  uint64 `protobuf:"varint,2,opt,name=last_term,json=lastTerm,proto3" json:"last_term,omitempty"`
	// contains filtered or unexported fields
}

func (*Snapshot) CloneMessageVT

func (m *Snapshot) CloneMessageVT() proto.Message

func (*Snapshot) CloneVT

func (m *Snapshot) CloneVT() *Snapshot

func (*Snapshot) Descriptor deprecated

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

Deprecated: Use Snapshot.ProtoReflect.Descriptor instead.

func (*Snapshot) EqualMessageVT

func (this *Snapshot) EqualMessageVT(thatMsg proto.Message) bool

func (*Snapshot) EqualVT

func (this *Snapshot) EqualVT(that *Snapshot) bool

func (*Snapshot) GetLastIndex

func (x *Snapshot) GetLastIndex() uint64

func (*Snapshot) GetLastTerm

func (x *Snapshot) GetLastTerm() uint64

func (*Snapshot) MarshalToSizedBufferVT

func (m *Snapshot) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Snapshot) MarshalToVT

func (m *Snapshot) MarshalToVT(dAtA []byte) (int, error)

func (*Snapshot) MarshalVT

func (m *Snapshot) MarshalVT() (dAtA []byte, err error)

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) ProtoReflect

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

func (*Snapshot) Reset

func (x *Snapshot) Reset()

func (*Snapshot) SizeVT

func (m *Snapshot) SizeVT() (n int)

func (*Snapshot) String

func (x *Snapshot) String() string

func (*Snapshot) UnmarshalVT

func (m *Snapshot) UnmarshalVT(dAtA []byte) error

type State

type State int32

State values are chosen to match the Hashicorp Raft library states. See: https://github.com/hashicorp/raft/blob/42d34464b2d203e389e11ed6d43db698792c0604/state.go#L15-L27.

const (
	State_Follower  State = 0
	State_Candidate State = 1
	State_Leader    State = 2
	State_Shutdown  State = 3
)

func (State) Descriptor

func (State) Descriptor() protoreflect.EnumDescriptor

func (State) Enum

func (x State) Enum() *State

func (State) EnumDescriptor deprecated

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

Deprecated: Use State.Descriptor instead.

func (State) Number

func (x State) Number() protoreflect.EnumNumber

func (State) String

func (x State) String() string

func (State) Type

func (State) Type() protoreflect.EnumType

type Suffrage

type Suffrage int32

Suffrage values are chosen to match the Hashicorp Raft library suffrage values. See: https://github.com/hashicorp/raft/blob/42d34464b2d203e389e11ed6d43db698792c0604/configuration.go#L12-L24.

const (
	Suffrage_Voter    Suffrage = 0
	Suffrage_NonVoter Suffrage = 1
	Suffrage_Staging  Suffrage = 2
)

func (Suffrage) Descriptor

func (Suffrage) Descriptor() protoreflect.EnumDescriptor

func (Suffrage) Enum

func (x Suffrage) Enum() *Suffrage

func (Suffrage) EnumDescriptor deprecated

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

Deprecated: Use Suffrage.Descriptor instead.

func (Suffrage) Number

func (x Suffrage) Number() protoreflect.EnumNumber

func (Suffrage) String

func (x Suffrage) String() string

func (Suffrage) Type

type UnimplementedMetastoreServiceServer

type UnimplementedMetastoreServiceServer struct {
}

UnimplementedMetastoreServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMetastoreServiceServer) AddBlock

func (UnimplementedMetastoreServiceServer) GetProfileStats

func (UnimplementedMetastoreServiceServer) QueryMetadata

func (UnimplementedMetastoreServiceServer) ReadIndex

type UnimplementedOperatorServiceServer

type UnimplementedOperatorServiceServer struct {
}

UnimplementedOperatorServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOperatorServiceServer) Info

type UnsafeMetastoreServiceServer

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

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

type UnsafeOperatorServiceServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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