cmux

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MuxServer added in v1.0.1

type MuxServer struct {
	*Option
	// contains filtered or unexported fields
}

func NewMux added in v1.0.1

func NewMux(ctx context.Context, endpoint string, grpcRegisters []serverGRPC.RegisterGRPC, opts ...OptionFunc) *MuxServer

func (*MuxServer) Close added in v1.0.1

func (s *MuxServer) Close() (err error)

func (*MuxServer) Start added in v1.0.1

func (s *MuxServer) Start() (err error)

type Option

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

type OptionFunc

type OptionFunc func(*Option)

func WithHTTPHandler added in v1.0.1

func WithHTTPHandler(h http.Handler) OptionFunc

type RegisterHTTP

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

Jump to

Keyboard shortcuts

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