rest

package
v0.0.0-...-086ba71 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config, st storage.Storage) *rest

Types

type Config

type Config struct {
	Address         string        `env:"REST_ADDRESS"`
	ShutdownTimeout time.Duration `env:"REST_SHUTDOWN_TIMEOUT,default=30s"`
}

Config defines configuration for rest

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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