server

package
v0.0.0-...-c304cca Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Api *api.ServerInterface
	S
}

Application is the applications main struct. It holds references to all the methods and handlers of this application.

func (*Application) CreateScan

func (app *Application) CreateScan(w http.ResponseWriter, r *http.Request)

func (*Application) Error

func (app *Application) Error(w http.ResponseWriter, code int, message string, errorInfo map[string]interface{})

func (*Application) Healthz

func (app *Application) Healthz(w http.ResponseWriter, _ *http.Request)

func (*Application) ListScans

func (app *Application) ListScans(w http.ResponseWriter, r *http.Request, params api.ListScansParams)

func (*Application) RetrieveScan

func (app *Application) RetrieveScan(w http.ResponseWriter, r *http.Request, id string)

func (*Application) Serve

func (app *Application) Serve() error

type Envelope

type Envelope map[string]any

type S

type S struct {
	Config *config.Conf
	Logger zerolog.Logger
	WG     *sync.WaitGroup
	DB     *mongo.Database
	Nats   *natsio.Nats
}

Jump to

Keyboard shortcuts

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