server

package
v0.0.0-...-77c6198 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2026 License: GPL-3.0 Imports: 37 Imported by: 0

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

func NewServer(cfg config.Config, logger zerolog.Logger) (*Server, error)

NewServer creates a new IaC Controller server following Atlantis pattern All dependencies are initialized here

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe starts the HTTP server

Directories

Path Synopsis
controllers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL