Documentation ¶
Index ¶
- Variables
- type Block
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetHashFile() []byte
- func (m *Block) GetIndex() uint64
- func (m *Block) GetPrevHash() []byte
- func (m *Block) GetTimestamp() uint64
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (m *Block) String() string
- func (m *Block) XXX_DiscardUnknown()
- func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Block) XXX_Merge(src proto.Message)
- func (m *Block) XXX_Size() int
- func (m *Block) XXX_Unmarshal(b []byte) error
- type Envelope
- func (*Envelope) Descriptor() ([]byte, []int)
- func (m *Envelope) GetData() []byte
- func (m *Envelope) GetType() Envelope_ContentType
- func (*Envelope) ProtoMessage()
- func (m *Envelope) Reset()
- func (m *Envelope) String() string
- func (m *Envelope) XXX_DiscardUnknown()
- func (m *Envelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Envelope) XXX_Merge(src proto.Message)
- func (m *Envelope) XXX_Size() int
- func (m *Envelope) XXX_Unmarshal(b []byte) error
- type Envelope_ContentType
- type File
- func (*File) Descriptor() ([]byte, []int)
- func (m *File) GetData() []byte
- func (m *File) GetLastModification() []byte
- func (m *File) GetName() []byte
- func (m *File) GetSize() []byte
- func (*File) ProtoMessage()
- func (m *File) Reset()
- func (m *File) String() string
- func (m *File) XXX_DiscardUnknown()
- func (m *File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *File) XXX_Merge(src proto.Message)
- func (m *File) XXX_Size() int
- func (m *File) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Envelope_ContentType_name = map[int32]string{
0: "UPLOAD",
1: "EXIST",
}
View Source
var Envelope_ContentType_value = map[string]int32{
"UPLOAD": 0,
"EXIST": 1,
}
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` PrevHash []byte `protobuf:"bytes,3,opt,name=prevHash,proto3" json:"prevHash,omitempty"` HashFile []byte `protobuf:"bytes,4,opt,name=hashFile,proto3" json:"hashFile,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Block) Descriptor ¶
func (*Block) GetHashFile ¶
func (*Block) GetPrevHash ¶
func (*Block) GetTimestamp ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) XXX_DiscardUnknown ¶
func (m *Block) XXX_DiscardUnknown()
func (*Block) XXX_Marshal ¶
func (*Block) XXX_Unmarshal ¶
type Envelope ¶
type Envelope struct { Type Envelope_ContentType `protobuf:"varint,1,opt,name=type,proto3,enum=Envelope_ContentType" json:"type,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Envelope) Descriptor ¶
func (*Envelope) GetType ¶
func (m *Envelope) GetType() Envelope_ContentType
func (*Envelope) ProtoMessage ¶
func (*Envelope) ProtoMessage()
func (*Envelope) XXX_DiscardUnknown ¶
func (m *Envelope) XXX_DiscardUnknown()
func (*Envelope) XXX_Marshal ¶
func (*Envelope) XXX_Unmarshal ¶
type Envelope_ContentType ¶
type Envelope_ContentType int32
const ( Envelope_UPLOAD Envelope_ContentType = 0 Envelope_EXIST Envelope_ContentType = 1 )
func (Envelope_ContentType) EnumDescriptor ¶
func (Envelope_ContentType) EnumDescriptor() ([]byte, []int)
func (Envelope_ContentType) String ¶
func (x Envelope_ContentType) String() string
type File ¶
type File struct { Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Size []byte `protobuf:"bytes,2,opt,name=size,proto3" json:"size,omitempty"` LastModification []byte `protobuf:"bytes,3,opt,name=lastModification,proto3" json:"lastModification,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*File) Descriptor ¶
func (*File) GetLastModification ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) XXX_DiscardUnknown ¶
func (m *File) XXX_DiscardUnknown()
func (*File) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.