shot

package
v0.0.0-...-652937c Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shot

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

func New

func New(db *sqlx.DB) *Shot

func (*Shot) CreateShot

func (db *Shot) CreateShot(ctx context.Context, shot *sql.Shot) (int, error)

func (*Shot) DeleteShotById

func (db *Shot) DeleteShotById(ctx context.Context, id int) error

func (*Shot) GetAllShots

func (db *Shot) GetAllShots(ctx context.Context) ([]sql.Shot, error)

func (*Shot) GetShotById

func (db *Shot) GetShotById(ctx context.Context, id int) (*sql.Shot, error)

func (*Shot) Ping

func (db *Shot) Ping(ctx context.Context) error

func (*Shot) UpdateShotById

func (db *Shot) UpdateShotById(ctx context.Context, id int, shot *sql.Shot) (*sql.Shot, error)

Jump to

Keyboard shortcuts

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