server

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr            string
	ScannerConfig   scanner.Config
	RemoveConverted bool
}

type HealthChecker

type HealthChecker interface {
	Health(ctx context.Context) any
}

type Server

type Server struct {
	Scanner    *scanner.Scanner
	Convertor  *convertor.Convertor
	HTTPServer *http.Server
	// contains filtered or unexported fields
}

func New

func New(cfg Config, logger *slog.Logger) (*Server, error)

func (Server) Health

func (s Server) Health(w http.ResponseWriter, r *http.Request)

func (Server) Run

func (s Server) Run(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