server

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Impl

type Impl struct {
	Configuration       librepo.Configuration
	CustomConfiguration config.CustomConfiguration
	Logging             librepo.Logging
	IdentityProvider    repository.IdentityProvider
	HealthCtl           libcontroller.HealthController
	SwaggerCtl          libcontroller.SwaggerController
	OwnerCtl            controller.OwnerController
	ServiceCtl          controller.ServiceController
	RepositoryCtl       controller.RepositoryController
	WebhookCtl          controller.WebhookController

	Router chi.Router

	RequestTimeoutSeconds     int
	ServerReadTimeoutSeconds  int
	ServerWriteTimeoutSeconds int
	ServerIdleTimeoutSeconds  int
}

func (*Impl) CreateMainServer

func (s *Impl) CreateMainServer(ctx context.Context) *http.Server

func (*Impl) CreateMetricsServer

func (s *Impl) CreateMetricsServer(ctx context.Context) *http.Server

func (*Impl) IsServer

func (s *Impl) IsServer() bool

func (*Impl) NewServer

func (s *Impl) NewServer(ctx context.Context, address string, router http.Handler) *http.Server

func (*Impl) Run

func (s *Impl) Run() error

func (*Impl) Setup added in v0.33.0

func (s *Impl) Setup() error

func (*Impl) StartForegroundMainServer

func (s *Impl) StartForegroundMainServer(ctx context.Context, srv *http.Server) error

func (*Impl) StartMetricsServerAsyncTerminatesOnError

func (s *Impl) StartMetricsServerAsyncTerminatesOnError(ctx context.Context, srv *http.Server)

func (*Impl) WireUp

func (s *Impl) WireUp(ctx context.Context)

Jump to

Keyboard shortcuts

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