storage

package
v0.0.0-...-f239e5c Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func NewStorage

func NewStorage(ctx context.Context, l *zap.SugaredLogger) *Storage

func (*Storage) Close

func (s *Storage) Close() error

func (*Storage) Connect

func (s *Storage) Connect(dsn string) error

func (*Storage) Transaction

func (s *Storage) Transaction(fn func(db *gorm.DB) error, opts ...*sql.TxOptions) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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