hcheck

package
v0.0.0-...-6e5bb36 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hcheck

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

Hcheck ...

func (*Hcheck) Ping

func (hcheck *Hcheck) Ping(dialect string) (err error)

Ping ...

type IHcheck

type IHcheck interface {
	Ping(string) error
}

IHcheck ...

func New

func New(opts ...Option) IHcheck

New ...

type Option

type Option func(*Hcheck)

Option is a closure that is used for accessing the local variables.

func WithConfig

func WithConfig(config config.IConfig) Option

WithConfig ...

func WithDatabase

func WithDatabase(dialect string, conn *gorm.DB) Option

WithDatabase ...

Jump to

Keyboard shortcuts

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