{"modulePath":"github.com/hsqbyte/protospec","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package evolution\n\nPackage evolution tracks protocol evolution and deprecation.\n\n## Functions\n\n```go\nfunc FormatFamily(f *ProtocolFamily) string\n```\nFormatFamily formats a protocol family as a timeline.\n\n## Types\n\n```go\ntype DeprecationWarning struct {\n\tProtocol    string `json:\"protocol\"`\n\tField       string `json:\"field,omitempty\"`\n\tReason      string `json:\"reason\"`\n\tAlternative string `json:\"alternative\"`\n\tSeverity    string `json:\"severity\"` // \"info\", \"warning\", \"critical\"\n}\n```\nDeprecationWarning represents a deprecation warning.\n\n```go\ntype ProtocolFamily struct {\n\tName     string            `json:\"name\"`\n\tVersions []ProtocolVersion `json:\"versions\"`\n}\n```\nProtocolFamily represents a family of related protocols.\n\n```go\ntype ProtocolVersion struct {\n\tName       string   `json:\"name\"`\n\tVersion    string   `json:\"version\"`\n\tRFC        string   `json:\"rfc,omitempty\"`\n\tYear       int      `json:\"year,omitempty\"`\n\tStatus     string   `json:\"status\"` // \"active\", \"deprecated\", \"obsolete\"\n\tFeatures   []string `json:\"features,omitempty\"`\n\tReplacedBy string   `json:\"replaced_by,omitempty\"`\n}\n```\nProtocolVersion represents a specific protocol version.\n\n```go\ntype Tracker struct {\n\t// contains filtered or unexported fields\n}\n```\nTracker tracks protocol evolution.\n\n```go\nfunc NewTracker() *Tracker\n```\nNewTracker creates a new evolution tracker.\n\n```go\nfunc (t *Tracker) CheckDeprecation(protoName string) []DeprecationWarning\n```\nCheckDeprecation checks if a protocol is deprecated.\n\n```go\nfunc (t *Tracker) GetFamily(name string) *ProtocolFamily\n```\nGetFamily returns a protocol family by name.\n\n","path":"github.com/hsqbyte/protospec/src/evolution","name":"evolution","synopsis":"Package evolution tracks protocol evolution and deprecation.","isRedistributable":true}
