Documentation
¶
Overview ¶
Package lifecycle reads what a server says about the end of an endpoint's life: the Deprecation header (RFC 9745), the Sunset header (RFC 8594) and the Link relations that point to the documentation and to the successor. A response that carries them is a warning to read before the day it stops working.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notice ¶
type Notice struct {
Deprecated bool
// Since is when the endpoint was deprecated, zero when the server gave no date.
Since time.Time
// Sunset is when it will stop working, zero when the server gave none.
Sunset time.Time
DocsURL string // Link: rel="deprecation"
SuccessorURL string // Link: rel="successor-version"
}
Notice is what a response announced.
Click to show internal directories.
Click to hide internal directories.