server

package
v0.0.0-...-14493fd Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrpcServer

func NewGrpcServer(svc mathservice2.Service) grpcServer

func NewHttpRouter

func NewHttpRouter(svc mathservice2.Service, logger *zap.Logger) *mux.Router

Types

type MathOpRequest

type MathOpRequest struct {
	A, B float64
}

MathOpRequest collects the request parameters for the math methods.

type MathOpResponse

type MathOpResponse struct {
	V   float64 `json:"v"`
	Err error   `json:"-"`
}

MathOpResponse collects the response values for the math methods.

Jump to

Keyboard shortcuts

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