cbdb

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 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 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 (*GormReadWrite) Close added in v0.0.2

func (g *GormReadWrite) Close() error

func (*GormReadWrite) Read

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

func (*GormReadWrite) SetRead added in v0.0.2

func (g *GormReadWrite) SetRead(db *gorm.DB)

func (*GormReadWrite) SetWrite added in v0.0.2

func (g *GormReadWrite) SetWrite(db *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{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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