svc

package
v0.0.0-...-63692ed Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(method, url string, payload io.Reader, res interface{}, cookie []*http.Cookie) error

Call a web service with the given url and parameters

func EncodeResponse

func EncodeResponse(_ context.Context, w http.ResponseWriter, resp interface{}) error

EncodeResponse returns a json reply

func MakeHealthHandler

func MakeHealthHandler(opts []kithttp.ServerOption) *kithttp.Server

MakeHealthHandler creates a new status handler

Types

type HealthResponse

type HealthResponse struct {
	Status string `json:"status"`
}

HealthResponse describes a healthy status

Jump to

Keyboard shortcuts

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