# Packages
Package mock_metrics is a generated GoMock package.
# Functions
AddGormCallbacks adds callbacks for tracing, you should call SetSpanToGorm to make them work Copied from https://github.com/smacker/opentracing-gorm/blob/master/otgorm.go Under MIT License: https://github.com/smacker/opentracing-gorm/blob/master/LICENSE.
New creates a Module.
NewGauges returns a new Gauges.
Providers returns a set of database related providers for package core.
WithConfigInterceptor instructs the Providers to accept the GormConfigInterceptor so that users can change config during runtime.
WithDrivers instructs the Providers to add new drivers or replace existing drivers.
WithReload toggles whether the factory should reload cached instances upon OnReload event.
# Structs
Gauges is a collection of metrics for database connection info.
GormLogAdapter is an adapter between kitlog and gorm Logger interface.
Migration represents a database migration (a modification to be made on the database).
Migrations is a collection of migrations in the application.
Module is the registration unit for package core.
ModuleIn contains the input parameters needed for creating the new module.
Seed is a action to populate the database with predefined values.
Seeds is a collection of seed.
# Interfaces
Maker models Factory.
MigrationProvider is an interface for database migrations.
SeedProvider is an interface for database seeding.
# Type aliases
Drivers is a map of string names and gorm.Dialector constructors.
GormConfigInterceptor is a function that allows user to Make last minute change to *gorm.Config when constructing *gorm.DB.
MigrateFunc is the func signature for migrating.
ProvidersOptionFunc is the type of functional providersOption for Providers.
RollbackFunc is the func signature for rollbacking.