Documentation ¶
Index ¶
- type Headers
- func (h Headers) Check() validation.ErrorGroup
- func (h Headers) Equals(v any) bool
- func (Headers) Generate(rand *rand.Rand, size int) reflect.Value
- func (h Headers) MarshalBinary() (data []byte, err error)
- func (h Headers) MarshalBinaryWriter(w io.Writer) (err error)
- func (h Headers) String() string
- func (h *Headers) UnmarshalBinary(data []byte) (err error)
- func (h *Headers) UnmarshalBinaryReader(r io.Reader) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Headers ¶
Headers represents an ordered slice of header.Header structs.
func New ¶
func New(headers []header.Header) (Headers, validation.ErrorGroup)
New creates and validates new Headers from the given slice of header.Header.
func (Headers) Check ¶
func (h Headers) Check() validation.ErrorGroup
Check runs default validation checks for the Headers.
func (Headers) Equals ¶
Equals compares two Headers instances for equality.
Interface: comparison.Equaler
func (Headers) MarshalBinary ¶
MarshalBinary converts the Headers instance to binary form.
Interface: encoding.BinaryMarshaler
func (Headers) MarshalBinaryWriter ¶
MarshalBinaryWriter populates the io.Writer with Headers data in its binary form.
func (*Headers) UnmarshalBinary ¶
UnmarshalBinary converts the binary form to a Headers instance.
Interface: encoding.BinaryUnmarshaler
Click to show internal directories.
Click to hide internal directories.