go-ipns: github.com/ipfs/go-ipns/pb Index | Files

package ipns_pb

import "github.com/ipfs/go-ipns/pb"


Package Files



var (
    ErrInvalidLengthIpns        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowIpns          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupIpns = fmt.Errorf("proto: unexpected end of group")
var IpnsEntry_ValidityType_name = map[int32]string{
    0: "EOL",
var IpnsEntry_ValidityType_value = map[string]int32{
    "EOL": 0,

type IpnsEntry Uses

type IpnsEntry struct {
    Value        []byte                  `protobuf:"bytes,1,req,name=value" json:"value,omitempty"`
    Signature    []byte                  `protobuf:"bytes,2,req,name=signature" json:"signature,omitempty"`
    ValidityType *IpnsEntry_ValidityType `protobuf:"varint,3,opt,name=validityType,enum=ipns.pb.IpnsEntry_ValidityType" json:"validityType,omitempty"`
    Validity     []byte                  `protobuf:"bytes,4,opt,name=validity" json:"validity,omitempty"`
    Sequence     *uint64                 `protobuf:"varint,5,opt,name=sequence" json:"sequence,omitempty"`
    Ttl          *uint64                 `protobuf:"varint,6,opt,name=ttl" json:"ttl,omitempty"`
    // 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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`

func (*IpnsEntry) Descriptor Uses

func (*IpnsEntry) Descriptor() ([]byte, []int)

func (*IpnsEntry) GetPubKey Uses

func (m *IpnsEntry) GetPubKey() []byte

func (*IpnsEntry) GetSequence Uses

func (m *IpnsEntry) GetSequence() uint64

func (*IpnsEntry) GetSignature Uses

func (m *IpnsEntry) GetSignature() []byte

func (*IpnsEntry) GetTtl Uses

func (m *IpnsEntry) GetTtl() uint64

func (*IpnsEntry) GetValidity Uses

func (m *IpnsEntry) GetValidity() []byte

func (*IpnsEntry) GetValidityType Uses

func (m *IpnsEntry) GetValidityType() IpnsEntry_ValidityType

func (*IpnsEntry) GetValue Uses

func (m *IpnsEntry) GetValue() []byte

func (*IpnsEntry) Marshal Uses

func (m *IpnsEntry) Marshal() (dAtA []byte, err error)

func (*IpnsEntry) MarshalTo Uses

func (m *IpnsEntry) MarshalTo(dAtA []byte) (int, error)

func (*IpnsEntry) MarshalToSizedBuffer Uses

func (m *IpnsEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IpnsEntry) ProtoMessage Uses

func (*IpnsEntry) ProtoMessage()

func (*IpnsEntry) Reset Uses

func (m *IpnsEntry) Reset()

func (*IpnsEntry) Size Uses

func (m *IpnsEntry) Size() (n int)

func (*IpnsEntry) String Uses

func (m *IpnsEntry) String() string

func (*IpnsEntry) Unmarshal Uses

func (m *IpnsEntry) Unmarshal(dAtA []byte) error

func (*IpnsEntry) XXX_DiscardUnknown Uses

func (m *IpnsEntry) XXX_DiscardUnknown()

func (*IpnsEntry) XXX_Marshal Uses

func (m *IpnsEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IpnsEntry) XXX_Merge Uses

func (m *IpnsEntry) XXX_Merge(src proto.Message)

func (*IpnsEntry) XXX_Size Uses

func (m *IpnsEntry) XXX_Size() int

func (*IpnsEntry) XXX_Unmarshal Uses

func (m *IpnsEntry) XXX_Unmarshal(b []byte) error

type IpnsEntry_ValidityType Uses

type IpnsEntry_ValidityType int32
const (
    // setting an EOL says "this record is valid until..."
    IpnsEntry_EOL IpnsEntry_ValidityType = 0

func (IpnsEntry_ValidityType) Enum Uses

func (x IpnsEntry_ValidityType) Enum() *IpnsEntry_ValidityType

func (IpnsEntry_ValidityType) EnumDescriptor Uses

func (IpnsEntry_ValidityType) EnumDescriptor() ([]byte, []int)

func (IpnsEntry_ValidityType) String Uses

func (x IpnsEntry_ValidityType) String() string

func (*IpnsEntry_ValidityType) UnmarshalJSON Uses

func (x *IpnsEntry_ValidityType) UnmarshalJSON(data []byte) error

Package ipns_pb imports 5 packages (graph) and is imported by 19 packages. Updated 2019-12-03. Refresh now. Tools for package owners.