history

package
v0.0.0-...-c71769a Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MongoClientTimeout = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

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

func NewHandlers

func NewHandlers(repository *HistoryRepository) *Handlers

func (*Handlers) Post

func (h *Handlers) Post(c *fiber.Ctx) error

type History

type History struct {
	ID      primitive.ObjectID `bson:"_id"`
	Path    string             `bson:"videoPath"`
	Watched time.Time          `bson:"watched"`
}

type HistoryRepository

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

func NewHistoryRepository

func NewHistoryRepository(conn string, database string) (*HistoryRepository, error)

func (*HistoryRepository) Disconnect

func (r *HistoryRepository) Disconnect() error

func (*HistoryRepository) Insert

func (r *HistoryRepository) Insert(path string) error

type Rabbit

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

func NewRabbit

func NewRabbit(rabbitMQ string, repository *HistoryRepository) (*Rabbit, error)

func (*Rabbit) Close

func (r *Rabbit) Close()

func (*Rabbit) Listen

func (r *Rabbit) Listen() error

Jump to

Keyboard shortcuts

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