h2c

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: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type H2CServer

type H2CServer struct {
	*Option
	*grpc.Server
	// contains filtered or unexported fields
}

func NewH2C

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

func (*H2CServer) Close

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

func (*H2CServer) Start

func (s *H2CServer) 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

func WithLogger

func WithLogger(l logger.Logger) OptionFunc

Jump to

Keyboard shortcuts

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