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