app

package
v0.0.0-...-82454b5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App represents the vinyl store application

func New

func New(cfg *config.Config) (*App, error)

New creates a new App instance

func (*App) RedisClient

func (a *App) RedisClient() *redis.Client

RedisClient returns the redis client for testing

func (*App) Server

func (a *App) Server() *zh.Server

Server returns the underlying server for testing

func (*App) Start

func (a *App) Start() error

Start runs the application and blocks until shutdown

func (*App) Store

func (a *App) Store() DataStore

Store returns the database store for testing

type DataStore

type DataStore interface {
	store.Store
	SeedData()
	Ping(ctx context.Context) error
	Close(ctx context.Context) error
}

DataStore extends store.Store with lifecycle methods needed by App

Jump to

Keyboard shortcuts

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