rest

package
v0.0.0-...-1b9b0c1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestServer

type RestServer struct {
	TracerProvider *sdktrace.TracerProvider
	// contains filtered or unexported fields
}

RestServer handler for getting and updating Ratings

func NewRestServer

func NewRestServer(dbContext *application.DataContext) *RestServer

NewRestServer returns a new APIContext handler with the given logger

func (*RestServer) RunServer

func (restServer *RestServer) RunServer(bindAddress *string) error

RunServer prepares the server and runs it

func (*RestServer) Shutdown

func (restServer *RestServer) Shutdown(ctx context.Context)

Shutdown gracefully shuts down the server

Jump to

Keyboard shortcuts

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