server

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerMetrics added in v1.4.0

func HandlerMetrics(c *gin.Context)

func Logger

func Logger(ignorePaths ...string) gin.HandlerFunc

Logger forces gin to use our logger Adapted from gin.Logger

Types

type Server

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

Server represents API server

func New

func New(routes ...routes) *Server

New creates a new API server

func (*Server) Serve

func (s *Server) Serve() error

Serve starts API server

func (*Server) Stop added in v1.2.0

func (s *Server) Stop()

Stop stops the server

Jump to

Keyboard shortcuts

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