Documentation ¶
Index ¶
- Variables
- type ChunkInfo
- func (*ChunkInfo) Descriptor() ([]byte, []int)
- func (m *ChunkInfo) GetEndHash() []byte
- func (m *ChunkInfo) GetFrom() uint64
- func (m *ChunkInfo) GetPrevHash() []byte
- func (m *ChunkInfo) GetSize() uint64
- func (m *ChunkInfo) GetTo() uint64
- func (*ChunkInfo) ProtoMessage()
- func (m *ChunkInfo) Reset()
- func (m *ChunkInfo) String() string
- func (m *ChunkInfo) XXX_DiscardUnknown()
- func (m *ChunkInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChunkInfo) XXX_Merge(src proto.Message)
- func (m *ChunkInfo) XXX_Size() int
- func (m *ChunkInfo) XXX_Unmarshal(b []byte) error
- type ChunkRequest
- func (*ChunkRequest) Descriptor() ([]byte, []int)
- func (m *ChunkRequest) GetFrom() uint64
- func (m *ChunkRequest) GetTo() uint64
- func (*ChunkRequest) ProtoMessage()
- func (m *ChunkRequest) Reset()
- func (m *ChunkRequest) String() string
- func (m *ChunkRequest) XXX_DiscardUnknown()
- func (m *ChunkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChunkRequest) XXX_Merge(src proto.Message)
- func (m *ChunkRequest) XXX_Size() int
- func (m *ChunkRequest) XXX_Unmarshal(b []byte) error
- type State
- func (*State) Descriptor() ([]byte, []int)
- func (m *State) GetHead() []byte
- func (m *State) GetHeight() uint64
- func (m *State) GetPatch() bool
- func (m *State) GetPeers() []*State_Peer
- func (m *State) GetTimestamp() int64
- func (*State) ProtoMessage()
- func (m *State) Reset()
- func (m *State) String() string
- func (m *State) XXX_DiscardUnknown()
- func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *State) XXX_Merge(src proto.Message)
- func (m *State) XXX_Size() int
- func (m *State) XXX_Unmarshal(b []byte) error
- type State_Peer
- func (*State_Peer) Descriptor() ([]byte, []int)
- func (m *State_Peer) GetID() []byte
- func (m *State_Peer) GetStatus() State_PeerStatus
- func (*State_Peer) ProtoMessage()
- func (m *State_Peer) Reset()
- func (m *State_Peer) String() string
- func (m *State_Peer) XXX_DiscardUnknown()
- func (m *State_Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *State_Peer) XXX_Merge(src proto.Message)
- func (m *State_Peer) XXX_Size() int
- func (m *State_Peer) XXX_Unmarshal(b []byte) error
- type State_PeerStatus
- type SyncConnHandshake
- func (*SyncConnHandshake) Descriptor() ([]byte, []int)
- func (m *SyncConnHandshake) GetKey() []byte
- func (m *SyncConnHandshake) GetSign() []byte
- func (m *SyncConnHandshake) GetTimestamp() int64
- func (*SyncConnHandshake) ProtoMessage()
- func (m *SyncConnHandshake) Reset()
- func (m *SyncConnHandshake) String() string
- func (m *SyncConnHandshake) XXX_DiscardUnknown()
- func (m *SyncConnHandshake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SyncConnHandshake) XXX_Merge(src proto.Message)
- func (m *SyncConnHandshake) XXX_Size() int
- func (m *SyncConnHandshake) XXX_Unmarshal(b []byte) error
- type ViteHandshake
- func (*ViteHandshake) Descriptor() ([]byte, []int)
- func (m *ViteHandshake) GetFileAddress() []byte
- func (m *ViteHandshake) GetGenesis() []byte
- func (m *ViteHandshake) GetHead() []byte
- func (m *ViteHandshake) GetHeight() uint64
- func (m *ViteHandshake) GetKey() []byte
- func (m *ViteHandshake) GetSignature() []byte
- func (*ViteHandshake) ProtoMessage()
- func (m *ViteHandshake) Reset()
- func (m *ViteHandshake) String() string
- func (m *ViteHandshake) XXX_DiscardUnknown()
- func (m *ViteHandshake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ViteHandshake) XXX_Merge(src proto.Message)
- func (m *ViteHandshake) XXX_Size() int
- func (m *ViteHandshake) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var State_PeerStatus_name = map[int32]string{
0: "Connected",
1: "Disconnected",
}
View Source
var State_PeerStatus_value = map[string]int32{
"Connected": 0,
"Disconnected": 1,
}
Functions ¶
This section is empty.
Types ¶
type ChunkInfo ¶
type ChunkInfo struct { From uint64 `protobuf:"varint,1,opt,name=From,proto3" json:"From,omitempty"` To uint64 `protobuf:"varint,2,opt,name=To,proto3" json:"To,omitempty"` Size uint64 `protobuf:"varint,3,opt,name=Size,proto3" json:"Size,omitempty"` PrevHash []byte `protobuf:"bytes,4,opt,name=PrevHash,proto3" json:"PrevHash,omitempty"` EndHash []byte `protobuf:"bytes,5,opt,name=EndHash,proto3" json:"EndHash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChunkInfo) Descriptor ¶
func (*ChunkInfo) GetEndHash ¶
func (*ChunkInfo) GetPrevHash ¶
func (*ChunkInfo) ProtoMessage ¶
func (*ChunkInfo) ProtoMessage()
func (*ChunkInfo) XXX_DiscardUnknown ¶
func (m *ChunkInfo) XXX_DiscardUnknown()
func (*ChunkInfo) XXX_Marshal ¶
func (*ChunkInfo) XXX_Unmarshal ¶
type ChunkRequest ¶
type ChunkRequest struct { From uint64 `protobuf:"varint,1,opt,name=From,proto3" json:"From,omitempty"` To uint64 `protobuf:"varint,2,opt,name=To,proto3" json:"To,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChunkRequest) Descriptor ¶
func (*ChunkRequest) Descriptor() ([]byte, []int)
func (*ChunkRequest) GetFrom ¶
func (m *ChunkRequest) GetFrom() uint64
func (*ChunkRequest) GetTo ¶
func (m *ChunkRequest) GetTo() uint64
func (*ChunkRequest) ProtoMessage ¶
func (*ChunkRequest) ProtoMessage()
func (*ChunkRequest) Reset ¶
func (m *ChunkRequest) Reset()
func (*ChunkRequest) String ¶
func (m *ChunkRequest) String() string
func (*ChunkRequest) XXX_DiscardUnknown ¶
func (m *ChunkRequest) XXX_DiscardUnknown()
func (*ChunkRequest) XXX_Marshal ¶
func (m *ChunkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChunkRequest) XXX_Merge ¶
func (m *ChunkRequest) XXX_Merge(src proto.Message)
func (*ChunkRequest) XXX_Size ¶
func (m *ChunkRequest) XXX_Size() int
func (*ChunkRequest) XXX_Unmarshal ¶
func (m *ChunkRequest) XXX_Unmarshal(b []byte) error
type State ¶
type State struct { Peers []*State_Peer `protobuf:"bytes,1,rep,name=Peers,proto3" json:"Peers,omitempty"` Patch bool `protobuf:"varint,2,opt,name=Patch,proto3" json:"Patch,omitempty"` Head []byte `protobuf:"bytes,3,opt,name=Head,proto3" json:"Head,omitempty"` Height uint64 `protobuf:"varint,4,opt,name=Height,proto3" json:"Height,omitempty"` Timestamp int64 `protobuf:"varint,10,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*State) Descriptor ¶
func (*State) GetPeers ¶
func (m *State) GetPeers() []*State_Peer
func (*State) GetTimestamp ¶
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
func (*State) XXX_DiscardUnknown ¶
func (m *State) XXX_DiscardUnknown()
func (*State) XXX_Marshal ¶
func (*State) XXX_Unmarshal ¶
type State_Peer ¶
type State_Peer struct { ID []byte `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Status State_PeerStatus `protobuf:"varint,3,opt,name=Status,proto3,enum=protos.State_PeerStatus" json:"Status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*State_Peer) Descriptor ¶
func (*State_Peer) Descriptor() ([]byte, []int)
func (*State_Peer) GetID ¶
func (m *State_Peer) GetID() []byte
func (*State_Peer) GetStatus ¶
func (m *State_Peer) GetStatus() State_PeerStatus
func (*State_Peer) ProtoMessage ¶
func (*State_Peer) ProtoMessage()
func (*State_Peer) Reset ¶
func (m *State_Peer) Reset()
func (*State_Peer) String ¶
func (m *State_Peer) String() string
func (*State_Peer) XXX_DiscardUnknown ¶
func (m *State_Peer) XXX_DiscardUnknown()
func (*State_Peer) XXX_Marshal ¶
func (m *State_Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*State_Peer) XXX_Merge ¶
func (m *State_Peer) XXX_Merge(src proto.Message)
func (*State_Peer) XXX_Size ¶
func (m *State_Peer) XXX_Size() int
func (*State_Peer) XXX_Unmarshal ¶
func (m *State_Peer) XXX_Unmarshal(b []byte) error
type State_PeerStatus ¶
type State_PeerStatus int32
const ( State_Connected State_PeerStatus = 0 State_Disconnected State_PeerStatus = 1 )
func (State_PeerStatus) EnumDescriptor ¶
func (State_PeerStatus) EnumDescriptor() ([]byte, []int)
func (State_PeerStatus) String ¶
func (x State_PeerStatus) String() string
type SyncConnHandshake ¶
type SyncConnHandshake struct { Key []byte `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` Sign []byte `protobuf:"bytes,3,opt,name=Sign,proto3" json:"Sign,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SyncConnHandshake) Descriptor ¶
func (*SyncConnHandshake) Descriptor() ([]byte, []int)
func (*SyncConnHandshake) GetKey ¶
func (m *SyncConnHandshake) GetKey() []byte
func (*SyncConnHandshake) GetSign ¶
func (m *SyncConnHandshake) GetSign() []byte
func (*SyncConnHandshake) GetTimestamp ¶
func (m *SyncConnHandshake) GetTimestamp() int64
func (*SyncConnHandshake) ProtoMessage ¶
func (*SyncConnHandshake) ProtoMessage()
func (*SyncConnHandshake) Reset ¶
func (m *SyncConnHandshake) Reset()
func (*SyncConnHandshake) String ¶
func (m *SyncConnHandshake) String() string
func (*SyncConnHandshake) XXX_DiscardUnknown ¶
func (m *SyncConnHandshake) XXX_DiscardUnknown()
func (*SyncConnHandshake) XXX_Marshal ¶
func (m *SyncConnHandshake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SyncConnHandshake) XXX_Merge ¶
func (m *SyncConnHandshake) XXX_Merge(src proto.Message)
func (*SyncConnHandshake) XXX_Size ¶
func (m *SyncConnHandshake) XXX_Size() int
func (*SyncConnHandshake) XXX_Unmarshal ¶
func (m *SyncConnHandshake) XXX_Unmarshal(b []byte) error
type ViteHandshake ¶
type ViteHandshake struct { Genesis []byte `protobuf:"bytes,1,opt,name=Genesis,proto3" json:"Genesis,omitempty"` Head []byte `protobuf:"bytes,2,opt,name=Head,proto3" json:"Head,omitempty"` Height uint64 `protobuf:"varint,3,opt,name=Height,proto3" json:"Height,omitempty"` Key []byte `protobuf:"bytes,4,opt,name=Key,proto3" json:"Key,omitempty"` FileAddress []byte `protobuf:"bytes,5,opt,name=FileAddress,proto3" json:"FileAddress,omitempty"` Signature []byte `protobuf:"bytes,6,opt,name=Signature,proto3" json:"Signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ViteHandshake) Descriptor ¶
func (*ViteHandshake) Descriptor() ([]byte, []int)
func (*ViteHandshake) GetFileAddress ¶
func (m *ViteHandshake) GetFileAddress() []byte
func (*ViteHandshake) GetGenesis ¶
func (m *ViteHandshake) GetGenesis() []byte
func (*ViteHandshake) GetHead ¶
func (m *ViteHandshake) GetHead() []byte
func (*ViteHandshake) GetHeight ¶
func (m *ViteHandshake) GetHeight() uint64
func (*ViteHandshake) GetKey ¶
func (m *ViteHandshake) GetKey() []byte
func (*ViteHandshake) GetSignature ¶
func (m *ViteHandshake) GetSignature() []byte
func (*ViteHandshake) ProtoMessage ¶
func (*ViteHandshake) ProtoMessage()
func (*ViteHandshake) Reset ¶
func (m *ViteHandshake) Reset()
func (*ViteHandshake) String ¶
func (m *ViteHandshake) String() string
func (*ViteHandshake) XXX_DiscardUnknown ¶
func (m *ViteHandshake) XXX_DiscardUnknown()
func (*ViteHandshake) XXX_Marshal ¶
func (m *ViteHandshake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ViteHandshake) XXX_Merge ¶
func (m *ViteHandshake) XXX_Merge(src proto.Message)
func (*ViteHandshake) XXX_Size ¶
func (m *ViteHandshake) XXX_Size() int
func (*ViteHandshake) XXX_Unmarshal ¶
func (m *ViteHandshake) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.