Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StdVersionEncDec = VersionEncDecImpl{}
Functions ¶
This section is empty.
Types ¶
type SemVer ¶ added in v0.15.10
type SemVer struct {
// contains filtered or unexported fields
}
func ParseSemVer ¶ added in v0.15.10
type VersionEncDec ¶
type VersionEncDec interface { Encode(*VersionInfo) ([]byte, error) Decode([]byte) (*VersionInfo, error) }
type VersionEncDecImpl ¶
type VersionEncDecImpl struct{}
func (*VersionEncDecImpl) Decode ¶
func (encDec *VersionEncDecImpl) Decode(info []byte) (*VersionInfo, error)
func (*VersionEncDecImpl) Encode ¶
func (encDec *VersionEncDecImpl) Encode(info *VersionInfo) ([]byte, error)
type VersionInfo ¶
func (*VersionInfo) GetVersion ¶ added in v0.15.10
func (self *VersionInfo) GetVersion() *SemVer
func (*VersionInfo) HasMinimumVersion ¶ added in v0.15.10
func (self *VersionInfo) HasMinimumVersion(compareVersionStr string) bool
type VersionProvider ¶
type VersionProvider interface { Version() string BuildDate() string Revision() string AsVersionInfo() *VersionInfo EncoderDecoder() VersionEncDec }
Click to show internal directories.
Click to hide internal directories.