...

Package bindata

import "github.com/golang-migrate/migrate/v4/source/go_bindata"
Overview
Index
Subdirectories

Overview ▾

Variables

var (
    ErrNoAssetSource = fmt.Errorf("expects *AssetSource")
)

func WithInstance

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

type AssetFunc

type AssetFunc func(name string) ([]byte, error)

type AssetSource

type AssetSource struct {
    Names     []string
    AssetFunc AssetFunc
}

func Resource

func Resource(names []string, afn AssetFunc) *AssetSource

type Bindata

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

func (*Bindata) Close

func (b *Bindata) Close() error

func (*Bindata) First

func (b *Bindata) First() (version uint, err error)

func (*Bindata) Next

func (b *Bindata) Next(version uint) (nextVersion uint, err error)

func (*Bindata) Open

func (b *Bindata) Open(url string) (source.Driver, error)

func (*Bindata) Prev

func (b *Bindata) Prev(version uint) (prevVersion uint, err error)

func (*Bindata) ReadDown

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

func (*Bindata) ReadUp

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

Subdirectories

Name Synopsis
..
examples
migrations