ports

package
v0.0.0-...-7608417 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrForbidden = common.NewError("forbidden", "forbidden content access")
View Source
var ErrInvalidAddress = common.NewError("invalid_address", "address is required")
View Source
var ErrInvalidPlanId = common.NewError("invalid_plan_id", "plan id is required")

Functions

This section is empty.

Types

type HttpServer

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

HttpServer is a HTTP server that listens for incoming REST requests and routes them to the appropriate command and query handlers.

func NewHttpServer

func NewHttpServer(a *app.Application) *HttpServer

NewHttpServer creates a new HTTP server

func (*HttpServer) Start

func (s *HttpServer) Start(addr string) error

Start starts the HTTP server

func (*HttpServer) WithLogger

func (s *HttpServer) WithLogger(logger zerolog.Logger)

WithLogger sets the logger for the server

Jump to

Keyboard shortcuts

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