Documentation ¶
Index ¶
- Constants
- func ConvertDuplicatedError(err error, newErr error) error
- func ConvertRelationError(err error, newErr error) error
- func MetricsServerProcess(ctx context.Context, port int, gracefulShutdownTimeSec int) error
- func MigrateMySQLDB(db *gorm.DB, sqlFS embed.FS) error
- func MigrateSQLiteDB(db *gorm.DB, sqlFS embed.FS) error
- func OpenMySQL(username, password, host string, port int, database string, ...) (*gorm.DB, error)
- func OpenSQLite(filePath string) (*gorm.DB, error)
- func SignalWatchProcess(ctx context.Context) error
Constants ¶
View Source
const (
LibGatewayContextKey domain.ContextKey = "lib_gateway"
)
View Source
const MYSQL_ER_DUP_ENTRY = 1062
View Source
const MYSQL_ER_NO_REFERENCED_ROW_2 = 1452
View Source
const SQLITE_CONSTRAINT_PRIMARYKEY = 1555
View Source
const SQLITE_CONSTRAINT_UNIQUE = 2067
Variables ¶
This section is empty.
Functions ¶
func ConvertDuplicatedError ¶
func ConvertRelationError ¶
func MetricsServerProcess ¶
func SignalWatchProcess ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.