schemaver

package
v0.112.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaVer

type SchemaVer struct {
	Model    int // breaking changes
	Revision int // potentially-breaking changes
	Addition int // additions only
}

func New

func New(model, revision, addition int) SchemaVer

func Parse added in v0.88.0

func Parse(s string) (SchemaVer, error)

func (SchemaVer) Equal added in v0.95.0

func (s SchemaVer) Equal(other SchemaVer) bool

func (SchemaVer) GreaterOrEqualTo added in v0.88.0

func (s SchemaVer) GreaterOrEqualTo(other SchemaVer) bool

func (SchemaVer) GreaterThan added in v0.95.0

func (s SchemaVer) GreaterThan(other SchemaVer) bool

func (SchemaVer) LessThan added in v0.88.0

func (s SchemaVer) LessThan(other SchemaVer) bool

func (SchemaVer) LessThanOrEqualTo added in v0.95.0

func (s SchemaVer) LessThanOrEqualTo(other SchemaVer) bool

func (SchemaVer) MarshalJSON added in v0.88.0

func (s SchemaVer) MarshalJSON() ([]byte, error)

func (SchemaVer) String

func (s SchemaVer) String() string

func (*SchemaVer) UnmarshalJSON added in v0.88.0

func (s *SchemaVer) UnmarshalJSON(data []byte) error

func (SchemaVer) Valid added in v0.88.0

func (s SchemaVer) Valid() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL