server

package
v0.0.0-...-1726717 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg *Config, deps *Dependencies) (*server, error)

New constructs a new server with given arguments

Types

type Config

type Config struct {
	// Host address to accept requests on
	Host string
	// Port number to serve HTTP requests on
	HTTPPort int
	// Port number to serve Metrics requests on
	MetricsPort int
	// MetricsHost is the bind address for the dedicated /metrics listener.
	MetricsHost string
}

Configuration of a server.

type Dependencies

type Dependencies struct {
	Log             *zerolog.Logger
	AppConfig       *config.Config
	GraphQLProvider graphql.Provider
	HTTPProvider    http_handlers.Provider
}

Dependencies for a server

Jump to

Keyboard shortcuts

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