http

package
v1.0.1001 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

type Splitter

type Splitter struct {
	*splitter.WrappedGrpcServer
}

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

func (c *Transport) Add(cw int64)

Add adds c to the number of active connections.

func (*Transport) Close

func (c *Transport) Close()

func (*Transport) Count

func (c *Transport) Count() int

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

func (*Transport) GetRouter

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

func (*Transport) NewServer

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

func (*Transport) OnStateChange

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

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

func (*Transport) Start

func (c *Transport) Start()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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