rename server options struct

This commit is contained in:
sentriz
2020-01-18 17:42:19 +00:00
parent 8e5d397082
commit fa12cb4150
2 changed files with 4 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ import (
"senan.xyz/g/gonic/server/ctrlsubsonic"
)
type ServerOptions struct {
type Options struct {
DB *db.DB
MusicPath string
ListenAddr string
@@ -29,10 +29,10 @@ type Server struct {
*http.Server
router *mux.Router
ctrlBase *ctrlbase.Controller
opts ServerOptions
opts Options
}
func New(opts ServerOptions) *Server {
func New(opts Options) *Server {
opts.MusicPath = filepath.Clean(opts.MusicPath)
ctrlBase := &ctrlbase.Controller{
DB: opts.DB,