Documentation ¶
Index ¶
- Variables
- type IpnsEntry
- func (*IpnsEntry) Descriptor() ([]byte, []int)
- func (m *IpnsEntry) GetPubKey() []byte
- func (m *IpnsEntry) GetSequence() uint64
- func (m *IpnsEntry) GetSignature() []byte
- func (m *IpnsEntry) GetTtl() uint64
- func (m *IpnsEntry) GetValidity() []byte
- func (m *IpnsEntry) GetValidityType() IpnsEntry_ValidityType
- func (m *IpnsEntry) GetValue() []byte
- func (m *IpnsEntry) Marshal() (dAtA []byte, err error)
- func (m *IpnsEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *IpnsEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IpnsEntry) ProtoMessage()
- func (m *IpnsEntry) Reset()
- func (m *IpnsEntry) Size() (n int)
- func (m *IpnsEntry) String() string
- func (m *IpnsEntry) Unmarshal(dAtA []byte) error
- func (m *IpnsEntry) XXX_DiscardUnknown()
- func (m *IpnsEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IpnsEntry) XXX_Merge(src proto.Message)
- func (m *IpnsEntry) XXX_Size() int
- func (m *IpnsEntry) XXX_Unmarshal(b []byte) error
- type IpnsEntry_ValidityType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthIpns = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIpns = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIpns = fmt.Errorf("proto: unexpected end of group") )
View Source
var IpnsEntry_ValidityType_name = map[int32]string{
0: "EOL",
}
View Source
var IpnsEntry_ValidityType_value = map[string]int32{
"EOL": 0,
}
Functions ¶
This section is empty.
Types ¶
type IpnsEntry ¶
type IpnsEntry struct { Value []byte `protobuf:"bytes,1,req,name=value" json:"value,omitempty" pg:"value"` Signature []byte `protobuf:"bytes,2,req,name=signature" json:"signature,omitempty" pg:"signature"` ValidityType *IpnsEntry_ValidityType `protobuf:"varint,3,opt,name=validityType,enum=btns.pb.IpnsEntry_ValidityType" json:"validityType,omitempty" pg:"validityType"` Validity []byte `protobuf:"bytes,4,opt,name=validity" json:"validity,omitempty" pg:"validity"` Sequence *uint64 `protobuf:"varint,5,opt,name=sequence" json:"sequence,omitempty" pg:"sequence"` Ttl *uint64 `protobuf:"varint,6,opt,name=ttl" json:"ttl,omitempty" pg:"ttl"` // in order for nodes to properly validate a record upon receipt, they need the public // key associated with it. For old RSA keys, its easiest if we just send this as part of // the record itself. For newer ed25519 keys, the public key can be embedded in the // peerID, making this field unnecessary. PubKey []byte `protobuf:"bytes,7,opt,name=pubKey" json:"pubKey,omitempty" pg:"pubKey"` XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"` XXX_unrecognized []byte `json:"-" pg:"-"` XXX_sizecache int32 `json:"-" pg:"-"` }
func (*IpnsEntry) Descriptor ¶
func (*IpnsEntry) GetSequence ¶
func (*IpnsEntry) GetSignature ¶
func (*IpnsEntry) GetValidity ¶
func (*IpnsEntry) GetValidityType ¶
func (m *IpnsEntry) GetValidityType() IpnsEntry_ValidityType
func (*IpnsEntry) MarshalToSizedBuffer ¶
func (*IpnsEntry) ProtoMessage ¶
func (*IpnsEntry) ProtoMessage()
func (*IpnsEntry) XXX_DiscardUnknown ¶
func (m *IpnsEntry) XXX_DiscardUnknown()
func (*IpnsEntry) XXX_Marshal ¶
func (*IpnsEntry) XXX_Unmarshal ¶
type IpnsEntry_ValidityType ¶
type IpnsEntry_ValidityType int32
const ( // setting an EOL says "this record is valid until..." IpnsEntry_EOL IpnsEntry_ValidityType = 0 )
func (IpnsEntry_ValidityType) Enum ¶
func (x IpnsEntry_ValidityType) Enum() *IpnsEntry_ValidityType
func (IpnsEntry_ValidityType) EnumDescriptor ¶
func (IpnsEntry_ValidityType) EnumDescriptor() ([]byte, []int)
func (IpnsEntry_ValidityType) String ¶
func (x IpnsEntry_ValidityType) String() string
func (*IpnsEntry_ValidityType) UnmarshalJSON ¶
func (x *IpnsEntry_ValidityType) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.