sky

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Zlib Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBType

type DBType string
const (
	UNKNOWN DBType = "unknown"
	MYSQL   DBType = "mysql"
)

type Option

type Option func(*options)

func WithParamReport

func WithParamReport() Option

func WithPeerAddr

func WithPeerAddr(addr string) Option

func WithQueryReport

func WithQueryReport() Option

func WithSQLDBType added in v0.9.6

func WithSQLDBType(t DBType) Option

type Walking

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

func New

func New(tracer *go2sky.Tracer, opts ...Option) *Walking

func (*Walking) AfterCallback

func (s *Walking) AfterCallback() func(db *gorm.DB)

func (*Walking) BeforeCallback

func (s *Walking) BeforeCallback(operation string) func(db *gorm.DB)

func (*Walking) Initialize

func (s *Walking) Initialize(db *gorm.DB) (err error)

func (*Walking) Name

func (s *Walking) Name() string

Jump to

Keyboard shortcuts

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