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 ¶
func (*MethodInvocationFailedError) Error ¶
func (e *MethodInvocationFailedError) Error() string
type MethodNotFoundError ¶
type MethodNotFoundError string
func (MethodNotFoundError) Error ¶
func (e MethodNotFoundError) Error() string
type MigrationMethodInvoker ¶
type Migrator ¶
type Migrator struct { RollbackOnFailure bool MethodInvoker MigrationMethodInvoker }
type WrongMethodSignatureError ¶
type WrongMethodSignatureError string
func (WrongMethodSignatureError) Error ¶
func (e WrongMethodSignatureError) Error() string
Click to show internal directories.
Click to hide internal directories.