cbdb

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyConfig

func VerifyConfig(config require.PathInterfaceGetter) []error

Types

type Config

type Config interface {
	Get(path string) interface{}
	GetInt(path string) int
	GetString(path string) string
}

type ErrorHandler

type ErrorHandler interface {
	Error(e error)
}

type GormReadWrite

type GormReadWrite struct {
	// contains filtered or unexported fields
}

func NewGormReadWrite

func NewGormReadWrite(config Config, logger Logger, errorHandler ErrorHandler, cbStyleNaming bool) (*GormReadWrite, error)

func (*GormReadWrite) Read

func (g *GormReadWrite) Read() *gorm.DB

func (*GormReadWrite) Write

func (g *GormReadWrite) Write() *gorm.DB

type Logger

type Logger interface {
	ErrorF(category string, message string, args ...interface{})
	Print(v ...interface{})
}

type PathInterfaceGetter

type PathInterfaceGetter interface {
	Get(path string) interface{}
}

Jump to

Keyboard shortcuts

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