server

package
v0.0.0-...-cc53411 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HTTPServerPort string `env:"SERVER_PORT,default=8123"`
	HideBanner     bool   `env:"HIDE_BANNER, default=false"`
}

type Handler

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

func NewHandler

func NewHandler(db *gorm.DB) *Handler

type Server

type Server interface {
	Start(address string) error
	Shutdown(ctx context.Context) error
}

func New

func New(c *Config, h *Handler) Server

Jump to

Keyboard shortcuts

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