proverbial

package module
v0.0.0-...-10438a3 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: MIT Imports: 16 Imported by: 0

README

serverless-proverbs

Serverless application that delivers proverbs on demand.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

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

Checker checks an endpoint to verify it returns a proverb.

func NewChecker

func NewChecker(hc httpClient, ddb ddbPutter) *Checker

NewChecker returns a new Checker.

func (*Checker) Handle

Handle handles the request.

type Handler

type Handler struct {
}

Handler handles incoming request.

func NewHandler

func NewHandler() *Handler

NewHandler returns a new handler.

func (*Handler) Handle

Handle handles the request.

type Picker

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

Picker picks an item from the checks database.

func NewPicker

func NewPicker(ddb ddbScanner) *Picker

NewPicker returns a new Picker.

func (*Picker) Handle

func (p *Picker) Handle(ctx context.Context) (string, error)

Handle handles the request.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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