v1.2.803 Latest Latest

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 20 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type Server

type Server struct {
	Server *http.Server
	// contains filtered or unexported fields

type Splitter

type Splitter struct {

func (*Splitter) Handler

func (c *Splitter) Handler(next http.Handler) http.Handler

type Transport

type Transport struct {
	InsecureServer *Server
	SecureServer   *Server
	// contains filtered or unexported fields

func NewTransport

func NewTransport(listener interfaces.Listener) *Transport

func (*Transport) Add added in v1.1.3

func (c *Transport) Add(cw int64)

Add adds c to the number of active connections.

func (*Transport) Close added in v1.2.801

func (c *Transport) Close()

func (*Transport) Count added in v1.1.3

func (c *Transport) Count() int

Count returns the number of connections at the time the call.

func (*Transport) GetRouter added in v0.0.10

func (c *Transport) GetRouter() *mux.Router

func (*Transport) NewServer

func (c *Transport) NewServer(handle http.Handler, add string, disableHttp2 bool) *Server

func (*Transport) OnStateChange added in v1.1.3

func (c *Transport) OnStateChange(_ net.Conn, state http.ConnState)

OnStateChange records open connections in response to connection state changes. Set net/http Server.ConnState to this method as value.

func (*Transport) Run

func (c *Transport) Run()

func (*Transport) ServerHttp

func (c *Transport) ServerHttp(w http.ResponseWriter, r *http.Request)

func (*Transport) SetGrpcServer

func (c *Transport) SetGrpcServer(server *grpc.Server)

func (*Transport) SetWebsocket added in v0.0.10

func (c *Transport) SetWebsocket(server *websocket.Transport)

func (*Transport) Start

func (c *Transport) Start()


Path Synopsis

Jump to

Keyboard shortcuts

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