Documentation ¶
Index ¶
Constants ¶
View Source
const (
StrMaxSize = 1024
)
Service constants
Variables ¶
View Source
var (
ErrMaxSize = errors.New("maximum size of 1024 bytes exceeded")
)
Service errors
Functions ¶
func NewHTTPHandler ¶
func NewHTTPHandler(tracer opentracing.Tracer, service Service) http.Handler
NewHTTPHandler returns a new HTTP handler our svc1.
Types ¶
type Service ¶
type Service interface { Concat(ctx context.Context, a, b string) (string, error) Sum(ctx context.Context, a, b int64) (int64, error) }
Service interface
func NewHTTPClient ¶
func NewHTTPClient(tracer opentracing.Tracer, baseURL string) Service
NewHTTPClient returns a new client instance to our svc1 using the HTTP transport.
func NewService ¶
NewService returns a new implementation of our Service.
Click to show internal directories.
Click to hide internal directories.