server

package
v0.0.0-...-fcd67d8 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package server implements the gdprprocessor service HTTP API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServiceName string `env:"SERVICE_NAME" env-default:"gdprprocessor"`
	Port        string `env:"PORT" env-default:"8137"`
	LogLevel    string `env:"LOG_LEVEL" env-default:"info"`
}

Config is the gdprprocessor service environment configuration.

type Server

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

Server wraps the GDPR processor HTTP API.

func New

func New(cfg Config) *Server

New constructs the gdprprocessor HTTP server with an in-memory store.

func NewWithStore

func NewWithStore(cfg Config, st *store.Store) *Server

NewWithStore constructs the server with a custom store (tests).

func (*Server) Echo

func (s *Server) Echo() *echo.Echo

Echo exposes the underlying Echo instance (tests / custom mounts).

func (*Server) Shutdown

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

Shutdown stops the HTTP server.

func (*Server) Start

func (s *Server) Start() error

Start begins serving HTTP.

Jump to

Keyboard shortcuts

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