track

package
v0.0.0-...-51cd039 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ITrackRepo

type ITrackRepo interface {
	Create(context.Context, *Track) (*Track, error)
	Find(context.Context, *Track) (*Track, error)
}

type Track

type Track struct {
	Url     string `json:"url" bson:"_id"`
	Status  string `json:"status" bson:"status"`
	Storage string `json:"storage" bson:"storage"`
}

type TrackRepo

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

func NewTrackRepo

func NewTrackRepo(mongo *db.Mongo) *TrackRepo

func (*TrackRepo) Create

func (r *TrackRepo) Create(ctx context.Context, track *Track) (*Track, error)

func (*TrackRepo) Find

func (r *TrackRepo) Find(ctx context.Context, track *Track) (*Track, error)

type TrackService

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

func NewTrackService

func NewTrackService(repo ITrackRepo) *TrackService

func (*TrackService) Save

func (s *TrackService) Save(ctx context.Context, track *Track) (*Track, error)

Jump to

Keyboard shortcuts

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