common

package
v0.14.19 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StdVersionEncDec = VersionEncDecImpl{}

Functions

This section is empty.

Types

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

type VersionInfo struct {
	Version   string
	Revision  string
	BuildDate string
	OS        string
	Arch      string
}

type VersionProvider

type VersionProvider interface {
	Version() string
	BuildDate() string
	Revision() string
	AsVersionInfo() *VersionInfo
	EncoderDecoder() VersionEncDec
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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