position

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(db *sqlx.DB) clapper.PositionRepo

NewStore creates our data store

Types

type Store

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

Store encapsulates our dependency

func (*Store) Delete

func (m *Store) Delete(ctx context.Context, positionID int) error

Delete a position by position ID

func (*Store) List

func (m *Store) List(ctx context.Context) (*[]clapper.Position, error)

List returns all positions

func (*Store) New

func (m *Store) New(ctx context.Context, p *clapper.Position) (int, error)

New creates a position

func (*Store) Update

func (m *Store) Update(ctx context.Context, p *clapper.Position) error

Update a position, uses the ID from the token

Jump to

Keyboard shortcuts

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