示例#1
0
// New returns a new downloader
func New(config *configuration.Config, vs *library.Library) *Downloader {
	return &Downloader{
		Base:    subapp.NewBase(AppName),
		config:  config,
		library: vs,
	}
}
示例#2
0
// New returns a new organizer
func New(config *configuration.Config, vs *library.Library) *Organizer {
	return &Organizer{
		Base:    subapp.NewBase(AppName),
		config:  config,
		library: vs,
	}
}
示例#3
0
文件: http.go 项目: odwrtw/polochon
// New returns a new server
func New(config *configuration.Config, vs *library.Library, tm *token.Manager) *Server {
	return &Server{
		Base:         subapp.NewBase(AppName),
		config:       config,
		library:      vs,
		tokenManager: tm,
		render:       render.New(),
	}
}
示例#4
0
// New returns a new cleaner
func New(config *configuration.Config) *Cleaner {
	return &Cleaner{
		Base:   subapp.NewBase(AppName),
		config: config,
	}
}