entityrepo

package
v0.0.0-...-11606f1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

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

func NewMemory

func NewMemory() *Memory

func (*Memory) CreateMusicalEntity

func (m *Memory) CreateMusicalEntity(artist string, album string, track string, links []common.Link) (entity.MusicalEntity, error)

func (*Memory) GetBatchToCheck

func (m *Memory) GetBatchToCheck(number int) ([]entity.MusicalEntity, error)

func (*Memory) GetMusicalEntityById

func (m *Memory) GetMusicalEntityById(id string) (entity.MusicalEntity, error)
func (m *Memory) UpdateLinks(id string, links []common.Link) error

type MusicalEntityHeap

type MusicalEntityHeap []MusicalEntityItem

func (MusicalEntityHeap) Len

func (h MusicalEntityHeap) Len() int

func (MusicalEntityHeap) Less

func (h MusicalEntityHeap) Less(i, j int) bool

func (*MusicalEntityHeap) Pop

func (h *MusicalEntityHeap) Pop() interface{}

func (*MusicalEntityHeap) Push

func (h *MusicalEntityHeap) Push(x interface{})

func (MusicalEntityHeap) Swap

func (h MusicalEntityHeap) Swap(i, j int)

type MusicalEntityItem

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

Jump to

Keyboard shortcuts

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