http

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetLuckyNumber(w http.ResponseWriter, r *http.Request, params httprouter.Params)
}

func New

func New(
	router *httprouter.Router,
	numComponent uNumComponent.Client,
) Client

type TestGetLuckyNumber

type TestGetLuckyNumber struct{}

func (TestGetLuckyNumber) FailCalcLuckyNumber

func (TestGetLuckyNumber) FailCalcLuckyNumber(t *testing.T) *httptest.ResponseRecorder

FailCalcLuckyNumber fail when CalcLuckyNumber.

func (TestGetLuckyNumber) Success

Success when everything is success.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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