contracts

package
v0.0.0-...-346e1a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dsn      string
	Database string
}

Config Used in config/database.go

type ConfigBuilder

type ConfigBuilder interface {
	Config() contractsconfig.Config
	Connection() string
	Reads() []FullConfig
	Writes() []FullConfig
}

type FullConfig

type FullConfig struct {
	Config
	Connection   string
	Driver       string
	NameReplacer Replacer
	NoLowerCase  bool
	Prefix       string
	Singular     bool
}

FullConfig Fill the default value for Config

type Replacer

type Replacer interface {
	Replace(name string) string
}

Replacer replacer interface like strings.Replacer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL