svc2

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Int64Max = 1<<63 - 1
	Int64Min = -(Int64Max + 1)
)

Service constants

Variables

View Source
var (
	ErrIntOverflow = errors.New("integer overflow occurred")
)

Service errors

Functions

func NewHTTPHandler

func NewHTTPHandler(tracer opentracing.Tracer, service Service) http.Handler

NewHTTPHandler returns a new HTTP handler our svc2.

Types

type Service

type Service interface {
	Sum(ctx context.Context, a int64, b int64) (int64, error)
}

Service interface to our svc2 service.

func NewHTTPClient

func NewHTTPClient(tracer opentracing.Tracer, baseURL string) Service

NewHTTPClient returns a new client instance to our svc2 using the HTTP transport.

func NewService

func NewService() 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
y or Y : Canonical URL