mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-11 01:32:46 +01:00
29 lines
506 B
Go
29 lines
506 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
|
|
"github.com/SecurityBrewery/catalyst"
|
|
"github.com/SecurityBrewery/catalyst/cmd"
|
|
"github.com/SecurityBrewery/catalyst/hooks"
|
|
)
|
|
|
|
func main() {
|
|
log.SetFlags(log.LstdFlags | log.Lshortfile)
|
|
|
|
config, err := cmd.ParseCatalystConfig()
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
|
|
theCatalyst, err := catalyst.New(&hooks.Hooks{}, config)
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
|
|
if err := http.ListenAndServe(":8000", theCatalyst.Server); err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|