Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deprecator ¶
type Deprecator struct {
// contains filtered or unexported fields
}
Deprecator contains information required to do deprecation checks and deprecation event trigger
func MustNewDeprecator ¶
func MustNewDeprecator(featureDesc, weakWarningDate, strongWarningDate, crashDate string) *Deprecator
MustNewDeprecator returns a deprecator and panics if deprecator creation fails.
func NewDeprecator ¶
func NewDeprecator(featureDesc, weakWarningDate, strongWarningDate, crashDate string) (*Deprecator, error)
NewDeprecator takes brief feature description and three dates with different level of deprecations. It returns a deprecator. Dates are considered to be in UTC timezone.
Click to show internal directories.
Click to hide internal directories.