server

package
v0.0.0-...-2d98496 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: GPL-3.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
}

func NewServer

func NewServer(conf config.Server) *Server

func (*Server) ApplyMiddleware

func (s *Server) ApplyMiddleware(cnf config.Configs, reRoutes map[string]string, db *ent.Client)

func (*Server) RegisterRoutes

func (server *Server) RegisterRoutes(hdlr *handler.Handler)

func (*Server) Start

func (s *Server) Start()

Starts the server in a new routine

func (*Server) Stop

func (s *Server) Stop()

Tries to the stops the server gracefully

Jump to

Keyboard shortcuts

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