add documentation, wire configuration

This commit is contained in:
Willy Kloucek
2022-08-17 12:13:47 +02:00
parent 0a9790105d
commit 5730ad6d5b
4 changed files with 69 additions and 7 deletions
+4 -1
View File
@@ -48,7 +48,10 @@ func Server(cfg *config.Config) *cli.Command {
pidFile := path.Join(os.TempDir(), "revad-"+cfg.Service.Name+"-"+uuid.Must(uuid.NewV4()).String()+".pid")
rcfg := revaconfig.FrontendConfigFromStruct(cfg)
rcfg, err := revaconfig.FrontendConfigFromStruct(cfg)
if err != nil {
return err
}
gr.Add(func() error {
runtime.RunWithOptions(rcfg, pidFile, runtime.WithLogger(&logger.Logger))