controllers

package
v0.0.0-...-3029327 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func New(storage Storage) *Controller

func (*Controller) GetValue

func (c *Controller) GetValue(UseDefault bool) http.HandlerFunc

func (*Controller) SetValue

func (c *Controller) SetValue(w http.ResponseWriter, r *http.Request)

type MemStorage

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

func (*MemStorage) Get

func (m *MemStorage) Get() string

func (*MemStorage) Put

func (m *MemStorage) Put(s string)

type Payload

type Payload struct {
	Value string `json:"value"`
}

type Storage

type Storage interface {
	Get() string
	Put(string)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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