dms3ns_pb

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDms3Ns        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDms3Ns          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDms3Ns = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Dms3NsEntry_ValidityType_name = map[int32]string{
	0: "EOL",
}
View Source
var Dms3NsEntry_ValidityType_value = map[string]int32{
	"EOL": 0,
}

Functions

This section is empty.

Types

type Dms3NsEntry

type Dms3NsEntry struct {
	Value        []byte                    `protobuf:"bytes,1,req,name=value" json:"value,omitempty"`
	Signature    []byte                    `protobuf:"bytes,2,req,name=signature" json:"signature,omitempty"`
	ValidityType *Dms3NsEntry_ValidityType `protobuf:"varint,3,opt,name=validityType,enum=dms3ns.pb.Dms3NsEntry_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 (*Dms3NsEntry) Descriptor

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

func (*Dms3NsEntry) GetPubKey

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

func (*Dms3NsEntry) GetSequence

func (m *Dms3NsEntry) GetSequence() uint64

func (*Dms3NsEntry) GetSignature

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

func (*Dms3NsEntry) GetTtl

func (m *Dms3NsEntry) GetTtl() uint64

func (*Dms3NsEntry) GetValidity

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

func (*Dms3NsEntry) GetValidityType

func (m *Dms3NsEntry) GetValidityType() Dms3NsEntry_ValidityType

func (*Dms3NsEntry) GetValue

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

func (*Dms3NsEntry) Marshal

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

func (*Dms3NsEntry) MarshalTo

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

func (*Dms3NsEntry) MarshalToSizedBuffer

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

func (*Dms3NsEntry) ProtoMessage

func (*Dms3NsEntry) ProtoMessage()

func (*Dms3NsEntry) Reset

func (m *Dms3NsEntry) Reset()

func (*Dms3NsEntry) Size

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

func (*Dms3NsEntry) String

func (m *Dms3NsEntry) String() string

func (*Dms3NsEntry) Unmarshal

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

func (*Dms3NsEntry) XXX_DiscardUnknown

func (m *Dms3NsEntry) XXX_DiscardUnknown()

func (*Dms3NsEntry) XXX_Marshal

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

func (*Dms3NsEntry) XXX_Merge

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

func (*Dms3NsEntry) XXX_Size

func (m *Dms3NsEntry) XXX_Size() int

func (*Dms3NsEntry) XXX_Unmarshal

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

type Dms3NsEntry_ValidityType

type Dms3NsEntry_ValidityType int32
const (
	// setting an EOL says "this record is valid until..."
	Dms3NsEntry_EOL Dms3NsEntry_ValidityType = 0
)

func (Dms3NsEntry_ValidityType) Enum

func (Dms3NsEntry_ValidityType) EnumDescriptor

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

func (Dms3NsEntry_ValidityType) String

func (x Dms3NsEntry_ValidityType) String() string

func (*Dms3NsEntry_ValidityType) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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