server

package
v0.0.0-...-5241072 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidRequest = errors.New("invalid request")
)

Functions

func NewConfig

func NewConfig() (*config.Config, error)

NewConfig will load the config from etl.yml.

func Start

func Start(ctx context.Context) error

Start will load the config and start a HTTP server using the platform.

Types

type Module

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

Module implements platform.Module for the ETL server.

func NewModule

func NewModule(conf *config.Config) *Module

NewModule creates a new ETL server module.

func (*Module) Mount

func (m *Module) Mount(ctx context.Context, r platform.Router) error

Mount registers the ETL routes on the router.

func (*Module) Name

func (m *Module) Name() string

Name returns the module name.

func (*Module) Start

func (m *Module) Start(ctx context.Context) error

Start initializes the module (no-op for ETL server as mounting handles setup).

func (*Module) Stop

func (m *Module) Stop(ctx context.Context) error

Stop cleans up the module (no-op for ETL server).

Directories

Path Synopsis
Package config provides the configuration structure and parsing for the ETL server.
Package config provides the configuration structure and parsing for the ETL server.
middleware

Jump to

Keyboard shortcuts

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