grpc

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClient

type HTTPClient struct {
	*httpclient.Client
	// contains filtered or unexported fields
}

func NewHTTPClient

func NewHTTPClient(opts ...HTTPClientOpt) *HTTPClient

func (*HTTPClient) MakeRequest

func (c *HTTPClient) MakeRequest(methodName string, opts ...httpclient.ReqOpt) (*http.Request, error)

type HTTPClientCfg

type HTTPClientCfg struct {
	// contains filtered or unexported fields
}

type HTTPClientOpt

type HTTPClientOpt func(*HTTPClient)

func Debug added in v0.3.1

func Debug(v bool) HTTPClientOpt

func Host

func Host(host string) HTTPClientOpt

func PackageName

func PackageName(pkg string) HTTPClientOpt

func Schema

func Schema(schema string) HTTPClientOpt

func ServiceName

func ServiceName(svc string) HTTPClientOpt

func TLSConfig added in v0.3.1

func TLSConfig(opts ...tlsconfig.Option) HTTPClientOpt

func Version

func Version(version string) HTTPClientOpt

type PBResponseFunc

type PBResponseFunc func(proto.Message) httpclient.ResponseProcessor
var PBResponse PBResponseFunc

type PBResponsor

type PBResponsor struct {
	// contains filtered or unexported fields
}

func (PBResponsor) Process

func (pr PBResponsor) Process(ctx context.Context, rsp *http.Response) error

type URIFormatFunc

type URIFormatFunc func(version string, pkg string, service string, method string) string
var URIFormat URIFormatFunc

Jump to

Keyboard shortcuts

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