metadata

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMetadata        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMetadata          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMetadata = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type DNShard

type DNShard struct {
	// DNShard extends DNShardRecord
	DNShardRecord `protobuf:"bytes,1,opt,name=DNShardRecord,proto3,embedded=DNShardRecord" json:"DNShardRecord"`
	// ReplicaID only one replica for one DN. The ReplicaID is specified at
	// the time the DN is created. DN restart ReplicaID will not change, when
	// a DN is migrated to another node, the ReplicaID will be reset.
	ReplicaID uint64 `protobuf:"varint,2,opt,name=ReplicaID,proto3" json:"ReplicaID,omitempty"`
	// Address is DN's external service address.
	Address              string   `protobuf:"bytes,3,opt,name=Address,proto3" json:"Address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DNShard

func (DNShard) DebugString

func (m DNShard) DebugString() string

DebugString returns debug string

func (*DNShard) Descriptor

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

func (*DNShard) GetAddress

func (m *DNShard) GetAddress() string

func (*DNShard) GetReplicaID

func (m *DNShard) GetReplicaID() uint64

func (DNShard) IsEmpty

func (m DNShard) IsEmpty() bool

IsEmpty return true if is a empty DNShard

func (*DNShard) Marshal

func (m *DNShard) Marshal() (dAtA []byte, err error)

func (*DNShard) MarshalTo

func (m *DNShard) MarshalTo(dAtA []byte) (int, error)

func (*DNShard) MarshalToSizedBuffer

func (m *DNShard) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DNShard) ProtoMessage

func (*DNShard) ProtoMessage()

func (*DNShard) Reset

func (m *DNShard) Reset()

func (*DNShard) Size

func (m *DNShard) Size() (n int)

func (*DNShard) String

func (m *DNShard) String() string

func (*DNShard) Unmarshal

func (m *DNShard) Unmarshal(dAtA []byte) error

func (*DNShard) XXX_DiscardUnknown

func (m *DNShard) XXX_DiscardUnknown()

func (*DNShard) XXX_Marshal

func (m *DNShard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DNShard) XXX_Merge

func (m *DNShard) XXX_Merge(src proto.Message)

func (*DNShard) XXX_Size

func (m *DNShard) XXX_Size() int

func (*DNShard) XXX_Unmarshal

func (m *DNShard) XXX_Unmarshal(b []byte) error

type DNShardRecord

type DNShardRecord struct {
	// ShardID the id of the DN shard.
	ShardID uint64 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"ShardID,omitempty"`
	// LogShardID a DN corresponds to a unique Shard of LogService.
	LogShardID           uint64   `protobuf:"varint,2,opt,name=LogShardID,proto3" json:"LogShardID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DNShardRecord is DN shard metadata describing what is a DN shard. It is internally used by HAKeeper to maintain how many DNs available in the system.

func (*DNShardRecord) Descriptor

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

func (*DNShardRecord) GetLogShardID

func (m *DNShardRecord) GetLogShardID() uint64

func (*DNShardRecord) GetShardID

func (m *DNShardRecord) GetShardID() uint64

func (*DNShardRecord) Marshal

func (m *DNShardRecord) Marshal() (dAtA []byte, err error)

func (*DNShardRecord) MarshalTo

func (m *DNShardRecord) MarshalTo(dAtA []byte) (int, error)

func (*DNShardRecord) MarshalToSizedBuffer

func (m *DNShardRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DNShardRecord) ProtoMessage

func (*DNShardRecord) ProtoMessage()

func (*DNShardRecord) Reset

func (m *DNShardRecord) Reset()

func (*DNShardRecord) Size

func (m *DNShardRecord) Size() (n int)

func (*DNShardRecord) String

func (m *DNShardRecord) String() string

func (*DNShardRecord) Unmarshal

func (m *DNShardRecord) Unmarshal(dAtA []byte) error

func (*DNShardRecord) XXX_DiscardUnknown

func (m *DNShardRecord) XXX_DiscardUnknown()

func (*DNShardRecord) XXX_Marshal

func (m *DNShardRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DNShardRecord) XXX_Merge

func (m *DNShardRecord) XXX_Merge(src proto.Message)

func (*DNShardRecord) XXX_Size

func (m *DNShardRecord) XXX_Size() int

func (*DNShardRecord) XXX_Unmarshal

func (m *DNShardRecord) XXX_Unmarshal(b []byte) error

type LogShardRecord

type LogShardRecord struct {
	// ShardID is the id of the Log Shard.
	ShardID uint64 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"ShardID,omitempty"`
	// NumberOfReplicas is the number of replicas in the shard.
	NumberOfReplicas uint64 `protobuf:"varint,2,opt,name=NumberOfReplicas,proto3" json:"NumberOfReplicas,omitempty"`
	// Name is the human readable name of the shard given by the DN.
	Name                 string   `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

LogShardRecord is Log Shard Metadata describing what is a Log shard. It is internally used by the HAKeeper to maintain how many Log shards are available in the system.

func (*LogShardRecord) Descriptor

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

func (*LogShardRecord) GetName

func (m *LogShardRecord) GetName() string

func (*LogShardRecord) GetNumberOfReplicas

func (m *LogShardRecord) GetNumberOfReplicas() uint64

func (*LogShardRecord) GetShardID

func (m *LogShardRecord) GetShardID() uint64

func (*LogShardRecord) Marshal

func (m *LogShardRecord) Marshal() (dAtA []byte, err error)

func (*LogShardRecord) MarshalTo

func (m *LogShardRecord) MarshalTo(dAtA []byte) (int, error)

func (*LogShardRecord) MarshalToSizedBuffer

func (m *LogShardRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LogShardRecord) ProtoMessage

func (*LogShardRecord) ProtoMessage()

func (*LogShardRecord) Reset

func (m *LogShardRecord) Reset()

func (*LogShardRecord) Size

func (m *LogShardRecord) Size() (n int)

func (*LogShardRecord) String

func (m *LogShardRecord) String() string

func (*LogShardRecord) Unmarshal

func (m *LogShardRecord) Unmarshal(dAtA []byte) error

func (*LogShardRecord) XXX_DiscardUnknown

func (m *LogShardRecord) XXX_DiscardUnknown()

func (*LogShardRecord) XXX_Marshal

func (m *LogShardRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LogShardRecord) XXX_Merge

func (m *LogShardRecord) XXX_Merge(src proto.Message)

func (*LogShardRecord) XXX_Size

func (m *LogShardRecord) XXX_Size() int

func (*LogShardRecord) XXX_Unmarshal

func (m *LogShardRecord) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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