Versions in this module Expand all Collapse all v0 v0.2.0 Oct 7, 2026 v0.1.1 Oct 7, 2026 v0.1.0 Oct 5, 2026 Changes in this version + const DisplayTimeLength + const HeaderSize + const MaxEncodedSize + const MaxTimezoneLength + const ResultEncodedSize + const TrailerSize + const Version + var ErrBuffer = errors.New("update: output buffer too small") + var ErrCodec = errors.New("update: invalid encoded request") + var ErrID = errors.New("update: invalid id") + var ErrRejected = errors.New("update: rejected") + var ErrResult = errors.New("update: invalid result") + var ErrTime = errors.New("update: invalid time") + var ErrTimezone = errors.New("update: invalid timezone") + func Encode(destination []byte, request Request) (int, error) + func EncodeResult(destination []byte, result Result) (int, error) + func EncodedSize(request Request) int + func EncodedSizeFromHeader(header []byte) (int, error) + type Code uint8 + const CodeCancelled + const CodeConflict + const CodeInternal + const CodeInvalid + const CodeLimit + const CodeStalled + const CodeUnavailable + const CodeUnsupported + func (c Code) String() string + type Diagnostic struct + Code Code + Limit string + Maximum int + Node uint16 + Observed int + Stage Stage + func (d Diagnostic) Validate() error + type Digest [sha256.Size]byte + type Error struct + Cause error + Diagnostic Diagnostic + func (e *Error) Error() string + func (e *Error) Is(target error) bool + func (e *Error) Unwrap() error + type ID [16]byte + type Request struct + func Decode(wire []byte) (Request, error) + func NewRequest(id ID, utc int64, displayTime, timezone string, source document.Source) (Request, error) + func (r Request) ContentHash() Digest + func (r Request) DisplayTime() string + func (r Request) DisplayTimeBytes() [DisplayTimeLength]byte + func (r Request) Document() document.Source + func (r Request) ID() ID + func (r Request) SameIntent(other Request) bool + func (r Request) Timezone() string + func (r Request) UTC() int64 + func (r Request) Validate() error + type Result struct + ContentHash Digest + Diagnostic Diagnostic + ID ID + Status Status + func DecodeResult(wire []byte) (Result, error) + func (r Result) Validate() error + type Stage uint8 + const StageAuthenticate + const StageDecode + const StageLayout + const StageParse + const StageRaster + const StageReceive + const StageRefresh + const StageStyle + func (s Stage) String() string + type Status uint8 + const StatusAccepted + const StatusRefreshed + const StatusRejected + const StatusUnchanged