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 ¶
Types ¶
type ActiveSwapGetter ¶
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
Click to show internal directories.
Click to hide internal directories.