server

package
v0.0.0-...-70d0519 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 12 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 {
	Repository  notionstix.Repository
	Service     api.ServerInterface
	ServiceName string
	Environment string
	RedisAddr   string
	Port        int
}

Config represents the configuration for the server.

type Server

type Server struct {
	Router *chi.Mux
	// contains filtered or unexported fields
}

Server represents an HTTP server.

func New

func New(ctx context.Context, config *Config) *Server

New creates a new instance of the server.

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe starts the HTTP server and listens for incoming requests.

Jump to

Keyboard shortcuts

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