repository

package
v0.0.0-...-03d5641 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkRepository

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

func NewLinkRepository

func NewLinkRepository(ctx context.Context, tableName string) *LinkRepository

func (*LinkRepository) All

func (d *LinkRepository) All(ctx context.Context) ([]domain.Link, error)

func (*LinkRepository) Create

func (d *LinkRepository) Create(ctx context.Context, link domain.Link) error

func (*LinkRepository) Delete

func (d *LinkRepository) Delete(ctx context.Context, id string) error

func (*LinkRepository) Get

func (d *LinkRepository) Get(ctx context.Context, id string) (domain.Link, error)

type StatsRepository

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

func NewStatsRepository

func NewStatsRepository(ctx context.Context, tableName string) *StatsRepository

func (*StatsRepository) All

func (d *StatsRepository) All(ctx context.Context) ([]domain.Stats, error)

func (*StatsRepository) Create

func (d *StatsRepository) Create(ctx context.Context, stats domain.Stats) error

func (*StatsRepository) Delete

func (d *StatsRepository) Delete(ctx context.Context, id string) error

func (*StatsRepository) Get

func (d *StatsRepository) Get(ctx context.Context, id string) (domain.Stats, error)

func (*StatsRepository) GetStatsByLinkID

func (d *StatsRepository) GetStatsByLinkID(ctx context.Context, linkID string) ([]domain.Stats, error)

Jump to

Keyboard shortcuts

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