verprovider

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 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 ClientVersionProvider

type ClientVersionProvider struct {
	// contains filtered or unexported fields
}

ClientVersionProvider implements client versions.

func New

func New(clientVersions []common.ClientVersion) *ClientVersionProvider

New creates new client version provider.

func (*ClientVersionProvider) Current

Current returns the latest version of client.

func (*ClientVersionProvider) Get

func (c *ClientVersionProvider) Get(versionTime uint64) (common.ClientVersion, error)

Get gets client version based on version time.

Jump to

Keyboard shortcuts

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