server

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 6 Imported by: 8

Documentation

Overview

Package server provides a way to access a server TODO: consider moving this into gin helper

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 is a way to access a server listener.

func (Server) ListenAndServe

func (s Server) ListenAndServe(ctx context.Context, port string, handler *gin.Engine) error

ListenAndServe provides a way to listen and serve a server with context. The server will terminate if the context is canceled.

Jump to

Keyboard shortcuts

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