17 lines
275 B
Go
17 lines
275 B
Go
|
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
|
||
|
}
|