Documentation ¶
Index ¶
- Variables
- func ForceReferenceOf(r Referencable, digester cryptkit.DataDigester, template reference.Template) reference.Global
- func InitReferenceFactory(r Referencable, digester cryptkit.DataDigester, template reference.Template)
- func MarshalMessageWithPayloads(m BasicMessage) ([]byte, error)
- func MarshalMessageWithPayloadsTo(m BasicMessage, b []byte) (int, error)
- func MarshalMessageWithPayloadsToSizedBuffer(m BasicMessage, b []byte) (int, error)
- func MarshalMessageWithPayloadsToWriter(m BasicMessage, w io.Writer) error
- func ProtoSizeMessageWithPayloads(m BasicMessage) (sz int)
- func SetReferenceFactoryCanPull(r Referencable, canPull bool)
- func UnsetRecordBodyPayloadsForTest(r *RecordBody)
- type Any
- func (p *Any) Equal(that interface{}) bool
- func (p *Any) Get() rmsreg.GoGoSerializable
- func (p *Any) MarshalText() ([]byte, error)
- func (p *Any) MarshalTo(b []byte) (n int, err error)
- func (p *Any) MarshalToSizedBuffer(b []byte) (n int, err error)
- func (p *Any) ProtoSize() int
- func (p *Any) Set(v rmsreg.GoGoSerializable)
- func (p *Any) Unmarshal(b []byte) error
- func (p *Any) UnmarshalCustom(b []byte, registry *rmsreg.TypeRegistry, skipFn rmsreg.UnknownCallbackFunc) error
- type AnyLazy
- func (p *AnyLazy) Equal(that interface{}) bool
- func (p *AnyLazy) IsZero() bool
- func (p *AnyLazy) MarshalText() ([]byte, error)
- func (p *AnyLazy) MarshalTo(b []byte) (int, error)
- func (p *AnyLazy) MarshalToSizedBuffer(b []byte) (int, error)
- func (p *AnyLazy) ProtoSize() int
- func (p *AnyLazy) Set(v rmsreg.GoGoSerializable)
- func (p *AnyLazy) SetAsLazy(v rmsreg.MarshalerTo) error
- func (p *AnyLazy) TryGet() (isLazy bool, r rmsreg.GoGoSerializable)
- func (p *AnyLazy) TryGetLazy() LazyValue
- func (p *AnyLazy) Unmarshal(b []byte) error
- func (p *AnyLazy) UnmarshalCustom(b []byte, registry *rmsreg.TypeRegistry) error
- type AnyLazyCopy
- type AnyRecord
- func (p *AnyRecord) Equal(that interface{}) bool
- func (p *AnyRecord) Get() BasicRecord
- func (p *AnyRecord) GetRecordPayloads() RecordPayloads
- func (p *AnyRecord) MarshalText() ([]byte, error)
- func (p *AnyRecord) MarshalTo(b []byte) (int, error)
- func (p *AnyRecord) MarshalToSizedBuffer(b []byte) (int, error)
- func (p *AnyRecord) ProtoSize() int
- func (p *AnyRecord) Set(v BasicRecord)
- func (p *AnyRecord) SetRecordPayloads(payloads RecordPayloads, digester cryptkit.DataDigester) error
- func (p *AnyRecord) Unmarshal(b []byte) error
- func (p *AnyRecord) UnmarshalCustom(b []byte, typeFn func(uint64) reflect.Type, skipFn rmsreg.UnknownCallbackFunc) error
- func (p *AnyRecord) Visit(visitor RecordVisitor) error
- type AnyRecordLazy
- func (p *AnyRecordLazy) CopyNoPayloads() AnyRecordLazy
- func (p *AnyRecordLazy) Equal(that interface{}) bool
- func (p *AnyRecordLazy) GetRecordPayloads() RecordPayloads
- func (p *AnyRecordLazy) Set(v BasicRecord)
- func (p *AnyRecordLazy) SetAsLazy(v BasicRecord) error
- func (p *AnyRecordLazy) SetRecordPayloads(payloads RecordPayloads, digester cryptkit.DataDigester) error
- func (p *AnyRecordLazy) TryGet() (isLazy bool, r BasicRecord)
- func (p *AnyRecordLazy) TryGetLazy() LazyRecordValue
- func (p *AnyRecordLazy) Unmarshal(b []byte) error
- func (p *AnyRecordLazy) UnmarshalCustom(b []byte, registry *rmsreg.TypeRegistry) error
- func (p *AnyRecordLazy) Visit(visitor RecordVisitor) error
- type AnyRecordLazyCopy
- type BasicMessage
- func UnmarshalMessageApplyPayloads(um interface{}, digester cryptkit.DataDigester, payloads RecordPayloads) (BasicMessage, error)
- func UnmarshalMessageWithPayloadsFromBytes(b []byte, digester cryptkit.DataDigester, typeFn rmsreg.UnmarshalTypeFunc) (uint64, BasicMessage, error)
- func UnmarshalMessageWithPayloadsFromReader(m BasicMessage, r io.Reader) (BasicMessage, error)
- type BasicRecord
- type Binary
- type DigestProvider
- type LazyRecordValue
- func (p *LazyRecordValue) GetRecordBody() *RecordBody
- func (p *LazyRecordValue) GetRecordPayloads() RecordPayloads
- func (p *LazyRecordValue) SetRecordPayloads(payloads RecordPayloads, digester cryptkit.DataDigester) error
- func (p *LazyRecordValue) Unmarshal() (BasicRecord, error)
- func (p *LazyRecordValue) UnmarshalAs(v BasicRecord, skipFn rmsreg.UnknownCallbackFunc) (bool, error)
- func (p *LazyRecordValue) UnmarshalAsType(vType reflect.Type, skipFn rmsreg.UnknownCallbackFunc) (BasicRecord, error)
- func (p *LazyRecordValue) Visit(RecordVisitor) error
- type LazyValue
- func (v LazyValue) EqualBytes(b []byte) bool
- func (v LazyValue) IsEmpty() bool
- func (v LazyValue) IsZero() bool
- func (v LazyValue) MarshalText() ([]byte, error)
- func (v LazyValue) MarshalTo(b []byte) (int, error)
- func (v LazyValue) MarshalToSizedBuffer(b []byte) (int, error)
- func (v LazyValue) ProtoSize() int
- func (v LazyValue) Unmarshal() (rmsreg.GoGoSerializable, error)
- func (v LazyValue) UnmarshalAsAny(target interface{}, skipFn rmsreg.UnknownCallbackFunc) (bool, error)
- func (v LazyValue) UnmarshalAsType(vType reflect.Type, skipFn rmsreg.UnknownCallbackFunc) (rmsreg.GoGoSerializable, error)
- func (v LazyValue) UnmarshalCustom(registry *rmsreg.TypeRegistry, skipFn rmsreg.UnknownCallbackFunc) (rmsreg.GoGoSerializable, error)
- func (v LazyValue) WriteTo(w io.Writer) (int64, error)
- type LazyValueReader
- type MessageVisitor
- type PayloadHolder
- type RawBinary
- func (p RawBinary) AsBinary() Binary
- func (p *RawBinary) AsByteString() longbits.ByteString
- func (p *RawBinary) CopyTo(b []byte) int
- func (p *RawBinary) Equal(o longbits.FixedReader) bool
- func (p *RawBinary) EqualRaw(o RawBinary) bool
- func (p *RawBinary) FixedByteSize() int
- func (p *RawBinary) GetBytes() []byte
- func (p *RawBinary) IsEmpty() bool
- func (p RawBinary) IsZero() bool
- func (p *RawBinary) MarshalText() ([]byte, error)
- func (p *RawBinary) Set(value longbits.FixedReader)
- func (p *RawBinary) SetBytes(value []byte)
- func (p *RawBinary) SetProto(value proto.ProtoSizer)
- func (p *RawBinary) SetProtoWithSizer(value proto.Sizer)
- func (p *RawBinary) WriteTo(w io.Writer) (int64, error)
- type RecordBody
- func (p *RecordBody) AddExtensionPayload(body RawBinary)
- func (p *RecordBody) CopyRecordPayloads(rp RecordPayloads)
- func (p *RecordBody) Equal(o *RecordBody) bool
- func (p *RecordBody) GetExtensionDigestCount() int
- func (p *RecordBody) GetExtensionPayload(index int) RawBinary
- func (p *RecordBody) GetExtensionPayloadCount() int
- func (p *RecordBody) GetPayload() RawBinary
- func (p *RecordBody) GetRecordPayloads() RecordPayloads
- func (p *RecordBody) HasPayload() bool
- func (p *RecordBody) HasPayloadDigest() bool
- func (p *RecordBody) IsPostUnmarshalCompleted() bool
- func (p RecordBody) MarshalText() (text []byte, err error)
- func (p *RecordBody) MarshalTo(b []byte) (int, error)
- func (p *RecordBody) MarshalToSizedBuffer(b []byte) (int, error)
- func (p *RecordBody) PostUnmarshalVerifyAndAdd(data RawBinary) (err error)
- func (p *RecordBody) ProtoSize() int
- func (p *RecordBody) Reset()
- func (p *RecordBody) SetDigester(digester cryptkit.DataDigester)
- func (p *RecordBody) SetPayload(body RawBinary)
- func (p *RecordBody) SetRecordPayloads(rp RecordPayloads, digester cryptkit.DataDigester) error
- func (p *RecordBody) Unmarshal(b []byte) error
- func (p *RecordBody) VerifyAnyPayload(index int, data RawBinary) (err error)
- type RecordBodyDigests
- func (p *RecordBodyDigests) AddDigest(d0 cryptkit.Digest)
- func (p *RecordBodyDigests) Count() int
- func (p *RecordBodyDigests) Equal(o *RecordBodyDigests) bool
- func (p *RecordBodyDigests) GetDigest(index int) cryptkit.Digest
- func (p *RecordBodyDigests) IsEmpty() bool
- func (p RecordBodyDigests) MarshalText() (text []byte, err error)
- func (p *RecordBodyDigests) MarshalTo(b []byte) (int, error)
- func (p *RecordBodyDigests) MarshalToSizedBuffer(b []byte) (int, error)
- func (p *RecordBodyDigests) ProtoSize() int
- func (p *RecordBodyDigests) Reset()
- func (p *RecordBodyDigests) Unmarshal(b []byte) error
- func (p *RecordBodyDigests) VerifyDigest(index int, data RawBinary, digester cryptkit.DataDigester) error
- type RecordBodyForLazy
- func (m *RecordBodyForLazy) Equal(that interface{}) bool
- func (m *RecordBodyForLazy) GetRecordBody() RecordBody
- func (m *RecordBodyForLazy) Marshal() (dAtA []byte, err error)
- func (m *RecordBodyForLazy) MarshalTo(dAtA []byte) (int, error)
- func (m *RecordBodyForLazy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (m *RecordBodyForLazy) ProtoSize() (n int)
- func (m *RecordBodyForLazy) Reset()
- func (m *RecordBodyForLazy) Unmarshal(dAtA []byte) error
- func (m *RecordBodyForLazy) UnmarshalWithUnknownCallback(dAtA []byte, skipFn func([]byte) (int, error)) (int, error)
- type RecordPayloads
- func (p *RecordPayloads) ApplyPayloadsTo(record PayloadHolder, digester cryptkit.DataDigester) error
- func (p *RecordPayloads) Count() int
- func (p *RecordPayloads) GetExtensionID(index int) uint32
- func (p *RecordPayloads) GetPayloadOrExtension(index int) rmsreg.MarshalerTo
- func (p *RecordPayloads) IsEmpty() bool
- func (p *RecordPayloads) MarshalTo(b []byte) (int, error)
- func (p *RecordPayloads) ProtoSize() int
- func (p *RecordPayloads) TryUnmarshalPayloadFromBytes(b []byte) (int, error)
- func (p *RecordPayloads) WrapSkipFunc(skipFn rmsreg.UnknownCallbackFunc) rmsreg.UnknownCallbackFunc
- type RecordVisitor
- type Referencable
- type Reference
- func (p *Reference) Equal(o *Reference) bool
- func (p *Reference) Get() reference.Holder
- func (p *Reference) GetPulseOfBase() pulse.Number
- func (p *Reference) GetPulseOfLocal() pulse.Number
- func (p *Reference) GetValue() reference.Global
- func (p *Reference) GetValueWithoutBase() reference.Local
- func (p *Reference) GetWithoutBase() reference.LocalHolder
- func (p *Reference) IsEmpty() bool
- func (p *Reference) IsZero() bool
- func (p *Reference) MarshalText() ([]byte, error)
- func (p *Reference) MarshalTo(b []byte) (int, error)
- func (p *Reference) MarshalToSizedBuffer(b []byte) (int, error)
- func (p *Reference) NormEmpty() Reference
- func (p *Reference) ProtoSize() int
- func (p *Reference) Set(holder reference.Holder)
- func (p *Reference) SetExact(holder reference.Holder)
- func (p *Reference) SetLazy(lazy ReferenceProvider)
- func (p *Reference) SetWithoutBase(holder reference.LocalHolder)
- func (p *Reference) Unmarshal(b []byte) error
- type ReferenceProvider
- func DefaultLazyReferenceTo(r Referencable) ReferenceProvider
- func LazyReferenceTo(r Referencable, template reference.Template) ReferenceProvider
- func LazyReferenceToWithDigester(r Referencable, digester cryptkit.DataDigester, template reference.Template) ReferenceProvider
- func NewRawValueProvider(global reference.Global) ReferenceProvider
- func NewRefValue(digest cryptkit.Digest, t reference.Template) ReferenceProvider
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ForceReferenceOf ¶
func ForceReferenceOf(r Referencable, digester cryptkit.DataDigester, template reference.Template) reference.Global
func InitReferenceFactory ¶
func InitReferenceFactory(r Referencable, digester cryptkit.DataDigester, template reference.Template)
func MarshalMessageWithPayloads ¶
func MarshalMessageWithPayloads(m BasicMessage) ([]byte, error)
func MarshalMessageWithPayloadsTo ¶
func MarshalMessageWithPayloadsTo(m BasicMessage, b []byte) (int, error)
func MarshalMessageWithPayloadsToSizedBuffer ¶
func MarshalMessageWithPayloadsToSizedBuffer(m BasicMessage, b []byte) (int, error)
func MarshalMessageWithPayloadsToWriter ¶
func MarshalMessageWithPayloadsToWriter(m BasicMessage, w io.Writer) error
func ProtoSizeMessageWithPayloads ¶
func ProtoSizeMessageWithPayloads(m BasicMessage) (sz int)
func SetReferenceFactoryCanPull ¶
func SetReferenceFactoryCanPull(r Referencable, canPull bool)
func UnsetRecordBodyPayloadsForTest ¶
func UnsetRecordBodyPayloadsForTest(r *RecordBody)
Types ¶
type Any ¶
type Any struct {
// contains filtered or unexported fields
}
func NewAny ¶
func NewAny(v rmsreg.GoGoSerializable) Any
func (*Any) Get ¶
func (p *Any) Get() rmsreg.GoGoSerializable
func (*Any) MarshalText ¶
func (*Any) Set ¶
func (p *Any) Set(v rmsreg.GoGoSerializable)
func (*Any) UnmarshalCustom ¶
func (p *Any) UnmarshalCustom(b []byte, registry *rmsreg.TypeRegistry, skipFn rmsreg.UnknownCallbackFunc) error
type AnyLazy ¶
type AnyLazy struct {
// contains filtered or unexported fields
}
func (*AnyLazy) MarshalText ¶
func (*AnyLazy) MarshalToSizedBuffer ¶
func (*AnyLazy) Set ¶
func (p *AnyLazy) Set(v rmsreg.GoGoSerializable)
func (*AnyLazy) TryGetLazy ¶
func (*AnyLazy) UnmarshalCustom ¶
func (p *AnyLazy) UnmarshalCustom(b []byte, registry *rmsreg.TypeRegistry) error
type AnyLazyCopy ¶
type AnyLazyCopy struct {
// contains filtered or unexported fields
}
func (*AnyLazyCopy) Unmarshal ¶
func (p *AnyLazyCopy) Unmarshal(b []byte) error
func (*AnyLazyCopy) UnmarshalWithRegistry ¶
func (p *AnyLazyCopy) UnmarshalWithRegistry(b []byte, registry *rmsreg.TypeRegistry) error
type AnyRecord ¶
type AnyRecord struct {
// contains filtered or unexported fields
}
func (*AnyRecord) Get ¶
func (p *AnyRecord) Get() BasicRecord
func (*AnyRecord) GetRecordPayloads ¶
func (p *AnyRecord) GetRecordPayloads() RecordPayloads
func (*AnyRecord) MarshalText ¶
func (*AnyRecord) MarshalToSizedBuffer ¶
func (*AnyRecord) Set ¶
func (p *AnyRecord) Set(v BasicRecord)
func (*AnyRecord) SetRecordPayloads ¶
func (p *AnyRecord) SetRecordPayloads(payloads RecordPayloads, digester cryptkit.DataDigester) error
func (*AnyRecord) UnmarshalCustom ¶
func (*AnyRecord) Visit ¶
func (p *AnyRecord) Visit(visitor RecordVisitor) error
type AnyRecordLazy ¶
type AnyRecordLazy struct {
// contains filtered or unexported fields
}
func (*AnyRecordLazy) CopyNoPayloads ¶
func (p *AnyRecordLazy) CopyNoPayloads() AnyRecordLazy
func (*AnyRecordLazy) Equal ¶
func (p *AnyRecordLazy) Equal(that interface{}) bool
func (*AnyRecordLazy) GetRecordPayloads ¶
func (p *AnyRecordLazy) GetRecordPayloads() RecordPayloads
func (*AnyRecordLazy) Set ¶
func (p *AnyRecordLazy) Set(v BasicRecord)
func (*AnyRecordLazy) SetAsLazy ¶
func (p *AnyRecordLazy) SetAsLazy(v BasicRecord) error
func (*AnyRecordLazy) SetRecordPayloads ¶
func (p *AnyRecordLazy) SetRecordPayloads(payloads RecordPayloads, digester cryptkit.DataDigester) error
func (*AnyRecordLazy) TryGet ¶
func (p *AnyRecordLazy) TryGet() (isLazy bool, r BasicRecord)
func (*AnyRecordLazy) TryGetLazy ¶
func (p *AnyRecordLazy) TryGetLazy() LazyRecordValue
func (*AnyRecordLazy) Unmarshal ¶
func (p *AnyRecordLazy) Unmarshal(b []byte) error
func (*AnyRecordLazy) UnmarshalCustom ¶
func (p *AnyRecordLazy) UnmarshalCustom(b []byte, registry *rmsreg.TypeRegistry) error
func (*AnyRecordLazy) Visit ¶
func (p *AnyRecordLazy) Visit(visitor RecordVisitor) error
type AnyRecordLazyCopy ¶
type AnyRecordLazyCopy struct {
// contains filtered or unexported fields
}
func (*AnyRecordLazyCopy) Unmarshal ¶
func (p *AnyRecordLazyCopy) Unmarshal(b []byte) error
func (*AnyRecordLazyCopy) UnmarshalCustom ¶
func (p *AnyRecordLazyCopy) UnmarshalCustom(b []byte, registry *rmsreg.TypeRegistry) error
type BasicMessage ¶
type BasicMessage interface { // PayloadHolder Visit(MessageVisitor) error }
func UnmarshalMessageApplyPayloads ¶
func UnmarshalMessageApplyPayloads(um interface{}, digester cryptkit.DataDigester, payloads RecordPayloads) (BasicMessage, error)
func UnmarshalMessageWithPayloadsFromBytes ¶
func UnmarshalMessageWithPayloadsFromBytes(b []byte, digester cryptkit.DataDigester, typeFn rmsreg.UnmarshalTypeFunc) (uint64, BasicMessage, error)
func UnmarshalMessageWithPayloadsFromReader ¶
func UnmarshalMessageWithPayloadsFromReader(m BasicMessage, r io.Reader) (BasicMessage, error)
type BasicRecord ¶
type BasicRecord interface { PayloadHolder Visit(RecordVisitor) error }
type DigestProvider ¶
type DigestProvider interface { cryptkit.BasicDigester GetDigest() cryptkit.Digest }
func DefaultLazyDigestOf ¶
func DefaultLazyDigestOf(r Referencable) DigestProvider
func LazyDigestOf ¶
func LazyDigestOf(r Referencable, digester cryptkit.DataDigester) DigestProvider
func NewDigestValue ¶
func NewDigestValue(digest cryptkit.Digest) DigestProvider
type LazyRecordValue ¶
type LazyRecordValue struct {
// contains filtered or unexported fields
}
func (*LazyRecordValue) GetRecordBody ¶
func (p *LazyRecordValue) GetRecordBody() *RecordBody
func (*LazyRecordValue) GetRecordPayloads ¶
func (p *LazyRecordValue) GetRecordPayloads() RecordPayloads
func (*LazyRecordValue) SetRecordPayloads ¶
func (p *LazyRecordValue) SetRecordPayloads(payloads RecordPayloads, digester cryptkit.DataDigester) error
func (*LazyRecordValue) Unmarshal ¶
func (p *LazyRecordValue) Unmarshal() (BasicRecord, error)
func (*LazyRecordValue) UnmarshalAs ¶
func (p *LazyRecordValue) UnmarshalAs(v BasicRecord, skipFn rmsreg.UnknownCallbackFunc) (bool, error)
func (*LazyRecordValue) UnmarshalAsType ¶
func (p *LazyRecordValue) UnmarshalAsType(vType reflect.Type, skipFn rmsreg.UnknownCallbackFunc) (BasicRecord, error)
func (*LazyRecordValue) Visit ¶
func (p *LazyRecordValue) Visit(RecordVisitor) error
type LazyValue ¶
type LazyValue struct {
// contains filtered or unexported fields
}
func (LazyValue) EqualBytes ¶
func (LazyValue) MarshalText ¶
func (LazyValue) MarshalToSizedBuffer ¶
func (LazyValue) UnmarshalAsAny ¶
func (v LazyValue) UnmarshalAsAny(target interface{}, skipFn rmsreg.UnknownCallbackFunc) (bool, error)
func (LazyValue) UnmarshalAsType ¶
func (v LazyValue) UnmarshalAsType(vType reflect.Type, skipFn rmsreg.UnknownCallbackFunc) (rmsreg.GoGoSerializable, error)
func (LazyValue) UnmarshalCustom ¶
func (v LazyValue) UnmarshalCustom(registry *rmsreg.TypeRegistry, skipFn rmsreg.UnknownCallbackFunc) (rmsreg.GoGoSerializable, error)
type LazyValueReader ¶
type LazyValueReader interface {
UnmarshalAsAny(v interface{}, skipFn rmsreg.UnknownCallbackFunc) (bool, error)
}
type MessageVisitor ¶
type MessageVisitor interface { Message(BasicMessage, uint64) error MsgRecord(BasicMessage, int, BasicRecord) error }
type PayloadHolder ¶
type PayloadHolder interface { GetRecordPayloads() RecordPayloads // SetRecordPayloads is called after unmarshalling of the record to set content of record's payloads SetRecordPayloads(RecordPayloads, cryptkit.DataDigester) error }
func MessagePayloadHolder ¶
func MessagePayloadHolder(m BasicMessage) (PayloadHolder, error)
type RawBinary ¶
type RawBinary struct {
// contains filtered or unexported fields
}
func NewRaw ¶
func NewRaw(value longbits.FixedReader) (rb RawBinary)
func NewRawBytes ¶
func NewRawMarshal ¶
func NewRawMarshal(value proto.ProtoSizer) (rb RawBinary)
func NewRawMarshalWithSizer ¶
func (*RawBinary) AsByteString ¶
func (p *RawBinary) AsByteString() longbits.ByteString
func (*RawBinary) FixedByteSize ¶
func (*RawBinary) MarshalText ¶
func (*RawBinary) Set ¶
func (p *RawBinary) Set(value longbits.FixedReader)
func (*RawBinary) SetProto ¶
func (p *RawBinary) SetProto(value proto.ProtoSizer)
func (*RawBinary) SetProtoWithSizer ¶
type RecordBody ¶
type RecordBody struct {
// contains filtered or unexported fields
}
func (*RecordBody) AddExtensionPayload ¶
func (p *RecordBody) AddExtensionPayload(body RawBinary)
func (*RecordBody) CopyRecordPayloads ¶
func (p *RecordBody) CopyRecordPayloads(rp RecordPayloads)
func (*RecordBody) Equal ¶
func (p *RecordBody) Equal(o *RecordBody) bool
func (*RecordBody) GetExtensionDigestCount ¶
func (p *RecordBody) GetExtensionDigestCount() int
func (*RecordBody) GetExtensionPayload ¶
func (p *RecordBody) GetExtensionPayload(index int) RawBinary
func (*RecordBody) GetExtensionPayloadCount ¶
func (p *RecordBody) GetExtensionPayloadCount() int
func (*RecordBody) GetPayload ¶
func (p *RecordBody) GetPayload() RawBinary
func (*RecordBody) GetRecordPayloads ¶
func (p *RecordBody) GetRecordPayloads() RecordPayloads
func (*RecordBody) HasPayload ¶
func (p *RecordBody) HasPayload() bool
func (*RecordBody) HasPayloadDigest ¶
func (p *RecordBody) HasPayloadDigest() bool
func (*RecordBody) IsPostUnmarshalCompleted ¶
func (p *RecordBody) IsPostUnmarshalCompleted() bool
func (RecordBody) MarshalText ¶
func (p RecordBody) MarshalText() (text []byte, err error)
func (*RecordBody) MarshalToSizedBuffer ¶
func (p *RecordBody) MarshalToSizedBuffer(b []byte) (int, error)
func (*RecordBody) PostUnmarshalVerifyAndAdd ¶
func (p *RecordBody) PostUnmarshalVerifyAndAdd(data RawBinary) (err error)
func (*RecordBody) ProtoSize ¶
func (p *RecordBody) ProtoSize() int
func (*RecordBody) Reset ¶
func (p *RecordBody) Reset()
func (*RecordBody) SetDigester ¶
func (p *RecordBody) SetDigester(digester cryptkit.DataDigester)
func (*RecordBody) SetPayload ¶
func (p *RecordBody) SetPayload(body RawBinary)
func (*RecordBody) SetRecordPayloads ¶
func (p *RecordBody) SetRecordPayloads(rp RecordPayloads, digester cryptkit.DataDigester) error
func (*RecordBody) Unmarshal ¶
func (p *RecordBody) Unmarshal(b []byte) error
func (*RecordBody) VerifyAnyPayload ¶
func (p *RecordBody) VerifyAnyPayload(index int, data RawBinary) (err error)
type RecordBodyDigests ¶
type RecordBodyDigests struct {
// contains filtered or unexported fields
}
func (*RecordBodyDigests) AddDigest ¶
func (p *RecordBodyDigests) AddDigest(d0 cryptkit.Digest)
func (*RecordBodyDigests) Count ¶
func (p *RecordBodyDigests) Count() int
func (*RecordBodyDigests) Equal ¶
func (p *RecordBodyDigests) Equal(o *RecordBodyDigests) bool
func (*RecordBodyDigests) GetDigest ¶
func (p *RecordBodyDigests) GetDigest(index int) cryptkit.Digest
func (*RecordBodyDigests) IsEmpty ¶
func (p *RecordBodyDigests) IsEmpty() bool
func (RecordBodyDigests) MarshalText ¶
func (p RecordBodyDigests) MarshalText() (text []byte, err error)
func (*RecordBodyDigests) MarshalToSizedBuffer ¶
func (p *RecordBodyDigests) MarshalToSizedBuffer(b []byte) (int, error)
func (*RecordBodyDigests) ProtoSize ¶
func (p *RecordBodyDigests) ProtoSize() int
func (*RecordBodyDigests) Reset ¶
func (p *RecordBodyDigests) Reset()
func (*RecordBodyDigests) Unmarshal ¶
func (p *RecordBodyDigests) Unmarshal(b []byte) error
func (*RecordBodyDigests) VerifyDigest ¶
func (p *RecordBodyDigests) VerifyDigest(index int, data RawBinary, digester cryptkit.DataDigester) error
type RecordBodyForLazy ¶
type RecordBodyForLazy struct {
RecordBody RecordBody `protobuf:"bytes,19,opt,name=RecordBody,proto3" json:"RecordBody"`
}
func (*RecordBodyForLazy) Equal ¶
func (m *RecordBodyForLazy) Equal(that interface{}) bool
func (*RecordBodyForLazy) GetRecordBody ¶
func (m *RecordBodyForLazy) GetRecordBody() RecordBody
func (*RecordBodyForLazy) Marshal ¶
func (m *RecordBodyForLazy) Marshal() (dAtA []byte, err error)
func (*RecordBodyForLazy) MarshalTo ¶
func (m *RecordBodyForLazy) MarshalTo(dAtA []byte) (int, error)
func (*RecordBodyForLazy) MarshalToSizedBuffer ¶
func (m *RecordBodyForLazy) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RecordBodyForLazy) ProtoSize ¶
func (m *RecordBodyForLazy) ProtoSize() (n int)
func (*RecordBodyForLazy) Reset ¶
func (m *RecordBodyForLazy) Reset()
func (*RecordBodyForLazy) Unmarshal ¶
func (m *RecordBodyForLazy) Unmarshal(dAtA []byte) error
func (*RecordBodyForLazy) UnmarshalWithUnknownCallback ¶
type RecordPayloads ¶
type RecordPayloads struct {
// contains filtered or unexported fields
}
func (*RecordPayloads) ApplyPayloadsTo ¶
func (p *RecordPayloads) ApplyPayloadsTo(record PayloadHolder, digester cryptkit.DataDigester) error
func (*RecordPayloads) Count ¶
func (p *RecordPayloads) Count() int
func (*RecordPayloads) GetExtensionID ¶
func (p *RecordPayloads) GetExtensionID(index int) uint32
func (*RecordPayloads) GetPayloadOrExtension ¶
func (p *RecordPayloads) GetPayloadOrExtension(index int) rmsreg.MarshalerTo
func (*RecordPayloads) IsEmpty ¶
func (p *RecordPayloads) IsEmpty() bool
func (*RecordPayloads) ProtoSize ¶
func (p *RecordPayloads) ProtoSize() int
func (*RecordPayloads) TryUnmarshalPayloadFromBytes ¶
func (p *RecordPayloads) TryUnmarshalPayloadFromBytes(b []byte) (int, error)
func (*RecordPayloads) WrapSkipFunc ¶
func (p *RecordPayloads) WrapSkipFunc(skipFn rmsreg.UnknownCallbackFunc) rmsreg.UnknownCallbackFunc
type RecordVisitor ¶
type RecordVisitor interface { Record(BasicRecord, uint64) error RecReference(BasicRecord, uint64, *Reference) error }
type Referencable ¶
type Reference ¶
type Reference struct {
// contains filtered or unexported fields
}
func NewReference ¶
func NewReferenceLazy ¶
func NewReferenceLazy(v ReferenceProvider) Reference
func NewReferenceLocal ¶
func NewReferenceLocal(v reference.LocalHolder) Reference
func (*Reference) GetPulseOfBase ¶
GetPulseOfBase returns pulse number of base portion of reference. Returns zero when reference is not set, is empty or has no base part.
func (*Reference) GetPulseOfLocal ¶
GetPulseOfLocal returns pulse number of local portion of reference. Returns zero when reference is not set or empty.
func (*Reference) GetValueWithoutBase ¶
GetValueWithoutBase returns only local part and PANICS when base part is present.
func (*Reference) GetWithoutBase ¶
func (p *Reference) GetWithoutBase() reference.LocalHolder
GetWithoutBase returns only local part and PANICS when base part is present.
func (*Reference) MarshalText ¶
func (*Reference) MarshalToSizedBuffer ¶
func (*Reference) SetLazy ¶
func (p *Reference) SetLazy(lazy ReferenceProvider)
func (*Reference) SetWithoutBase ¶
func (p *Reference) SetWithoutBase(holder reference.LocalHolder)
SetWithoutBase ignores base part and sets only local one.
type ReferenceProvider ¶
type ReferenceProvider interface { GetReference() reference.Global TryPullReference() reference.Global }
func DefaultLazyReferenceTo ¶
func DefaultLazyReferenceTo(r Referencable) ReferenceProvider
func LazyReferenceTo ¶
func LazyReferenceTo(r Referencable, template reference.Template) ReferenceProvider
func LazyReferenceToWithDigester ¶
func LazyReferenceToWithDigester(r Referencable, digester cryptkit.DataDigester, template reference.Template) ReferenceProvider
ReferenceToWithDigester does NOT set the template as default
func NewRawValueProvider ¶
func NewRawValueProvider(global reference.Global) ReferenceProvider
func NewRefValue ¶
func NewRefValue(digest cryptkit.Digest, t reference.Template) ReferenceProvider
Source Files ¶
Click to show internal directories.
Click to hide internal directories.