service

package
v0.0.0-...-4f071e5 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmpty = errors.New("empty string")

ErrEmpty is returned when an input string is empty.

Functions

This section is empty.

Types

type StringService

type StringService interface {
	Uppercase(string) (string, error)
	Count(string) int
}

StringService provides operations on strings.

func NewInstrumentingMiddleware

func NewInstrumentingMiddleware(requestCount metrics.Counter, requestLatency metrics.Histogram,
	countResult metrics.Histogram, svc StringService) StringService

func NewLoggingMiddleware

func NewLoggingMiddleware(logger log.Logger, svc StringService) StringService

func NewStringService

func NewStringService() StringService

Jump to

Keyboard shortcuts

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