zeroconf

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

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(deviceName, deviceId string, deviceType devicespb.DeviceType) (_ *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