Documentation ¶
Index ¶
- Variables
- type BlockStream
- func (*BlockStream) Descriptor() ([]byte, []int)
- func (this *BlockStream) Equal(that interface{}) bool
- func (m *BlockStream) GetBlocks() [][]byte
- func (m *BlockStream) GetCids() [][]byte
- func (m *BlockStream) GetError() BlockStream_ErrorCode
- func (m *BlockStream) GetId() uint32
- func (m *BlockStream) GetToken() string
- func (m *BlockStream) GetType() BlockStream_Type
- func (this *BlockStream) GoString() string
- func (m *BlockStream) Marshal() (dAtA []byte, err error)
- func (m *BlockStream) MarshalTo(dAtA []byte) (int, error)
- func (m *BlockStream) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BlockStream) ProtoMessage()
- func (m *BlockStream) Reset()
- func (m *BlockStream) Size() (n int)
- func (this *BlockStream) String() string
- func (m *BlockStream) Unmarshal(dAtA []byte) error
- func (m *BlockStream) XXX_DiscardUnknown()
- func (m *BlockStream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockStream) XXX_Merge(src proto.Message)
- func (m *BlockStream) XXX_Size() int
- func (m *BlockStream) XXX_Unmarshal(b []byte) error
- type BlockStream_ErrorCode
- type BlockStream_Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthBlockstream = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBlockstream = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBlockstream = fmt.Errorf("proto: unexpected end of group") )
View Source
var BlockStream_ErrorCode_name = map[int32]string{
0: "Null",
1: "Unknown",
2: "NotFound",
}
View Source
var BlockStream_ErrorCode_value = map[string]int32{
"Null": 0,
"Unknown": 1,
"NotFound": 2,
}
View Source
var BlockStream_Type_name = map[int32]string{
0: "REQUEST",
1: "RESPONSE",
3: "HANDSHAKE",
}
View Source
var BlockStream_Type_value = map[string]int32{
"REQUEST": 0,
"RESPONSE": 1,
"HANDSHAKE": 3,
}
Functions ¶
This section is empty.
Types ¶
type BlockStream ¶
type BlockStream struct { Type BlockStream_Type `protobuf:"varint,1,opt,name=type,proto3,enum=pb.BlockStream_Type" json:"type,omitempty"` Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Cids [][]byte `protobuf:"bytes,3,rep,name=cids,proto3" json:"cids,omitempty"` Blocks [][]byte `protobuf:"bytes,4,rep,name=blocks,proto3" json:"blocks,omitempty"` Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"` Error BlockStream_ErrorCode `protobuf:"varint,6,opt,name=error,proto3,enum=pb.BlockStream_ErrorCode" json:"error,omitempty"` }
func (*BlockStream) Descriptor ¶
func (*BlockStream) Descriptor() ([]byte, []int)
func (*BlockStream) Equal ¶
func (this *BlockStream) Equal(that interface{}) bool
func (*BlockStream) GetBlocks ¶
func (m *BlockStream) GetBlocks() [][]byte
func (*BlockStream) GetCids ¶
func (m *BlockStream) GetCids() [][]byte
func (*BlockStream) GetError ¶ added in v1.1.5
func (m *BlockStream) GetError() BlockStream_ErrorCode
func (*BlockStream) GetId ¶
func (m *BlockStream) GetId() uint32
func (*BlockStream) GetToken ¶
func (m *BlockStream) GetToken() string
func (*BlockStream) GetType ¶
func (m *BlockStream) GetType() BlockStream_Type
func (*BlockStream) GoString ¶
func (this *BlockStream) GoString() string
func (*BlockStream) Marshal ¶
func (m *BlockStream) Marshal() (dAtA []byte, err error)
func (*BlockStream) MarshalToSizedBuffer ¶
func (m *BlockStream) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BlockStream) ProtoMessage ¶
func (*BlockStream) ProtoMessage()
func (*BlockStream) Reset ¶
func (m *BlockStream) Reset()
func (*BlockStream) Size ¶
func (m *BlockStream) Size() (n int)
func (*BlockStream) String ¶
func (this *BlockStream) String() string
func (*BlockStream) Unmarshal ¶
func (m *BlockStream) Unmarshal(dAtA []byte) error
func (*BlockStream) XXX_DiscardUnknown ¶
func (m *BlockStream) XXX_DiscardUnknown()
func (*BlockStream) XXX_Marshal ¶
func (m *BlockStream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockStream) XXX_Merge ¶
func (m *BlockStream) XXX_Merge(src proto.Message)
func (*BlockStream) XXX_Size ¶
func (m *BlockStream) XXX_Size() int
func (*BlockStream) XXX_Unmarshal ¶
func (m *BlockStream) XXX_Unmarshal(b []byte) error
type BlockStream_ErrorCode ¶ added in v1.1.5
type BlockStream_ErrorCode int32
const ( Null BlockStream_ErrorCode = 0 Unknown BlockStream_ErrorCode = 1 NotFound BlockStream_ErrorCode = 2 )
func (BlockStream_ErrorCode) EnumDescriptor ¶ added in v1.1.5
func (BlockStream_ErrorCode) EnumDescriptor() ([]byte, []int)
func (BlockStream_ErrorCode) String ¶ added in v1.1.5
func (x BlockStream_ErrorCode) String() string
type BlockStream_Type ¶
type BlockStream_Type int32
const ( REQUEST BlockStream_Type = 0 RESPONSE BlockStream_Type = 1 HANDSHAKE BlockStream_Type = 3 )
func (BlockStream_Type) EnumDescriptor ¶
func (BlockStream_Type) EnumDescriptor() ([]byte, []int)
func (BlockStream_Type) String ¶
func (x BlockStream_Type) String() string
Click to show internal directories.
Click to hide internal directories.