zeroconf

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: GPL-3.0 Imports: 15 Imported by: 1 module, 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

This section is empty.

Functions

This section is empty.

Types

type AddUserResponse

type AddUserResponse struct {
	Status       int    `json:"status"`
	StatusString string `json:"statusString"`
	SpotifyError int    `json:"spotifyError"`
}

type GetInfoResponse

type GetInfoResponse struct {
	Status           int    `json:"status"`
	StatusString     string `json:"statusString"`
	SpotifyError     int    `json:"spotifyError"`
	Version          string `json:"version"`
	LibraryVersion   string `json:"libraryVersion"`
	AccountReq       string `json:"accountReq"`
	BrandDisplayName string `json:"brandDisplayName"`
	ModelDisplayName string `json:"modelDisplayName"`
	VoiceSupport     string `json:"voiceSupport"`
	Availability     string `json:"availability"`
	ProductID        int    `json:"productID"`
	TokenType        string `json:"tokenType"`
	GroupStatus      string `json:"groupStatus"`
	ResolverVersion  string `json:"resolverVersion"`
	Scope            string `json:"scope"`
	DeviceID         string `json:"deviceID"`
	RemoteName       string `json:"remoteName"`
	PublicKey        string `json:"publicKey"`
	DeviceType       string `json:"deviceType"`
	ActiveUser       string `json:"activeUser"`
}

type HandleNewRequestFunc

type HandleNewRequestFunc func(req NewUserRequest) bool

type NewUserRequest

type NewUserRequest struct {
	Username   string
	AuthBlob   []byte
	DeviceName string
	// contains filtered or unexported fields
}

type Zeroconf

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

func NewZeroconf

func NewZeroconf(log librespot.Logger, port int, deviceName, deviceId string, deviceType devicespb.DeviceType, interfacesToAdvertise []string) (_ *Zeroconf, err error)

func (*Zeroconf) Close

func (z *Zeroconf) Close()

Close stops the zeroconf responder and HTTP listener, but does not close the last opened session.

func (*Zeroconf) Serve

func (z *Zeroconf) Serve(handler HandleNewRequestFunc) error

func (*Zeroconf) SetCurrentUser

func (z *Zeroconf) SetCurrentUser(username string)

Jump to

Keyboard shortcuts

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