server

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package server implements the HTTP server for handling Discord interactions via webhooks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server represents the HTTP server.

func NewServer

func NewServer(cfg config.Config, logger *slog.Logger, middleware ...func(http.Handler) http.Handler) (*Server, error)

NewServer creates a new Server instance.

func (*Server) Start

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

Start starts the HTTP server.

Jump to

Keyboard shortcuts

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