handlers

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func NewApp

func NewApp(opts ...AppOpt) *App

func (*App) HandleIngest

func (app *App) HandleIngest(w http.ResponseWriter, r *http.Request)

func (*App) WriteJSONErr

func (app *App) WriteJSONErr(w http.ResponseWriter, statusCode int, reqID string, err error)

func (*App) WriteJSONResponse

func (app *App) WriteJSONResponse(w http.ResponseWriter, statusCode int, resp any)

type AppOpt

type AppOpt func(app *App)

func WithInhooksConfigService

func WithInhooksConfigService(inhooksConfigSvc services.InhooksConfigService) AppOpt

func WithLogger

func WithLogger(logger *zap.Logger) AppOpt

func WithMessageBuilder

func WithMessageBuilder(messageBuilder services.MessageBuilder) AppOpt

func WithMessageEnqueuer

func WithMessageEnqueuer(messageEnqueuer services.MessageEnqueuer) AppOpt

func WithMessageVerifier added in v0.1.6

func WithMessageVerifier(messageVerifier services.MessageVerifier) AppOpt

type JSONErr

type JSONErr struct {
	Error string `json:"error"`
	ReqID string `json:"reqID,omitempty"`
}

type JSONOK

type JSONOK struct {
}

Jump to

Keyboard shortcuts

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