|
package mainservice
|
|
|
|
type MainService struct {
|
|
}
|
|
|
|
func New(configFileName string) (*MainService, error) {
|
|
// parse config
|
|
return nil, nil
|
|
}
|
|
|
|
func (s *MainService) Serve() error {
|
|
// start web server in goroutine
|
|
// start mpvipc in another goroutine
|
|
// go!
|
|
return nil
|
|
}
|