server

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server represents the HTTP server

func NewServer

func NewServer(config *ServerConfig) *Server

NewServer creates a new server instance

func (*Server) Start

func (s *Server) Start() error

Start starts the HTTP server

type ServerConfig

type ServerConfig struct {
	Port           string
	Host           string
	Debug          bool
	CORSEnabled    bool
	SwaggerEnabled bool
}

ServerConfig holds the server configuration

func DefaultConfig

func DefaultConfig() *ServerConfig

DefaultConfig returns a default server configuration

Directories

Path Synopsis
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.

Jump to

Keyboard shortcuts

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