audiofeeler

package
v0.0.0-...-844605f Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Id    optiomist.Option[uint32]
	Name  optiomist.Option[string]
	Title optiomist.Option[string]
	Url   optiomist.Option[string]
}

type AccountView

type AccountView struct {
	Id    uint32
	Title string
	Name  string
	Url   string
}

type AccountsRepo

type AccountsRepo struct {
	Db *DbClient
}

func (*AccountsRepo) Create

func (repo *AccountsRepo) Create(account Account) (uint32, error)

func (*AccountsRepo) FindAll

func (repo *AccountsRepo) FindAll() ([]Account, error)

func (*AccountsRepo) FindByName

func (repo *AccountsRepo) FindByName(name string) (Account, error)

type App

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

func NewApp

func NewApp(templatesPath string, dbUrl string) (*App, error)

func (*App) Cleanup

func (app *App) Cleanup()

func (*App) MountHandlers

func (app *App) MountHandlers()

func (*App) Start

func (app *App) Start()

type Artist

type Artist struct {
	Name string
}

type DbClient

type DbClient struct {
	Conn *pgxpool.Pool
}

func NewDbClient

func NewDbClient(dbUrl string) (*DbClient, error)

func (*DbClient) Close

func (db *DbClient) Close()

func (*DbClient) CreateStructure

func (db *DbClient) CreateStructure() error

func (*DbClient) Ping

func (db *DbClient) Ping() bool

func (*DbClient) RemoveStructure

func (db *DbClient) RemoveStructure() error

type Event

func LoadEvents

func LoadEvents(reader io.Reader) (events []Event, err error)

type EventsRepo

type EventsRepo struct {
	Db *DbClient
}

func (*EventsRepo) Create

func (repo *EventsRepo) Create(event Event) (uint32, error)

func (*EventsRepo) Find

func (repo *EventsRepo) Find(id uint32) (*Event, error)

func (*EventsRepo) FindAll

func (repo *EventsRepo) FindAll() (*[]Event, error)

type RecordNotFound

type RecordNotFound struct{}

func (RecordNotFound) Error

func (err RecordNotFound) Error() string

type Video

type Video struct {
	Url string
}

Jump to

Keyboard shortcuts

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