h2c

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 12 Imported by: 0

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(endpoint string, registers []serverGRPC.Register, 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 WithLogger added in v1.0.25

func WithLogger(l logger.Logger) OptionFunc

Jump to

Keyboard shortcuts

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