apresolve

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: GPL-3.0 Imports: 12 Imported by: 3 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FirewallFriendlyPorts = []int{443, 80}

FirewallFriendlyPorts is the accesspoint port order for networks that only allow HTTP and HTTPS outbound.

Functions

func AccesspointPorts added in v0.10.6

func AccesspointPorts(ports []int, preferFirewallFriendly bool) []int

AccesspointPorts is the port order to try accesspoints in: ports when set, else FirewallFriendlyPorts when preferFirewallFriendly, else nil (keep the directory's order).

Types

type ApResolver

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

func NewApResolver

func NewApResolver(log librespot.Logger, client *http.Client, accesspointPorts []int) *ApResolver

NewApResolver builds a resolver for Spotify's endpoint directory. Accesspoints on accesspointPorts are tried first, in that order, then the rest in the directory's order; nil keeps the directory's order.

func (*ApResolver) FetchAll

func (r *ApResolver) FetchAll(ctx context.Context) error

func (*ApResolver) GetAccesspoint

func (r *ApResolver) GetAccesspoint(ctx context.Context) (librespot.GetAddressFunc, error)

func (*ApResolver) GetDealer

func (r *ApResolver) GetDealer(ctx context.Context) (librespot.GetAddressFunc, error)

func (*ApResolver) GetSpclient

func (r *ApResolver) GetSpclient(ctx context.Context) (librespot.GetAddressFunc, error)

Jump to

Keyboard shortcuts

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