http

package
v0.0.0-...-6c895c8 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Storage    Storage
	HttpServer *echo.Echo
}

func NewApp

func NewApp(storage Storage) *App

func (*App) RunHttp

func (a *App) RunHttp(port string)

type Handler

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

func NewHandler

func NewHandler(storage Storage) Handler

func (Handler) DeleteValue

func (h Handler) DeleteValue(ctx echo.Context) error

func (Handler) GetValue

func (h Handler) GetValue(ctx echo.Context) error

func (Handler) SetValue

func (h Handler) SetValue(ctx echo.Context) error

type Storage

type Storage interface {
	Get(key string) (string, error)
	Set(key string, value string)
	Delete(key string) error
}

Jump to

Keyboard shortcuts

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