gateway

package
v0.0.0-...-85cd7ee Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint func(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

type Gateway

type Gateway struct {
	*runtime.ServeMux
	// contains filtered or unexported fields
}

func NewGrpcGateway

func NewGrpcGateway(ctx context.Context, conn *grpc.ClientConn, opts ...Option) *Gateway

func (*Gateway) Conn

func (g *Gateway) Conn() *grpc.ClientConn

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithGrpcEndpoint

func WithGrpcEndpoint(endpoints ...Endpoint) Option

func WithHeaderMatcher

func WithHeaderMatcher(fn runtime.HeaderMatcherFunc) Option

func WithRuntimeSeverMuxOptions

func WithRuntimeSeverMuxOptions(opts ...runtime.ServeMuxOption) Option

Jump to

Keyboard shortcuts

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