backend

package
v0.0.0-...-305dc57 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: GPL-3.0 Imports: 22 Imported by: 0

README

backend

migrate create -ext sql -dir db/migrations -seq create_initial_tables
sqlc generate
migrate -database "postgres://mootslive:mootslive@localhost:5432/mootslive" -path db/migrations up

Helpful resources:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthEngine

func NewAuthEngine(signingKey []byte, queries db.TXQuerier) *authEngine

Types

type SpotifyPoller

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

func NewSpotifyPoller

func NewSpotifyPoller(log *slog.Logger, queries db.TXQuerier) *SpotifyPoller

func (*SpotifyPoller) Run

func (sp *SpotifyPoller) Run(ctx context.Context) error

func (*SpotifyPoller) ScanAccount

func (sp *SpotifyPoller) ScanAccount(
	ctx context.Context, spotifyUserID string,
) error

type UserServiceHandler

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

func NewUserServiceHandler

func NewUserServiceHandler(
	queries db.TXQuerier,
	log *slog.Logger,
	authEngine *authEngine,
) *UserServiceHandler

Directories

Path Synopsis
cmd
core command
sak command

Jump to

Keyboard shortcuts

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