server

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(option ...Option) *module.Module

Types

type Option

type Option interface {
	Apply(*options)
}

func WithErrorHandler

func WithErrorHandler(errHandler fiber.ErrorHandler) Option

type Server

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

func New

func New(registries []*registry, cfg *config.Config, app *fiber.App) *Server

func OfController

func OfController(ct controller.Controller) *Server

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

func (*Server) Start

func (s *Server) Start() error

func (*Server) Test

func (s *Server) Test(req *http.Request, msTimeout ...int) (*http.Response, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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