web

package
v0.0.0-...-8009223 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 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 {
	Server    fasthttp.Server
	Stop      chan bool
	IsStarted atomic.Bool
	Router    *router.Router
	Config    config.HTTP
	Cc        *appctx.CoreContext
}

func Register

func Register(
	ctx *appctx.CoreContext,
	routes *router.Router,
	cfg *config.Configuration,
) *Server

func (*Server) IsServerStarted

func (w *Server) IsServerStarted() bool

func (*Server) Run

func (w *Server) Run()

func (*Server) Serve

func (w *Server) Serve()

func (*Server) ServerStop

func (w *Server) ServerStop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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