gomethods

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMethodsReceiverForDriver

func RegisterMethodsReceiverForDriver(driverName string, receiver interface{})

Registers a methods receiver for go methods driver Users of gomethods migration drivers should call this method to register objects with their migration methods before executing the migration

Types

type GoMethodsDriver

type GoMethodsDriver interface {
	driver.Driver

	MigrationMethodInvoker
	MethodsReceiver() interface{}
	SetMethodsReceiver(r interface{}) error
}

type MethodInvocationFailedError

type MethodInvocationFailedError struct {
	MethodName string
	Err        error
}

func (*MethodInvocationFailedError) Error

type MethodNotFoundError

type MethodNotFoundError string

func (MethodNotFoundError) Error

func (e MethodNotFoundError) Error() string

type MigrationMethodInvoker

type MigrationMethodInvoker interface {
	Validate(methodName string) error
	Invoke(methodName string) error
}

type Migrator

type Migrator struct {
	RollbackOnFailure bool
	MethodInvoker     MigrationMethodInvoker
}

func (*Migrator) Migrate

func (m *Migrator) Migrate(f file.File, pipe chan interface{}) error

type WrongMethodSignatureError

type WrongMethodSignatureError string

func (WrongMethodSignatureError) Error

Jump to

Keyboard shortcuts

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