Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
server/proto/internal.proto
It has these top-level messages:
ServerState RaftLog CreatePartitionOp ShrinkISROp ExpandISROp ReportLeaderOp ChangeLeaderOp Partition RaftJoinRequest RaftJoinResponse MetadataSnapshot ReplicationRequest LeaderEpochOffsetRequest LeaderEpochOffsetResponse PropagatedRequest Error PropagatedResponse ServerInfoRequest ServerInfoResponse PartitionStatusRequest PartitionStatusResponse PartitionNotification
Index ¶
- Variables
- func MarshalAck(ack *client.Ack) ([]byte, error)
- func MarshalLeaderEpochOffsetRequest(req *LeaderEpochOffsetRequest) ([]byte, error)
- func MarshalLeaderEpochOffsetResponse(req *LeaderEpochOffsetResponse) ([]byte, error)
- func MarshalPartitionNotification(req *PartitionNotification) ([]byte, error)
- func MarshalPartitionStatusRequest(req *PartitionStatusRequest) ([]byte, error)
- func MarshalPartitionStatusResponse(resp *PartitionStatusResponse) ([]byte, error)
- func MarshalPropagatedRequest(req *PropagatedRequest) ([]byte, error)
- func MarshalPropagatedResponse(req *PropagatedResponse) ([]byte, error)
- func MarshalPublish(msg *client.Message) ([]byte, error)
- func MarshalRaftJoinRequest(req *RaftJoinRequest) ([]byte, error)
- func MarshalRaftJoinResponse(req *RaftJoinResponse) ([]byte, error)
- func MarshalReplicationRequest(req *ReplicationRequest) ([]byte, error)
- func MarshalServerInfoRequest(req *ServerInfoRequest) ([]byte, error)
- func MarshalServerInfoResponse(req *ServerInfoResponse) ([]byte, error)
- func UnmarshalAck(data []byte) (*client.Ack, error)
- func UnmarshalPublish(data []byte) (*client.Message, error)
- func UnmarshalReplicationResponse(data []byte) (uint64, int64, []byte, error)
- func WriteReplicationResponseHeader(buf *bytes.Buffer) int
- type ChangeLeaderOp
- func (*ChangeLeaderOp) Descriptor() ([]byte, []int)
- func (m *ChangeLeaderOp) GetLeader() string
- func (m *ChangeLeaderOp) GetPartition() int32
- func (m *ChangeLeaderOp) GetStream() string
- func (m *ChangeLeaderOp) Marshal() (dAtA []byte, err error)
- func (m *ChangeLeaderOp) MarshalTo(dAtA []byte) (int, error)
- func (*ChangeLeaderOp) ProtoMessage()
- func (m *ChangeLeaderOp) Reset()
- func (m *ChangeLeaderOp) Size() (n int)
- func (m *ChangeLeaderOp) String() string
- func (m *ChangeLeaderOp) Unmarshal(dAtA []byte) error
- type CreatePartitionOp
- func (*CreatePartitionOp) Descriptor() ([]byte, []int)
- func (m *CreatePartitionOp) GetPartition() *Partition
- func (m *CreatePartitionOp) Marshal() (dAtA []byte, err error)
- func (m *CreatePartitionOp) MarshalTo(dAtA []byte) (int, error)
- func (*CreatePartitionOp) ProtoMessage()
- func (m *CreatePartitionOp) Reset()
- func (m *CreatePartitionOp) Size() (n int)
- func (m *CreatePartitionOp) String() string
- func (m *CreatePartitionOp) Unmarshal(dAtA []byte) error
- type Error
- func (*Error) Descriptor() ([]byte, []int)
- func (m *Error) GetCode() uint32
- func (m *Error) GetMsg() string
- func (m *Error) Marshal() (dAtA []byte, err error)
- func (m *Error) MarshalTo(dAtA []byte) (int, error)
- func (*Error) ProtoMessage()
- func (m *Error) Reset()
- func (m *Error) Size() (n int)
- func (m *Error) String() string
- func (m *Error) Unmarshal(dAtA []byte) error
- type ExpandISROp
- func (*ExpandISROp) Descriptor() ([]byte, []int)
- func (m *ExpandISROp) GetLeader() string
- func (m *ExpandISROp) GetLeaderEpoch() uint64
- func (m *ExpandISROp) GetPartition() int32
- func (m *ExpandISROp) GetReplicaToAdd() string
- func (m *ExpandISROp) GetStream() string
- func (m *ExpandISROp) Marshal() (dAtA []byte, err error)
- func (m *ExpandISROp) MarshalTo(dAtA []byte) (int, error)
- func (*ExpandISROp) ProtoMessage()
- func (m *ExpandISROp) Reset()
- func (m *ExpandISROp) Size() (n int)
- func (m *ExpandISROp) String() string
- func (m *ExpandISROp) Unmarshal(dAtA []byte) error
- type LeaderEpochOffsetRequest
- func (*LeaderEpochOffsetRequest) Descriptor() ([]byte, []int)
- func (m *LeaderEpochOffsetRequest) GetLeaderEpoch() uint64
- func (m *LeaderEpochOffsetRequest) Marshal() (dAtA []byte, err error)
- func (m *LeaderEpochOffsetRequest) MarshalTo(dAtA []byte) (int, error)
- func (*LeaderEpochOffsetRequest) ProtoMessage()
- func (m *LeaderEpochOffsetRequest) Reset()
- func (m *LeaderEpochOffsetRequest) Size() (n int)
- func (m *LeaderEpochOffsetRequest) String() string
- func (m *LeaderEpochOffsetRequest) Unmarshal(dAtA []byte) error
- type LeaderEpochOffsetResponse
- func (*LeaderEpochOffsetResponse) Descriptor() ([]byte, []int)
- func (m *LeaderEpochOffsetResponse) GetEndOffset() int64
- func (m *LeaderEpochOffsetResponse) Marshal() (dAtA []byte, err error)
- func (m *LeaderEpochOffsetResponse) MarshalTo(dAtA []byte) (int, error)
- func (*LeaderEpochOffsetResponse) ProtoMessage()
- func (m *LeaderEpochOffsetResponse) Reset()
- func (m *LeaderEpochOffsetResponse) Size() (n int)
- func (m *LeaderEpochOffsetResponse) String() string
- func (m *LeaderEpochOffsetResponse) Unmarshal(dAtA []byte) error
- type MetadataSnapshot
- func (*MetadataSnapshot) Descriptor() ([]byte, []int)
- func (m *MetadataSnapshot) GetPartitions() []*Partition
- func (m *MetadataSnapshot) Marshal() (dAtA []byte, err error)
- func (m *MetadataSnapshot) MarshalTo(dAtA []byte) (int, error)
- func (*MetadataSnapshot) ProtoMessage()
- func (m *MetadataSnapshot) Reset()
- func (m *MetadataSnapshot) Size() (n int)
- func (m *MetadataSnapshot) String() string
- func (m *MetadataSnapshot) Unmarshal(dAtA []byte) error
- type Op
- type Partition
- func (*Partition) Descriptor() ([]byte, []int)
- func (m *Partition) GetEpoch() uint64
- func (m *Partition) GetGroup() string
- func (m *Partition) GetId() int32
- func (m *Partition) GetIsr() []string
- func (m *Partition) GetLeader() string
- func (m *Partition) GetLeaderEpoch() uint64
- func (m *Partition) GetReplicas() []string
- func (m *Partition) GetReplicationFactor() int32
- func (m *Partition) GetStream() string
- func (m *Partition) GetSubject() string
- func (m *Partition) Marshal() (dAtA []byte, err error)
- func (m *Partition) MarshalTo(dAtA []byte) (int, error)
- func (*Partition) ProtoMessage()
- func (m *Partition) Reset()
- func (m *Partition) Size() (n int)
- func (m *Partition) String() string
- func (m *Partition) Unmarshal(dAtA []byte) error
- type PartitionNotification
- func (*PartitionNotification) Descriptor() ([]byte, []int)
- func (m *PartitionNotification) GetPartition() int32
- func (m *PartitionNotification) GetStream() string
- func (m *PartitionNotification) Marshal() (dAtA []byte, err error)
- func (m *PartitionNotification) MarshalTo(dAtA []byte) (int, error)
- func (*PartitionNotification) ProtoMessage()
- func (m *PartitionNotification) Reset()
- func (m *PartitionNotification) Size() (n int)
- func (m *PartitionNotification) String() string
- func (m *PartitionNotification) Unmarshal(dAtA []byte) error
- type PartitionStatusRequest
- func (*PartitionStatusRequest) Descriptor() ([]byte, []int)
- func (m *PartitionStatusRequest) GetPartition() int32
- func (m *PartitionStatusRequest) GetStream() string
- func (m *PartitionStatusRequest) Marshal() (dAtA []byte, err error)
- func (m *PartitionStatusRequest) MarshalTo(dAtA []byte) (int, error)
- func (*PartitionStatusRequest) ProtoMessage()
- func (m *PartitionStatusRequest) Reset()
- func (m *PartitionStatusRequest) Size() (n int)
- func (m *PartitionStatusRequest) String() string
- func (m *PartitionStatusRequest) Unmarshal(dAtA []byte) error
- type PartitionStatusResponse
- func (*PartitionStatusResponse) Descriptor() ([]byte, []int)
- func (m *PartitionStatusResponse) GetExists() bool
- func (m *PartitionStatusResponse) GetIsLeader() bool
- func (m *PartitionStatusResponse) Marshal() (dAtA []byte, err error)
- func (m *PartitionStatusResponse) MarshalTo(dAtA []byte) (int, error)
- func (*PartitionStatusResponse) ProtoMessage()
- func (m *PartitionStatusResponse) Reset()
- func (m *PartitionStatusResponse) Size() (n int)
- func (m *PartitionStatusResponse) String() string
- func (m *PartitionStatusResponse) Unmarshal(dAtA []byte) error
- type PropagatedRequest
- func (*PropagatedRequest) Descriptor() ([]byte, []int)
- func (m *PropagatedRequest) GetCreatePartitionOp() *CreatePartitionOp
- func (m *PropagatedRequest) GetExpandISROp() *ExpandISROp
- func (m *PropagatedRequest) GetOp() Op
- func (m *PropagatedRequest) GetReportLeaderOp() *ReportLeaderOp
- func (m *PropagatedRequest) GetShrinkISROp() *ShrinkISROp
- func (m *PropagatedRequest) Marshal() (dAtA []byte, err error)
- func (m *PropagatedRequest) MarshalTo(dAtA []byte) (int, error)
- func (*PropagatedRequest) ProtoMessage()
- func (m *PropagatedRequest) Reset()
- func (m *PropagatedRequest) Size() (n int)
- func (m *PropagatedRequest) String() string
- func (m *PropagatedRequest) Unmarshal(dAtA []byte) error
- type PropagatedResponse
- func (*PropagatedResponse) Descriptor() ([]byte, []int)
- func (m *PropagatedResponse) GetError() *Error
- func (m *PropagatedResponse) GetOp() Op
- func (m *PropagatedResponse) Marshal() (dAtA []byte, err error)
- func (m *PropagatedResponse) MarshalTo(dAtA []byte) (int, error)
- func (*PropagatedResponse) ProtoMessage()
- func (m *PropagatedResponse) Reset()
- func (m *PropagatedResponse) Size() (n int)
- func (m *PropagatedResponse) String() string
- func (m *PropagatedResponse) Unmarshal(dAtA []byte) error
- type RaftJoinRequest
- func (*RaftJoinRequest) Descriptor() ([]byte, []int)
- func (m *RaftJoinRequest) GetNodeAddr() string
- func (m *RaftJoinRequest) GetNodeID() string
- func (m *RaftJoinRequest) Marshal() (dAtA []byte, err error)
- func (m *RaftJoinRequest) MarshalTo(dAtA []byte) (int, error)
- func (*RaftJoinRequest) ProtoMessage()
- func (m *RaftJoinRequest) Reset()
- func (m *RaftJoinRequest) Size() (n int)
- func (m *RaftJoinRequest) String() string
- func (m *RaftJoinRequest) Unmarshal(dAtA []byte) error
- type RaftJoinResponse
- func (*RaftJoinResponse) Descriptor() ([]byte, []int)
- func (m *RaftJoinResponse) GetError() string
- func (m *RaftJoinResponse) Marshal() (dAtA []byte, err error)
- func (m *RaftJoinResponse) MarshalTo(dAtA []byte) (int, error)
- func (*RaftJoinResponse) ProtoMessage()
- func (m *RaftJoinResponse) Reset()
- func (m *RaftJoinResponse) Size() (n int)
- func (m *RaftJoinResponse) String() string
- func (m *RaftJoinResponse) Unmarshal(dAtA []byte) error
- type RaftLog
- func (*RaftLog) Descriptor() ([]byte, []int)
- func (m *RaftLog) GetChangeLeaderOp() *ChangeLeaderOp
- func (m *RaftLog) GetCreatePartitionOp() *CreatePartitionOp
- func (m *RaftLog) GetExpandISROp() *ExpandISROp
- func (m *RaftLog) GetOp() Op
- func (m *RaftLog) GetShrinkISROp() *ShrinkISROp
- func (m *RaftLog) Marshal() (dAtA []byte, err error)
- func (m *RaftLog) MarshalTo(dAtA []byte) (int, error)
- func (*RaftLog) ProtoMessage()
- func (m *RaftLog) Reset()
- func (m *RaftLog) Size() (n int)
- func (m *RaftLog) String() string
- func (m *RaftLog) Unmarshal(dAtA []byte) error
- type ReplicationRequest
- func (*ReplicationRequest) Descriptor() ([]byte, []int)
- func (m *ReplicationRequest) GetOffset() int64
- func (m *ReplicationRequest) GetReplicaID() string
- func (m *ReplicationRequest) Marshal() (dAtA []byte, err error)
- func (m *ReplicationRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ReplicationRequest) ProtoMessage()
- func (m *ReplicationRequest) Reset()
- func (m *ReplicationRequest) Size() (n int)
- func (m *ReplicationRequest) String() string
- func (m *ReplicationRequest) Unmarshal(dAtA []byte) error
- type ReportLeaderOp
- func (*ReportLeaderOp) Descriptor() ([]byte, []int)
- func (m *ReportLeaderOp) GetLeader() string
- func (m *ReportLeaderOp) GetLeaderEpoch() uint64
- func (m *ReportLeaderOp) GetPartition() int32
- func (m *ReportLeaderOp) GetReplica() string
- func (m *ReportLeaderOp) GetStream() string
- func (m *ReportLeaderOp) Marshal() (dAtA []byte, err error)
- func (m *ReportLeaderOp) MarshalTo(dAtA []byte) (int, error)
- func (*ReportLeaderOp) ProtoMessage()
- func (m *ReportLeaderOp) Reset()
- func (m *ReportLeaderOp) Size() (n int)
- func (m *ReportLeaderOp) String() string
- func (m *ReportLeaderOp) Unmarshal(dAtA []byte) error
- type ServerInfoRequest
- func (*ServerInfoRequest) Descriptor() ([]byte, []int)
- func (m *ServerInfoRequest) GetId() string
- func (m *ServerInfoRequest) Marshal() (dAtA []byte, err error)
- func (m *ServerInfoRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ServerInfoRequest) ProtoMessage()
- func (m *ServerInfoRequest) Reset()
- func (m *ServerInfoRequest) Size() (n int)
- func (m *ServerInfoRequest) String() string
- func (m *ServerInfoRequest) Unmarshal(dAtA []byte) error
- type ServerInfoResponse
- func (*ServerInfoResponse) Descriptor() ([]byte, []int)
- func (m *ServerInfoResponse) GetHost() string
- func (m *ServerInfoResponse) GetId() string
- func (m *ServerInfoResponse) GetPort() int32
- func (m *ServerInfoResponse) Marshal() (dAtA []byte, err error)
- func (m *ServerInfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (*ServerInfoResponse) ProtoMessage()
- func (m *ServerInfoResponse) Reset()
- func (m *ServerInfoResponse) Size() (n int)
- func (m *ServerInfoResponse) String() string
- func (m *ServerInfoResponse) Unmarshal(dAtA []byte) error
- type ServerState
- func (*ServerState) Descriptor() ([]byte, []int)
- func (m *ServerState) GetServerID() string
- func (m *ServerState) Marshal() (dAtA []byte, err error)
- func (m *ServerState) MarshalTo(dAtA []byte) (int, error)
- func (*ServerState) ProtoMessage()
- func (m *ServerState) Reset()
- func (m *ServerState) Size() (n int)
- func (m *ServerState) String() string
- func (m *ServerState) Unmarshal(dAtA []byte) error
- type ShrinkISROp
- func (*ShrinkISROp) Descriptor() ([]byte, []int)
- func (m *ShrinkISROp) GetLeader() string
- func (m *ShrinkISROp) GetLeaderEpoch() uint64
- func (m *ShrinkISROp) GetPartition() int32
- func (m *ShrinkISROp) GetReplicaToRemove() string
- func (m *ShrinkISROp) GetStream() string
- func (m *ShrinkISROp) Marshal() (dAtA []byte, err error)
- func (m *ShrinkISROp) MarshalTo(dAtA []byte) (int, error)
- func (*ShrinkISROp) ProtoMessage()
- func (m *ShrinkISROp) Reset()
- func (m *ShrinkISROp) Size() (n int)
- func (m *ShrinkISROp) String() string
- func (m *ShrinkISROp) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthInternal = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowInternal = fmt.Errorf("proto: integer overflow") )
var ( // Encoding is the byte order to use for protocol serialization. Encoding = binary.BigEndian )
var Op_name = map[int32]string{
0: "CREATE_PARTITION",
1: "SHRINK_ISR",
2: "REPORT_LEADER",
3: "CHANGE_LEADER",
4: "EXPAND_ISR",
}
var Op_value = map[string]int32{
"CREATE_PARTITION": 0,
"SHRINK_ISR": 1,
"REPORT_LEADER": 2,
"CHANGE_LEADER": 3,
"EXPAND_ISR": 4,
}
Functions ¶
func MarshalAck ¶
MarshalAck serializes a protobuf ack message into the Liftbridge envelope wire format.
func MarshalLeaderEpochOffsetRequest ¶
func MarshalLeaderEpochOffsetRequest(req *LeaderEpochOffsetRequest) ([]byte, error)
MarshalLeaderEpochOffsetRequest serializes a LeaderEpochOffsetRequest protobuf into the Liftbridge envelope wire format.
func MarshalLeaderEpochOffsetResponse ¶
func MarshalLeaderEpochOffsetResponse(req *LeaderEpochOffsetResponse) ([]byte, error)
MarshalLeaderEpochOffsetResponse serializes a LeaderEpochOffsetResponse protobuf into the Liftbridge envelope wire format.
func MarshalPartitionNotification ¶
func MarshalPartitionNotification(req *PartitionNotification) ([]byte, error)
MarshalPartitionNotification serializes a PartitionNotification protobuf into the Liftbridge envelope wire format.
func MarshalPartitionStatusRequest ¶
func MarshalPartitionStatusRequest(req *PartitionStatusRequest) ([]byte, error)
MarshalPartitionStatusRequest serializes a PartitionStatusRequest protobuf into the Liftbridge envelope wire format.
func MarshalPartitionStatusResponse ¶
func MarshalPartitionStatusResponse(resp *PartitionStatusResponse) ([]byte, error)
MarshalPartitionStatusResponse serializes a PartitionStatusResponse protobuf into the Liftbridge envelope wire format.
func MarshalPropagatedRequest ¶
func MarshalPropagatedRequest(req *PropagatedRequest) ([]byte, error)
MarshalPropagatedRequest serializes a PropagatedRequest protobuf into the Liftbridge envelope wire format.
func MarshalPropagatedResponse ¶
func MarshalPropagatedResponse(req *PropagatedResponse) ([]byte, error)
MarshalPropagatedResponse serializes a PropagatedResponse protobuf into the Liftbridge envelope wire format.
func MarshalPublish ¶
MarshalPublish serializes a protobuf publish message into the Liftbridge envelope wire format.
func MarshalRaftJoinRequest ¶
func MarshalRaftJoinRequest(req *RaftJoinRequest) ([]byte, error)
MarshalRaftJoinRequest serializes a RaftJoinRequest protobuf into the Liftbridge envelope wire format.
func MarshalRaftJoinResponse ¶
func MarshalRaftJoinResponse(req *RaftJoinResponse) ([]byte, error)
MarshalRaftJoinResponse serializes a RaftJoinResponse protobuf into the Liftbridge envelope wire format.
func MarshalReplicationRequest ¶
func MarshalReplicationRequest(req *ReplicationRequest) ([]byte, error)
MarshalReplicationRequest serializes a ReplicationRequest protobuf into the Liftbridge envelope wire format.
func MarshalServerInfoRequest ¶
func MarshalServerInfoRequest(req *ServerInfoRequest) ([]byte, error)
MarshalServerInfoRequest serializes a ServerInfoRequest protobuf into the Liftbridge envelope wire format.
func MarshalServerInfoResponse ¶
func MarshalServerInfoResponse(req *ServerInfoResponse) ([]byte, error)
MarshalServerInfoResponse serializes a ServerInfoResponse protobuf into the Liftbridge envelope wire format.
func UnmarshalAck ¶
UnmarshalAck deserializes a Liftbridge ack envelope into a protobuf message.
func UnmarshalPublish ¶
UnmarshalPublish deserializes a Liftbridge publish envelope into a protobuf message.
func UnmarshalReplicationResponse ¶
UnmarshalReplicationResponse deserializes a Liftbridge replication response envelope and returns the leader epoch, HW, and message data.
func WriteReplicationResponseHeader ¶
WriteReplicationResponseHeader writes the envelope protocol header for replication messages to the buffer and returns the number of bytes written.
Types ¶
type ChangeLeaderOp ¶
type ChangeLeaderOp struct { Stream string `protobuf:"bytes,1,opt,name=stream,proto3" json:"stream,omitempty"` Partition int32 `protobuf:"varint,2,opt,name=partition,proto3" json:"partition,omitempty"` Leader string `protobuf:"bytes,3,opt,name=leader,proto3" json:"leader,omitempty"` }
func (*ChangeLeaderOp) Descriptor ¶
func (*ChangeLeaderOp) Descriptor() ([]byte, []int)
func (*ChangeLeaderOp) GetLeader ¶
func (m *ChangeLeaderOp) GetLeader() string
func (*ChangeLeaderOp) GetPartition ¶
func (m *ChangeLeaderOp) GetPartition() int32
func (*ChangeLeaderOp) GetStream ¶
func (m *ChangeLeaderOp) GetStream() string
func (*ChangeLeaderOp) Marshal ¶
func (m *ChangeLeaderOp) Marshal() (dAtA []byte, err error)
func (*ChangeLeaderOp) ProtoMessage ¶
func (*ChangeLeaderOp) ProtoMessage()
func (*ChangeLeaderOp) Reset ¶
func (m *ChangeLeaderOp) Reset()
func (*ChangeLeaderOp) Size ¶
func (m *ChangeLeaderOp) Size() (n int)
func (*ChangeLeaderOp) String ¶
func (m *ChangeLeaderOp) String() string
func (*ChangeLeaderOp) Unmarshal ¶
func (m *ChangeLeaderOp) Unmarshal(dAtA []byte) error
type CreatePartitionOp ¶
type CreatePartitionOp struct {
Partition *Partition `protobuf:"bytes,1,opt,name=partition" json:"partition,omitempty"`
}
func (*CreatePartitionOp) Descriptor ¶
func (*CreatePartitionOp) Descriptor() ([]byte, []int)
func (*CreatePartitionOp) GetPartition ¶
func (m *CreatePartitionOp) GetPartition() *Partition
func (*CreatePartitionOp) Marshal ¶
func (m *CreatePartitionOp) Marshal() (dAtA []byte, err error)
func (*CreatePartitionOp) MarshalTo ¶
func (m *CreatePartitionOp) MarshalTo(dAtA []byte) (int, error)
func (*CreatePartitionOp) ProtoMessage ¶
func (*CreatePartitionOp) ProtoMessage()
func (*CreatePartitionOp) Reset ¶
func (m *CreatePartitionOp) Reset()
func (*CreatePartitionOp) Size ¶
func (m *CreatePartitionOp) Size() (n int)
func (*CreatePartitionOp) String ¶
func (m *CreatePartitionOp) String() string
func (*CreatePartitionOp) Unmarshal ¶
func (m *CreatePartitionOp) Unmarshal(dAtA []byte) error
type Error ¶
type Error struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` }
func (*Error) Descriptor ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
type ExpandISROp ¶
type ExpandISROp struct { Stream string `protobuf:"bytes,1,opt,name=stream,proto3" json:"stream,omitempty"` Partition int32 `protobuf:"varint,2,opt,name=partition,proto3" json:"partition,omitempty"` ReplicaToAdd string `protobuf:"bytes,3,opt,name=replicaToAdd,proto3" json:"replicaToAdd,omitempty"` Leader string `protobuf:"bytes,4,opt,name=leader,proto3" json:"leader,omitempty"` LeaderEpoch uint64 `protobuf:"varint,5,opt,name=leaderEpoch,proto3" json:"leaderEpoch,omitempty"` }
func (*ExpandISROp) Descriptor ¶
func (*ExpandISROp) Descriptor() ([]byte, []int)
func (*ExpandISROp) GetLeader ¶
func (m *ExpandISROp) GetLeader() string
func (*ExpandISROp) GetLeaderEpoch ¶
func (m *ExpandISROp) GetLeaderEpoch() uint64
func (*ExpandISROp) GetPartition ¶
func (m *ExpandISROp) GetPartition() int32
func (*ExpandISROp) GetReplicaToAdd ¶
func (m *ExpandISROp) GetReplicaToAdd() string
func (*ExpandISROp) GetStream ¶
func (m *ExpandISROp) GetStream() string
func (*ExpandISROp) Marshal ¶
func (m *ExpandISROp) Marshal() (dAtA []byte, err error)
func (*ExpandISROp) ProtoMessage ¶
func (*ExpandISROp) ProtoMessage()
func (*ExpandISROp) Reset ¶
func (m *ExpandISROp) Reset()
func (*ExpandISROp) Size ¶
func (m *ExpandISROp) Size() (n int)
func (*ExpandISROp) String ¶
func (m *ExpandISROp) String() string
func (*ExpandISROp) Unmarshal ¶
func (m *ExpandISROp) Unmarshal(dAtA []byte) error
type LeaderEpochOffsetRequest ¶
type LeaderEpochOffsetRequest struct {
LeaderEpoch uint64 `protobuf:"varint,1,opt,name=leaderEpoch,proto3" json:"leaderEpoch,omitempty"`
}
func UnmarshalLeaderEpochOffsetRequest ¶
func UnmarshalLeaderEpochOffsetRequest(data []byte) (*LeaderEpochOffsetRequest, error)
UnmarshalLeaderEpochOffsetRequest deserializes a Liftbridge LeaderEpochOffsetRequest envelope into a protobuf message.
func (*LeaderEpochOffsetRequest) Descriptor ¶
func (*LeaderEpochOffsetRequest) Descriptor() ([]byte, []int)
func (*LeaderEpochOffsetRequest) GetLeaderEpoch ¶
func (m *LeaderEpochOffsetRequest) GetLeaderEpoch() uint64
func (*LeaderEpochOffsetRequest) Marshal ¶
func (m *LeaderEpochOffsetRequest) Marshal() (dAtA []byte, err error)
func (*LeaderEpochOffsetRequest) MarshalTo ¶
func (m *LeaderEpochOffsetRequest) MarshalTo(dAtA []byte) (int, error)
func (*LeaderEpochOffsetRequest) ProtoMessage ¶
func (*LeaderEpochOffsetRequest) ProtoMessage()
func (*LeaderEpochOffsetRequest) Reset ¶
func (m *LeaderEpochOffsetRequest) Reset()
func (*LeaderEpochOffsetRequest) Size ¶
func (m *LeaderEpochOffsetRequest) Size() (n int)
func (*LeaderEpochOffsetRequest) String ¶
func (m *LeaderEpochOffsetRequest) String() string
func (*LeaderEpochOffsetRequest) Unmarshal ¶
func (m *LeaderEpochOffsetRequest) Unmarshal(dAtA []byte) error
type LeaderEpochOffsetResponse ¶
type LeaderEpochOffsetResponse struct {
EndOffset int64 `protobuf:"varint,1,opt,name=endOffset,proto3" json:"endOffset,omitempty"`
}
func UnmarshalLeaderEpochOffsetResponse ¶
func UnmarshalLeaderEpochOffsetResponse(data []byte) (*LeaderEpochOffsetResponse, error)
UnmarshalLeaderEpochOffsetResponse deserializes a Liftbridge LeaderEpochOffsetResponse envelope into a protobuf message.
func (*LeaderEpochOffsetResponse) Descriptor ¶
func (*LeaderEpochOffsetResponse) Descriptor() ([]byte, []int)
func (*LeaderEpochOffsetResponse) GetEndOffset ¶
func (m *LeaderEpochOffsetResponse) GetEndOffset() int64
func (*LeaderEpochOffsetResponse) Marshal ¶
func (m *LeaderEpochOffsetResponse) Marshal() (dAtA []byte, err error)
func (*LeaderEpochOffsetResponse) MarshalTo ¶
func (m *LeaderEpochOffsetResponse) MarshalTo(dAtA []byte) (int, error)
func (*LeaderEpochOffsetResponse) ProtoMessage ¶
func (*LeaderEpochOffsetResponse) ProtoMessage()
func (*LeaderEpochOffsetResponse) Reset ¶
func (m *LeaderEpochOffsetResponse) Reset()
func (*LeaderEpochOffsetResponse) Size ¶
func (m *LeaderEpochOffsetResponse) Size() (n int)
func (*LeaderEpochOffsetResponse) String ¶
func (m *LeaderEpochOffsetResponse) String() string
func (*LeaderEpochOffsetResponse) Unmarshal ¶
func (m *LeaderEpochOffsetResponse) Unmarshal(dAtA []byte) error
type MetadataSnapshot ¶
type MetadataSnapshot struct {
Partitions []*Partition `protobuf:"bytes,1,rep,name=partitions" json:"partitions,omitempty"`
}
func (*MetadataSnapshot) Descriptor ¶
func (*MetadataSnapshot) Descriptor() ([]byte, []int)
func (*MetadataSnapshot) GetPartitions ¶
func (m *MetadataSnapshot) GetPartitions() []*Partition
func (*MetadataSnapshot) Marshal ¶
func (m *MetadataSnapshot) Marshal() (dAtA []byte, err error)
func (*MetadataSnapshot) ProtoMessage ¶
func (*MetadataSnapshot) ProtoMessage()
func (*MetadataSnapshot) Reset ¶
func (m *MetadataSnapshot) Reset()
func (*MetadataSnapshot) Size ¶
func (m *MetadataSnapshot) Size() (n int)
func (*MetadataSnapshot) String ¶
func (m *MetadataSnapshot) String() string
func (*MetadataSnapshot) Unmarshal ¶
func (m *MetadataSnapshot) Unmarshal(dAtA []byte) error
type Partition ¶
type Partition struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Stream string `protobuf:"bytes,2,opt,name=stream,proto3" json:"stream,omitempty"` Id int32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` ReplicationFactor int32 `protobuf:"varint,5,opt,name=replicationFactor,proto3" json:"replicationFactor,omitempty"` Replicas []string `protobuf:"bytes,6,rep,name=replicas" json:"replicas,omitempty"` Leader string `protobuf:"bytes,7,opt,name=leader,proto3" json:"leader,omitempty"` Isr []string `protobuf:"bytes,8,rep,name=isr" json:"isr,omitempty"` LeaderEpoch uint64 `protobuf:"varint,9,opt,name=leaderEpoch,proto3" json:"leaderEpoch,omitempty"` Epoch uint64 `protobuf:"varint,10,opt,name=epoch,proto3" json:"epoch,omitempty"` }
func (*Partition) Descriptor ¶
func (*Partition) GetLeaderEpoch ¶
func (*Partition) GetReplicas ¶
func (*Partition) GetReplicationFactor ¶
func (*Partition) GetSubject ¶
func (*Partition) ProtoMessage ¶
func (*Partition) ProtoMessage()
type PartitionNotification ¶
type PartitionNotification struct { Stream string `protobuf:"bytes,1,opt,name=stream,proto3" json:"stream,omitempty"` Partition int32 `protobuf:"varint,2,opt,name=partition,proto3" json:"partition,omitempty"` }
func UnmarshalPartitionNotification ¶
func UnmarshalPartitionNotification(data []byte) (*PartitionNotification, error)
UnmarshalPartitionNotification deserializes a Liftbridge PartitionNotification envelope into a protobuf message.
func (*PartitionNotification) Descriptor ¶
func (*PartitionNotification) Descriptor() ([]byte, []int)
func (*PartitionNotification) GetPartition ¶
func (m *PartitionNotification) GetPartition() int32
func (*PartitionNotification) GetStream ¶
func (m *PartitionNotification) GetStream() string
func (*PartitionNotification) Marshal ¶
func (m *PartitionNotification) Marshal() (dAtA []byte, err error)
func (*PartitionNotification) MarshalTo ¶
func (m *PartitionNotification) MarshalTo(dAtA []byte) (int, error)
func (*PartitionNotification) ProtoMessage ¶
func (*PartitionNotification) ProtoMessage()
func (*PartitionNotification) Reset ¶
func (m *PartitionNotification) Reset()
func (*PartitionNotification) Size ¶
func (m *PartitionNotification) Size() (n int)
func (*PartitionNotification) String ¶
func (m *PartitionNotification) String() string
func (*PartitionNotification) Unmarshal ¶
func (m *PartitionNotification) Unmarshal(dAtA []byte) error
type PartitionStatusRequest ¶
type PartitionStatusRequest struct { Stream string `protobuf:"bytes,1,opt,name=stream,proto3" json:"stream,omitempty"` Partition int32 `protobuf:"varint,2,opt,name=partition,proto3" json:"partition,omitempty"` }
func UnmarshalPartitionStatusRequest ¶
func UnmarshalPartitionStatusRequest(data []byte) (*PartitionStatusRequest, error)
UnmarshalPartitionStatusRequest deserializes a Liftbridge PartitionStatusRequest envelope into a protobuf message.
func (*PartitionStatusRequest) Descriptor ¶
func (*PartitionStatusRequest) Descriptor() ([]byte, []int)
func (*PartitionStatusRequest) GetPartition ¶
func (m *PartitionStatusRequest) GetPartition() int32
func (*PartitionStatusRequest) GetStream ¶
func (m *PartitionStatusRequest) GetStream() string
func (*PartitionStatusRequest) Marshal ¶
func (m *PartitionStatusRequest) Marshal() (dAtA []byte, err error)
func (*PartitionStatusRequest) MarshalTo ¶
func (m *PartitionStatusRequest) MarshalTo(dAtA []byte) (int, error)
func (*PartitionStatusRequest) ProtoMessage ¶
func (*PartitionStatusRequest) ProtoMessage()
func (*PartitionStatusRequest) Reset ¶
func (m *PartitionStatusRequest) Reset()
func (*PartitionStatusRequest) Size ¶
func (m *PartitionStatusRequest) Size() (n int)
func (*PartitionStatusRequest) String ¶
func (m *PartitionStatusRequest) String() string
func (*PartitionStatusRequest) Unmarshal ¶
func (m *PartitionStatusRequest) Unmarshal(dAtA []byte) error
type PartitionStatusResponse ¶
type PartitionStatusResponse struct { Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` IsLeader bool `protobuf:"varint,2,opt,name=isLeader,proto3" json:"isLeader,omitempty"` }
func UnmarshalPartitionStatusResponse ¶
func UnmarshalPartitionStatusResponse(data []byte) (*PartitionStatusResponse, error)
UnmarshalPartitionStatusResponse deserializes a Liftbridge PartitionStatusResponse envelope into a protobuf message.
func (*PartitionStatusResponse) Descriptor ¶
func (*PartitionStatusResponse) Descriptor() ([]byte, []int)
func (*PartitionStatusResponse) GetExists ¶
func (m *PartitionStatusResponse) GetExists() bool
func (*PartitionStatusResponse) GetIsLeader ¶
func (m *PartitionStatusResponse) GetIsLeader() bool
func (*PartitionStatusResponse) Marshal ¶
func (m *PartitionStatusResponse) Marshal() (dAtA []byte, err error)
func (*PartitionStatusResponse) MarshalTo ¶
func (m *PartitionStatusResponse) MarshalTo(dAtA []byte) (int, error)
func (*PartitionStatusResponse) ProtoMessage ¶
func (*PartitionStatusResponse) ProtoMessage()
func (*PartitionStatusResponse) Reset ¶
func (m *PartitionStatusResponse) Reset()
func (*PartitionStatusResponse) Size ¶
func (m *PartitionStatusResponse) Size() (n int)
func (*PartitionStatusResponse) String ¶
func (m *PartitionStatusResponse) String() string
func (*PartitionStatusResponse) Unmarshal ¶
func (m *PartitionStatusResponse) Unmarshal(dAtA []byte) error
type PropagatedRequest ¶
type PropagatedRequest struct { Op Op `protobuf:"varint,1,opt,name=op,proto3,enum=proto.Op" json:"op,omitempty"` CreatePartitionOp *CreatePartitionOp `protobuf:"bytes,2,opt,name=createPartitionOp" json:"createPartitionOp,omitempty"` ShrinkISROp *ShrinkISROp `protobuf:"bytes,3,opt,name=shrinkISROp" json:"shrinkISROp,omitempty"` ReportLeaderOp *ReportLeaderOp `protobuf:"bytes,4,opt,name=reportLeaderOp" json:"reportLeaderOp,omitempty"` ExpandISROp *ExpandISROp `protobuf:"bytes,5,opt,name=expandISROp" json:"expandISROp,omitempty"` }
func UnmarshalPropagatedRequest ¶
func UnmarshalPropagatedRequest(data []byte) (*PropagatedRequest, error)
UnmarshalPropagatedRequest deserializes a Liftbridge PropagatedRequest envelope into a protobuf message.
func (*PropagatedRequest) Descriptor ¶
func (*PropagatedRequest) Descriptor() ([]byte, []int)
func (*PropagatedRequest) GetCreatePartitionOp ¶
func (m *PropagatedRequest) GetCreatePartitionOp() *CreatePartitionOp
func (*PropagatedRequest) GetExpandISROp ¶
func (m *PropagatedRequest) GetExpandISROp() *ExpandISROp
func (*PropagatedRequest) GetOp ¶
func (m *PropagatedRequest) GetOp() Op
func (*PropagatedRequest) GetReportLeaderOp ¶
func (m *PropagatedRequest) GetReportLeaderOp() *ReportLeaderOp
func (*PropagatedRequest) GetShrinkISROp ¶
func (m *PropagatedRequest) GetShrinkISROp() *ShrinkISROp
func (*PropagatedRequest) Marshal ¶
func (m *PropagatedRequest) Marshal() (dAtA []byte, err error)
func (*PropagatedRequest) MarshalTo ¶
func (m *PropagatedRequest) MarshalTo(dAtA []byte) (int, error)
func (*PropagatedRequest) ProtoMessage ¶
func (*PropagatedRequest) ProtoMessage()
func (*PropagatedRequest) Reset ¶
func (m *PropagatedRequest) Reset()
func (*PropagatedRequest) Size ¶
func (m *PropagatedRequest) Size() (n int)
func (*PropagatedRequest) String ¶
func (m *PropagatedRequest) String() string
func (*PropagatedRequest) Unmarshal ¶
func (m *PropagatedRequest) Unmarshal(dAtA []byte) error
type PropagatedResponse ¶
type PropagatedResponse struct { Op Op `protobuf:"varint,1,opt,name=op,proto3,enum=proto.Op" json:"op,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` }
func UnmarshalPropagatedResponse ¶
func UnmarshalPropagatedResponse(data []byte) (*PropagatedResponse, error)
UnmarshalPropagatedResponse deserializes a Liftbridge PropagatedResponse envelope into a protobuf message.
func (*PropagatedResponse) Descriptor ¶
func (*PropagatedResponse) Descriptor() ([]byte, []int)
func (*PropagatedResponse) GetError ¶
func (m *PropagatedResponse) GetError() *Error
func (*PropagatedResponse) GetOp ¶
func (m *PropagatedResponse) GetOp() Op
func (*PropagatedResponse) Marshal ¶
func (m *PropagatedResponse) Marshal() (dAtA []byte, err error)
func (*PropagatedResponse) MarshalTo ¶
func (m *PropagatedResponse) MarshalTo(dAtA []byte) (int, error)
func (*PropagatedResponse) ProtoMessage ¶
func (*PropagatedResponse) ProtoMessage()
func (*PropagatedResponse) Reset ¶
func (m *PropagatedResponse) Reset()
func (*PropagatedResponse) Size ¶
func (m *PropagatedResponse) Size() (n int)
func (*PropagatedResponse) String ¶
func (m *PropagatedResponse) String() string
func (*PropagatedResponse) Unmarshal ¶
func (m *PropagatedResponse) Unmarshal(dAtA []byte) error
type RaftJoinRequest ¶
type RaftJoinRequest struct { NodeID string `protobuf:"bytes,1,opt,name=nodeID,proto3" json:"nodeID,omitempty"` NodeAddr string `protobuf:"bytes,2,opt,name=nodeAddr,proto3" json:"nodeAddr,omitempty"` }
RaftJoinRequest is a request to join a Raft group.
func UnmarshalRaftJoinRequest ¶
func UnmarshalRaftJoinRequest(data []byte) (*RaftJoinRequest, error)
UnmarshalRaftJoinRequest deserializes a Liftbridge RaftJoinRequest envelope into a protobuf message.
func (*RaftJoinRequest) Descriptor ¶
func (*RaftJoinRequest) Descriptor() ([]byte, []int)
func (*RaftJoinRequest) GetNodeAddr ¶
func (m *RaftJoinRequest) GetNodeAddr() string
func (*RaftJoinRequest) GetNodeID ¶
func (m *RaftJoinRequest) GetNodeID() string
func (*RaftJoinRequest) Marshal ¶
func (m *RaftJoinRequest) Marshal() (dAtA []byte, err error)
func (*RaftJoinRequest) ProtoMessage ¶
func (*RaftJoinRequest) ProtoMessage()
func (*RaftJoinRequest) Reset ¶
func (m *RaftJoinRequest) Reset()
func (*RaftJoinRequest) Size ¶
func (m *RaftJoinRequest) Size() (n int)
func (*RaftJoinRequest) String ¶
func (m *RaftJoinRequest) String() string
func (*RaftJoinRequest) Unmarshal ¶
func (m *RaftJoinRequest) Unmarshal(dAtA []byte) error
type RaftJoinResponse ¶
type RaftJoinResponse struct {
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
}
RaftJoinResponse is a response to a RaftJoinRequest.
func UnmarshalRaftJoinResponse ¶
func UnmarshalRaftJoinResponse(data []byte) (*RaftJoinResponse, error)
UnmarshalRaftJoinResponse deserializes a Liftbridge RaftJoinResponse envelope into a protobuf message.
func (*RaftJoinResponse) Descriptor ¶
func (*RaftJoinResponse) Descriptor() ([]byte, []int)
func (*RaftJoinResponse) GetError ¶
func (m *RaftJoinResponse) GetError() string
func (*RaftJoinResponse) Marshal ¶
func (m *RaftJoinResponse) Marshal() (dAtA []byte, err error)
func (*RaftJoinResponse) ProtoMessage ¶
func (*RaftJoinResponse) ProtoMessage()
func (*RaftJoinResponse) Reset ¶
func (m *RaftJoinResponse) Reset()
func (*RaftJoinResponse) Size ¶
func (m *RaftJoinResponse) Size() (n int)
func (*RaftJoinResponse) String ¶
func (m *RaftJoinResponse) String() string
func (*RaftJoinResponse) Unmarshal ¶
func (m *RaftJoinResponse) Unmarshal(dAtA []byte) error
type RaftLog ¶
type RaftLog struct { Op Op `protobuf:"varint,1,opt,name=op,proto3,enum=proto.Op" json:"op,omitempty"` CreatePartitionOp *CreatePartitionOp `protobuf:"bytes,2,opt,name=createPartitionOp" json:"createPartitionOp,omitempty"` ShrinkISROp *ShrinkISROp `protobuf:"bytes,3,opt,name=shrinkISROp" json:"shrinkISROp,omitempty"` ChangeLeaderOp *ChangeLeaderOp `protobuf:"bytes,4,opt,name=changeLeaderOp" json:"changeLeaderOp,omitempty"` ExpandISROp *ExpandISROp `protobuf:"bytes,5,opt,name=expandISROp" json:"expandISROp,omitempty"` }
func (*RaftLog) Descriptor ¶
func (*RaftLog) GetChangeLeaderOp ¶
func (m *RaftLog) GetChangeLeaderOp() *ChangeLeaderOp
func (*RaftLog) GetCreatePartitionOp ¶
func (m *RaftLog) GetCreatePartitionOp() *CreatePartitionOp
func (*RaftLog) GetExpandISROp ¶
func (m *RaftLog) GetExpandISROp() *ExpandISROp
func (*RaftLog) GetShrinkISROp ¶
func (m *RaftLog) GetShrinkISROp() *ShrinkISROp
func (*RaftLog) ProtoMessage ¶
func (*RaftLog) ProtoMessage()
type ReplicationRequest ¶
type ReplicationRequest struct { ReplicaID string `protobuf:"bytes,1,opt,name=replicaID,proto3" json:"replicaID,omitempty"` Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` }
func UnmarshalReplicationRequest ¶
func UnmarshalReplicationRequest(data []byte) (*ReplicationRequest, error)
UnmarshalReplicationRequest deserializes a Liftbridge ReplicationRequest envelope into a protobuf message.
func (*ReplicationRequest) Descriptor ¶
func (*ReplicationRequest) Descriptor() ([]byte, []int)
func (*ReplicationRequest) GetOffset ¶
func (m *ReplicationRequest) GetOffset() int64
func (*ReplicationRequest) GetReplicaID ¶
func (m *ReplicationRequest) GetReplicaID() string
func (*ReplicationRequest) Marshal ¶
func (m *ReplicationRequest) Marshal() (dAtA []byte, err error)
func (*ReplicationRequest) MarshalTo ¶
func (m *ReplicationRequest) MarshalTo(dAtA []byte) (int, error)
func (*ReplicationRequest) ProtoMessage ¶
func (*ReplicationRequest) ProtoMessage()
func (*ReplicationRequest) Reset ¶
func (m *ReplicationRequest) Reset()
func (*ReplicationRequest) Size ¶
func (m *ReplicationRequest) Size() (n int)
func (*ReplicationRequest) String ¶
func (m *ReplicationRequest) String() string
func (*ReplicationRequest) Unmarshal ¶
func (m *ReplicationRequest) Unmarshal(dAtA []byte) error
type ReportLeaderOp ¶
type ReportLeaderOp struct { Stream string `protobuf:"bytes,1,opt,name=stream,proto3" json:"stream,omitempty"` Partition int32 `protobuf:"varint,2,opt,name=partition,proto3" json:"partition,omitempty"` Replica string `protobuf:"bytes,3,opt,name=replica,proto3" json:"replica,omitempty"` Leader string `protobuf:"bytes,4,opt,name=leader,proto3" json:"leader,omitempty"` LeaderEpoch uint64 `protobuf:"varint,5,opt,name=leaderEpoch,proto3" json:"leaderEpoch,omitempty"` }
func (*ReportLeaderOp) Descriptor ¶
func (*ReportLeaderOp) Descriptor() ([]byte, []int)
func (*ReportLeaderOp) GetLeader ¶
func (m *ReportLeaderOp) GetLeader() string
func (*ReportLeaderOp) GetLeaderEpoch ¶
func (m *ReportLeaderOp) GetLeaderEpoch() uint64
func (*ReportLeaderOp) GetPartition ¶
func (m *ReportLeaderOp) GetPartition() int32
func (*ReportLeaderOp) GetReplica ¶
func (m *ReportLeaderOp) GetReplica() string
func (*ReportLeaderOp) GetStream ¶
func (m *ReportLeaderOp) GetStream() string
func (*ReportLeaderOp) Marshal ¶
func (m *ReportLeaderOp) Marshal() (dAtA []byte, err error)
func (*ReportLeaderOp) ProtoMessage ¶
func (*ReportLeaderOp) ProtoMessage()
func (*ReportLeaderOp) Reset ¶
func (m *ReportLeaderOp) Reset()
func (*ReportLeaderOp) Size ¶
func (m *ReportLeaderOp) Size() (n int)
func (*ReportLeaderOp) String ¶
func (m *ReportLeaderOp) String() string
func (*ReportLeaderOp) Unmarshal ¶
func (m *ReportLeaderOp) Unmarshal(dAtA []byte) error
type ServerInfoRequest ¶
type ServerInfoRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func UnmarshalServerInfoRequest ¶
func UnmarshalServerInfoRequest(data []byte) (*ServerInfoRequest, error)
UnmarshalServerInfoRequest deserializes a Liftbridge ServerInfoRequest envelope into a protobuf message.
func (*ServerInfoRequest) Descriptor ¶
func (*ServerInfoRequest) Descriptor() ([]byte, []int)
func (*ServerInfoRequest) GetId ¶
func (m *ServerInfoRequest) GetId() string
func (*ServerInfoRequest) Marshal ¶
func (m *ServerInfoRequest) Marshal() (dAtA []byte, err error)
func (*ServerInfoRequest) MarshalTo ¶
func (m *ServerInfoRequest) MarshalTo(dAtA []byte) (int, error)
func (*ServerInfoRequest) ProtoMessage ¶
func (*ServerInfoRequest) ProtoMessage()
func (*ServerInfoRequest) Reset ¶
func (m *ServerInfoRequest) Reset()
func (*ServerInfoRequest) Size ¶
func (m *ServerInfoRequest) Size() (n int)
func (*ServerInfoRequest) String ¶
func (m *ServerInfoRequest) String() string
func (*ServerInfoRequest) Unmarshal ¶
func (m *ServerInfoRequest) Unmarshal(dAtA []byte) error
type ServerInfoResponse ¶
type ServerInfoResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` }
func UnmarshalServerInfoResponse ¶
func UnmarshalServerInfoResponse(data []byte) (*ServerInfoResponse, error)
UnmarshalServerInfoResponse deserializes a Liftbridge ServerInfoResponse envelope into a protobuf message.
func (*ServerInfoResponse) Descriptor ¶
func (*ServerInfoResponse) Descriptor() ([]byte, []int)
func (*ServerInfoResponse) GetHost ¶
func (m *ServerInfoResponse) GetHost() string
func (*ServerInfoResponse) GetId ¶
func (m *ServerInfoResponse) GetId() string
func (*ServerInfoResponse) GetPort ¶
func (m *ServerInfoResponse) GetPort() int32
func (*ServerInfoResponse) Marshal ¶
func (m *ServerInfoResponse) Marshal() (dAtA []byte, err error)
func (*ServerInfoResponse) MarshalTo ¶
func (m *ServerInfoResponse) MarshalTo(dAtA []byte) (int, error)
func (*ServerInfoResponse) ProtoMessage ¶
func (*ServerInfoResponse) ProtoMessage()
func (*ServerInfoResponse) Reset ¶
func (m *ServerInfoResponse) Reset()
func (*ServerInfoResponse) Size ¶
func (m *ServerInfoResponse) Size() (n int)
func (*ServerInfoResponse) String ¶
func (m *ServerInfoResponse) String() string
func (*ServerInfoResponse) Unmarshal ¶
func (m *ServerInfoResponse) Unmarshal(dAtA []byte) error
type ServerState ¶
type ServerState struct {
ServerID string `protobuf:"bytes,1,opt,name=serverID,proto3" json:"serverID,omitempty"`
}
func (*ServerState) Descriptor ¶
func (*ServerState) Descriptor() ([]byte, []int)
func (*ServerState) GetServerID ¶
func (m *ServerState) GetServerID() string
func (*ServerState) Marshal ¶
func (m *ServerState) Marshal() (dAtA []byte, err error)
func (*ServerState) ProtoMessage ¶
func (*ServerState) ProtoMessage()
func (*ServerState) Reset ¶
func (m *ServerState) Reset()
func (*ServerState) Size ¶
func (m *ServerState) Size() (n int)
func (*ServerState) String ¶
func (m *ServerState) String() string
func (*ServerState) Unmarshal ¶
func (m *ServerState) Unmarshal(dAtA []byte) error
type ShrinkISROp ¶
type ShrinkISROp struct { Stream string `protobuf:"bytes,1,opt,name=stream,proto3" json:"stream,omitempty"` Partition int32 `protobuf:"varint,2,opt,name=partition,proto3" json:"partition,omitempty"` ReplicaToRemove string `protobuf:"bytes,3,opt,name=replicaToRemove,proto3" json:"replicaToRemove,omitempty"` Leader string `protobuf:"bytes,4,opt,name=leader,proto3" json:"leader,omitempty"` LeaderEpoch uint64 `protobuf:"varint,5,opt,name=leaderEpoch,proto3" json:"leaderEpoch,omitempty"` }
func (*ShrinkISROp) Descriptor ¶
func (*ShrinkISROp) Descriptor() ([]byte, []int)
func (*ShrinkISROp) GetLeader ¶
func (m *ShrinkISROp) GetLeader() string
func (*ShrinkISROp) GetLeaderEpoch ¶
func (m *ShrinkISROp) GetLeaderEpoch() uint64
func (*ShrinkISROp) GetPartition ¶
func (m *ShrinkISROp) GetPartition() int32
func (*ShrinkISROp) GetReplicaToRemove ¶
func (m *ShrinkISROp) GetReplicaToRemove() string
func (*ShrinkISROp) GetStream ¶
func (m *ShrinkISROp) GetStream() string
func (*ShrinkISROp) Marshal ¶
func (m *ShrinkISROp) Marshal() (dAtA []byte, err error)
func (*ShrinkISROp) ProtoMessage ¶
func (*ShrinkISROp) ProtoMessage()
func (*ShrinkISROp) Reset ¶
func (m *ShrinkISROp) Reset()
func (*ShrinkISROp) Size ¶
func (m *ShrinkISROp) Size() (n int)
func (*ShrinkISROp) String ¶
func (m *ShrinkISROp) String() string
func (*ShrinkISROp) Unmarshal ¶
func (m *ShrinkISROp) Unmarshal(dAtA []byte) error