server

package
v0.0.0-...-1f94361 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 13 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 {
	HTTPServer *http.Server
	Router     *gin.Engine
	Config     *config.Config
	Logger     *logrus.Logger
}

func NewServer

func NewServer(conf *config.Config, logger *logrus.Logger) *Server

NewServer returns an instance of the server

func (*Server) Start

func (s *Server) Start() error

Start starts server

Jump to

Keyboard shortcuts

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