gorm

package
v0.8.11 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Zlib Imports: 7 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

func WithSqlDBType(t DBType) Option

type SkyWalking

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

func New

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

func (*SkyWalking) AfterCallback

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

func (*SkyWalking) BeforeCallback

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

func (*SkyWalking) Initialize

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

func (*SkyWalking) Name

func (s *SkyWalking) Name() string

Jump to

Keyboard shortcuts

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