web

package
v0.0.0-...-5c6b70c Latest Latest
Warning

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

Go to latest
Published: Mar 25, 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 Option

type Option func(*Server)

Option configures a server.

func WithAddr

func WithAddr(addr string) Option

WithAddr sets a server's address.

func WithAuth

func WithAuth(auth *spotifyauth.Authenticator) Option

WithAuth sets a server's Spotify authenticator.

func WithDB

func WithDB(db *db.DB) Option

WithDB sets a server's DB.

type Server

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

Server is a web server.

func New

func New(opts ...Option) (*Server, error)

New creates a new server.

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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