inbound

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FiberWebServer

type FiberWebServer struct {
	TemplatesPath string
	Port          int
	Server        *fiber.App
	// contains filtered or unexported fields
}

func NewFiberWebServer

func NewFiberWebServer(cfg FiberWebServerConfig, adapters FiberWebServerAdapters) *FiberWebServer

func (*FiberWebServer) AddRoute

func (f *FiberWebServer) AddRoute(method string, path string, handler inbound.RouteHandlerFunc)

func (*FiberWebServer) AddWebsocketRoute

func (f *FiberWebServer) AddWebsocketRoute(path string, handler inbound.RouteHandlerFunc)

func (*FiberWebServer) Start

func (f *FiberWebServer) Start() error

type FiberWebServerAdapters

type FiberWebServerAdapters struct {
	Log outbound.Log
}

type FiberWebServerConfig

type FiberWebServerConfig struct {
	Port                int
	StaticResourcesPath string
	TemplatesPath       string
	TemplatesExtension  string
}

Jump to

Keyboard shortcuts

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