Versions in this module Expand all Collapse all v0 v0.7.0 Mar 19, 2018 v0.6.0 Oct 3, 2017 Changes in this version + var ErrIntOverflow = errors.New("integer overflow") + var ErrMaxSizeExceeded = errors.New("result exceeds maximum size") + var ErrTwoZeroes = errors.New("can't sum two zeroes") + type Middleware func(Service) Service + func InstrumentingMiddleware(ints, chars metrics.Counter) Middleware + func LoggingMiddleware(logger log.Logger) Middleware + type Service interface + Concat func(ctx context.Context, a, b string) (string, error) + Sum func(ctx context.Context, a, b int) (int, error) + func New(logger log.Logger, ints, chars metrics.Counter) Service + func NewBasicService() Service