Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientVersionProvider ¶
type ClientVersionProvider interface { // Current returns latest client version. Current() (common.ClientVersion, error) // Get returns the client version at the given transaction time. Get(transactionTime uint64) (common.ClientVersion, error) }
ClientVersionProvider defines interface for accessing protocol version information.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements client version provider per namespace.
func (*Provider) Add ¶
func (m *Provider) Add(namespace string, cvp ClientVersionProvider)
Add adds client version provider for namespace.
func (*Provider) ForNamespace ¶
func (m *Provider) ForNamespace(namespace string) (ClientVersionProvider, error)
ForNamespace will return client version provider for that namespace.
Click to show internal directories.
Click to hide internal directories.