Documentation ¶
Overview ¶
Package rest contains all methods and middleware for working web server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitMetrics ¶
func InitMetrics(namespace string, flatSwaggerJSON json.RawMessage)
InitMetrics must be called once before using this package. It registers and initializes metrics used by this package.
Types ¶
type Option ¶
type Option func(*config)
Option for run server.
func SetBasePath ¶
SetBasePath sets the base path to handlers. Default: /api/v1.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.