Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StdVersionEncDec = VersionEncDecImpl{}
Functions ¶
This section is empty.
Types ¶
type SemVer ¶
type SemVer struct {
// contains filtered or unexported fields
}
func MustParseSemVer ¶
func ParseSemVer ¶
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 ¶
func (self *VersionInfo) GetVersion() (*SemVer, error)
func (*VersionInfo) HasMinimumVersion ¶
func (self *VersionInfo) HasMinimumVersion(compareVersionStr string) (bool, error)
type VersionProvider ¶
type VersionProvider interface { Version() string BuildDate() string Revision() string Branch() string AsVersionInfo() *VersionInfo EncoderDecoder() VersionEncDec }
Click to show internal directories.
Click to hide internal directories.