rest

package
v0.0.0-...-9da9030 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package rest implements setup, teardown and handlers for the REST API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server represents API server of application

func (*Server) Run

func (s *Server) Run(port string, handler http.Handler) error

Run creates configuration for the server and starts it

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Shutdown stops the Server

Directories

Path Synopsis
PAckage handler implements router and endpoints for REST API
PAckage handler implements router and endpoints for REST API

Jump to

Keyboard shortcuts

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