mainserver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ALTIA_LOCAL = "local"
	ALTIA_DEV   = "altia-dev"
	ISBE_DEV    = "isbe-dev"
	ISBE_PRE    = "isbe-pre"
	ISBE_PRO    = "isbe-pro"
)

We define several profiles, to facilitate configuration if an environment matches one of the profiles. To run the server in a specific profile, use the -profile flag or the PROFILE environment variable, with the value of the profile you want to use. No other environment variables are required when using a profile, except for the TSA and email server credentials.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Development    bool
	OnboardURL     string
	OnboardPort    string
	TMFServerURL   string
	CertAuthConfig *certauth.Config
}

Config is the configuration for the server. It contains the configuration for CertAuth, CertSec and Onboard servers.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server manages the CertAuth, CertSec and Onboard servers

func New

func New(adminPassword string, cfg Config, profile string) (*Server, error)

New creates a new server instance. It initializes the database, cache, CertAuth, CertSec and Onboard servers.

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start starts both servers: CertAuth and CertSec. It also starts the Onboarding test server if enabled

Jump to

Keyboard shortcuts

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