rest

package
v0.0.0-...-5abfebf Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 10 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 {
	// contains filtered or unexported fields
}

RestServer represents a REST server

func NewRestServer

func NewRestServer(config config.RestServer) *RestServer

NewRestServer creates a new rest server

func (*RestServer) ListenAndServe

func (r *RestServer) ListenAndServe() error

ListenAndServe starts the HTTP server

func (*RestServer) Shutdown

func (r *RestServer) Shutdown(ctx context.Context) error

Shutdown stops the rest server

Jump to

Keyboard shortcuts

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