Mode from main
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
// Used for profiling
|
||||
import _ "net/http/pprof"
|
||||
|
||||
// ServerctlApi contains everything required for the api to run
|
||||
type ServerctlApi struct {
|
||||
logger *zap.Logger
|
||||
router *gin.Engine
|
||||
@@ -19,6 +20,7 @@ type ServerctlApi struct {
|
||||
dependencies *dependencies.Dependencies
|
||||
}
|
||||
|
||||
// NewServerctlApi Creates a new api struct
|
||||
func NewServerctlApi(dependencies *dependencies.Dependencies) *ServerctlApi {
|
||||
return &ServerctlApi{dependencies: dependencies}
|
||||
}
|
||||
|
Reference in New Issue
Block a user