protocols

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrpcClientsIfConfigured

func NewGrpcClientsIfConfigured(config *service.Config) ([]service.Client, error)

NewGrpcClientsIfConfigured takes in a Config and returns an instance of gRPC-backed Client for every configured gRPC downstream service

func NewGrpcServerIfConfigured

func NewGrpcServerIfConfigured(config *service.Config, serviceHandler *service.RequestHandler) (service.Server, error)

NewGrpcServerIfConfigured returns a gRPC-backed Server

func NewHTTPClientsIfConfigured

func NewHTTPClientsIfConfigured(config *service.Config) ([]service.Client, error)

NewHTTPClientsIfConfigured takes in a Config and returns an instance of HTTP-backed Client for every configured HTTP downstream service

func NewHTTPServerIfConfigured

func NewHTTPServerIfConfigured(config *service.Config, serviceHandler *service.RequestHandler) (service.Server, error)

NewHTTPServerIfConfigured returns a HTTP-backed Server

Types

This section is empty.

Jump to

Keyboard shortcuts

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