svc1

package
Version: v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: MIT Imports: 10 Imported by: 0

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

func NewService(svc2Client svc2.Service) Service

NewService returns a new implementation of our Service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL