server

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTransactionCompleted = errors.New("transaction already completed")

ErrTransactionCompleted indicates the transaction was already completed.

Functions

func NewTransactionWaiter

func NewTransactionWaiter() *transactionWaiter

NewTransactionWaiter creates a new transaction waiter.

Types

type Config added in v0.0.7

type Config struct {
	Storage       *storage.Storage
	Log           *slog.Logger
	MaxTxDuration time.Duration
}

type Server

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

Server represents the logd HTTP server.

func New

func New(cfg *Config) *Server

New creates a new Server instance.

func (*Server) ServeHTTP

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

ServeHTTP implements http.Handler.

Jump to

Keyboard shortcuts

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