Documentation
¶
Index ¶
- type Config
- type Mongrator
- type Option
- func DefaultBooleanType(defaultValue bool) Option
- func DefaultFloat32Type(defaultValue float32) Option
- func DefaultFloat64Type(defaultValue float64) Option
- func DefaultInt32Type(defaultValue int32) Option
- func DefaultInt64Type(defaultValue int64) Option
- func DefaultIntType(defaultValue int) Option
- func DefaultStringType(defaultValue string) Option
- func DefaultTimeType(defaultValue time.Time) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mongrator ¶ added in v1.0.6
type Mongrator struct {
// contains filtered or unexported fields
}
func (*Mongrator) RegisterSchema ¶ added in v1.0.6
Registers a schema and its corresponding collection for automatic migration during application startup.
func (*Mongrator) RunMigrations ¶ added in v1.0.6
func (m *Mongrator) RunMigrations()
type Option ¶ added in v1.0.8
type Option func(*Config)
func DefaultBooleanType ¶ added in v1.0.8
func DefaultFloat32Type ¶ added in v1.0.8
func DefaultFloat64Type ¶ added in v1.0.8
func DefaultInt32Type ¶ added in v1.0.8
func DefaultInt64Type ¶ added in v1.0.8
func DefaultIntType ¶ added in v1.0.8
func DefaultStringType ¶ added in v1.0.8
func DefaultTimeType ¶ added in v1.0.8
Click to show internal directories.
Click to hide internal directories.