Documentation
¶
Index ¶
Constants ¶
View Source
const (
AsyncEndpoint = "/internal/async/run"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// Configuration
Config config.Config
Port string
Logger zerolog.Logger
// HTTP
Router *chi.Mux
// Controllers (handlers prontos)
CredentialsController *credctrl.CredentialsController
AdminController *admin.AdminController
AzureWebhookController *webhook.WebhookController
PlansController *plans.PlansController
// Business Logic
DeploymentService *service.DeploymentService
ComplianceEngine *compliance.Engine
// Infrastructure
IAM *iam.Service
SCM scm.Client
Storage *fsadapter.Adapter
Pipeline *pipeline_azure.Adapter
// Async
AsyncEngine *async.Engine
AsyncRegistry *async.Registry
}
Server runs the IaC Controller web server Following Atlantis pattern: Server struct holds all dependencies
func NewServer ¶
NewServer creates a new IaC Controller server following Atlantis pattern All dependencies are initialized here
func (*Server) ListenAndServe ¶
ListenAndServe starts the HTTP server
Click to show internal directories.
Click to hide internal directories.