httpServer

package
v0.0.0-...-80164ef Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLoggerIsRequired     = errors.NewError("SYS", "Logger is required")
	ErrHttpConfigIsRequired = errors.NewError("SYS", "HttpConfig is required")
)

Functions

This section is empty.

Types

type Builder

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

func NewBuilder

func NewBuilder() *Builder

func (*Builder) Build

func (b *Builder) Build() (*HttpServer, error)

func (*Builder) Config

func (b *Builder) Config(config *httpServerModel.Config) *Builder

func (*Builder) ErrorResponseWriter

func (b *Builder) ErrorResponseWriter(errResponseWriter *httpResponse.ErrorWriter) *Builder

func (*Builder) Logger

func (b *Builder) Logger(logger log.Logger) *Builder

func (*Builder) ResponseWriter

func (b *Builder) ResponseWriter(responseWriter *httpResponse.Writer) *Builder

type HttpServer

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

func (*HttpServer) Start

func (s *HttpServer) Start(ctx context.Context) error

func (*HttpServer) Stop

func (s *HttpServer) Stop(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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