mediaserver

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Listening port
	Port uint `yaml:"port,omitempty"`
	// Unique ID
	UUID string `yaml:"uuid,omitempty"`
	// Friendly name
	Name string `yaml:"name,omitempty"`
}

type Server

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

func New

func New(opts *Options, ss storage.StorageService) *Server

func (*Server) DeviceIsTarget added in v1.0.2

func (s *Server) DeviceIsTarget(targetType string) bool

func (*Server) DeviceType

func (s *Server) DeviceType() string

func (*Server) DeviceUSN

func (s *Server) DeviceUSN() string

func (*Server) ErrChan

func (s *Server) ErrChan() <-chan error

ErrChan returns a readonly error channel.

func (*Server) GetDeviceDescURL

func (s *Server) GetDeviceDescURL(ip string) string

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown tries to shutdown HTTP server.

func (*Server) Startup

func (s *Server) Startup() (err error)

Startup starts HTTP server in goroutine.

Directories

Path Synopsis
service
contentdirectory/proto
proto package contains prote defination of ContentDirectory Service
proto package contains prote defination of ContentDirectory Service

Jump to

Keyboard shortcuts

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