rest

package
v0.0.0-...-926ba8e Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.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 Handlers

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

Handlers holds the dependencies

func NewHandlers

NewHandlers is the constructor for Handlers struct

func (*Handlers) GetServer

func (h *Handlers) GetServer(listenAddr string) *http.Server

GetServer returns an http.Server

func (*Handlers) SetupRoutes

func (h *Handlers) SetupRoutes(mux *http.ServeMux)

SetupRoutes define the mux routes

Jump to

Keyboard shortcuts

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