plugins

package
v1.0.10-0...-7349ede Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shutdown

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

Shutdown GORM plugin

func NewDefaultShutdownPlugin

func NewDefaultShutdownPlugin(stopChannel chan struct{}) *Shutdown

NewDefaultShutdownPlugin initialize GORM plugin

func NewShutdownPlugin

func NewShutdownPlugin(stopChannel chan struct{}, badConnChecker func(errors []error) bool) *Shutdown

NewShutdownPlugin initialize GORM plugin

func (*Shutdown) Apply

func (shutdown *Shutdown) Apply(db *gorm.DB)

Apply apply shutdown callbacks to GORM DB instance

Jump to

Keyboard shortcuts

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