grpcutil

package module
v0.0.0-...-de50d6b Latest Latest
Warning

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

Go to latest
Published: May 6, 2017 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WebsocketProxy

func WebsocketProxy(h http.Handler) thisCodeHasMoved

This function is deprecated and moved to https://github.com/tmc/grpc-websocket-proxy

Types

type JSONPb

type JSONPb jsonpb.Marshaler

JSONPb is a gwruntime.Marshaler that uses github.com/gogo/protobuf/jsonpb.

func (*JSONPb) ContentType

func (*JSONPb) ContentType() string

ContentType implements gwruntime.Marshaler.

func (*JSONPb) Marshal

func (j *JSONPb) Marshal(v interface{}) ([]byte, error)

Marshal implements gwruntime.Marshaler.

func (*JSONPb) NewDecoder

func (j *JSONPb) NewDecoder(r io.Reader) gwruntime.Decoder

NewDecoder implements gwruntime.Marshaler.

func (*JSONPb) NewEncoder

func (j *JSONPb) NewEncoder(w io.Writer) gwruntime.Encoder

NewEncoder implements gwruntime.Marshaler.

func (*JSONPb) Unmarshal

func (j *JSONPb) Unmarshal(data []byte, v interface{}) error

Unmarshal implements gwruntime.Marshaler.

type JWTCredentials

type JWTCredentials struct{}

JWTCredentials implements PerRPCCredentials for a jwt in the 'authorization' metadata field.

func NewJWTCredentials

func NewJWTCredentials() *JWTCredentials

func (*JWTCredentials) GetRequestMetadata

func (c *JWTCredentials) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

func (*JWTCredentials) RequireTransportSecurity

func (c *JWTCredentials) RequireTransportSecurity() bool

Directories

Path Synopsis
genelmtypes
Package genelmtypes provides a code generator for elm types.
Package genelmtypes provides a code generator for elm types.
genflowtypes
Package genflowtypes provides a code generator for flow types.
Package genflowtypes provides a code generator for flow types.

Jump to

Keyboard shortcuts

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