stub

package
v3.0.0-rc2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2017 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithInstance

func WithInstance(instance interface{}, config *Config) (source.Driver, error)

Types

type Config

type Config struct{}

type Stub

type Stub struct {
	Url        string
	Instance   interface{}
	Migrations *source.Migrations
	Config     *Config
}

func (*Stub) Close

func (s *Stub) Close() error

func (*Stub) First

func (s *Stub) First() (version uint, err error)

func (*Stub) Next

func (s *Stub) Next(version uint) (nextVersion uint, err error)

func (*Stub) Open

func (s *Stub) Open(url string) (source.Driver, error)

func (*Stub) Prev

func (s *Stub) Prev(version uint) (prevVersion uint, err error)

func (*Stub) ReadDown

func (s *Stub) ReadDown(version uint) (r io.ReadCloser, identifier string, err error)

func (*Stub) ReadUp

func (s *Stub) ReadUp(version uint) (r io.ReadCloser, identifier string, err error)

Jump to

Keyboard shortcuts

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