string

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: GPL-3.0 Imports: 10 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

func MakeHandler added in v0.2.0

func MakeHandler(svc Service) http.Handler

Types

type Service added in v0.2.0

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

StringService provides operations on strings.

func NewInstrumentingService added in v0.2.0

func NewInstrumentingService(counter *prometheus.CounterVec, latency *prometheus.HistogramVec, s Service) Service

func NewLoggingService added in v0.2.0

func NewLoggingService(logger zerolog.Logger, s Service) Service

func NewService added in v0.2.0

func NewService() Service

Jump to

Keyboard shortcuts

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