server

package
v0.0.0-...-20c256c Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GracefulShutdownTimeout = 10 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port        string
	UseHttp2    bool
	CorsOrigins []string
}

func LoadConfig

func LoadConfig() (*Config, error)

type Server

type Server struct {
	Echo *echo.Echo
	// contains filtered or unexported fields
}

func NewServer

func NewServer(e *echo.Echo, ec *Config, database *db.Database) *Server

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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