btns_pb

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 5 Imported by: 2

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*IpnsEntry) GetPubKey

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

func (*IpnsEntry) GetSequence

func (m *IpnsEntry) GetSequence() uint64

func (*IpnsEntry) GetSignature

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

func (*IpnsEntry) GetTtl

func (m *IpnsEntry) GetTtl() uint64

func (*IpnsEntry) GetValidity

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

func (*IpnsEntry) GetValidityType

func (m *IpnsEntry) GetValidityType() IpnsEntry_ValidityType

func (*IpnsEntry) GetValue

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

func (*IpnsEntry) Marshal

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

func (*IpnsEntry) MarshalTo

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

func (*IpnsEntry) MarshalToSizedBuffer

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

func (*IpnsEntry) ProtoMessage

func (*IpnsEntry) ProtoMessage()

func (*IpnsEntry) Reset

func (m *IpnsEntry) Reset()

func (*IpnsEntry) Size

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

func (*IpnsEntry) String

func (m *IpnsEntry) String() string

func (*IpnsEntry) Unmarshal

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

func (*IpnsEntry) XXX_DiscardUnknown

func (m *IpnsEntry) XXX_DiscardUnknown()

func (*IpnsEntry) XXX_Marshal

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

func (*IpnsEntry) XXX_Merge

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

func (*IpnsEntry) XXX_Size

func (m *IpnsEntry) XXX_Size() int

func (*IpnsEntry) XXX_Unmarshal

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

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 (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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL