mock

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend added in v0.2.0

Backend is used for local testing.

func NewMockBackend

func NewMockBackend(path, owner string, port int) *Backend

NewMockBackend returns a backend.Backend that operates only in memory and does not use any resources outliving the own process, except the net part which stores connection info on disk.

type VersionInfo added in v0.2.0

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

VersionInfo holds version info (yeah, golint)

func Version

func Version() *VersionInfo

Version returns detailed version info as struct

func (*VersionInfo) Name added in v0.2.0

func (v *VersionInfo) Name() string

Name returns the name of the backend

func (*VersionInfo) Rev added in v0.2.0

func (v *VersionInfo) Rev() string

Rev returns the git revision of the backend

func (*VersionInfo) SemVer added in v0.2.0

func (v *VersionInfo) SemVer() string

SemVer returns a version string complying semantic versioning

Jump to

Keyboard shortcuts

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