proxy

package
v0.0.0-...-b1f0364 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Codec

func Codec() *rawCodec

Codec returns a proxying encoding.Codec with the default protobuf codec as parent.

See CodecWithParent.

func CodecWithParent

func CodecWithParent(fallback encoding.Codec) *rawCodec

CodecWithParent returns a proxying encoding.Codec with a user provided codec as parent.

Types

type Proxy

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

func New

func New(endpoint string) (*Proxy, error)

func (*Proxy) GracefulStop

func (p *Proxy) GracefulStop()

func (*Proxy) NewConn

func (p *Proxy) NewConn(options ...grpc.DialOption) (*grpc.ClientConn, error)

func (*Proxy) Serve

func (p *Proxy) Serve(ctx context.Context) error

Serve starts the internal proxy. Should be called in a goroutine

func (*Proxy) Stop

func (p *Proxy) Stop()

Jump to

Keyboard shortcuts

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