version

package
v0.2.97 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDoesNotExist = fmt.Errorf("does not exist")
)

Functions

func GetCurrentVersion

func GetCurrentVersion() string

GetCurrentVersion returns the hardcoded implementation version, sometimes also referred to as database version.

func NewVersionStore

func NewVersionStore(db *bbolt.DB) (*versionStore, error)

Types

type ActiveSwapGetter

type ActiveSwapGetter interface {
	HasActiveSwaps() (bool, error)
}

type ActiveSwapsError

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

func (ActiveSwapsError) Error

func (a ActiveSwapsError) Error() string

type VersionService

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

func NewVersionService

func NewVersionService(boltdb *bbolt.DB) (*VersionService, error)

func (*VersionService) SafeUpgrade

func (vs *VersionService) SafeUpgrade(swapService ActiveSwapGetter) error

SafeUpgrade upgrades the peerswap version, only if no active swaps are running

Jump to

Keyboard shortcuts

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