Documentation ¶
Index ¶
- type Server
- type Splitter
- type Transport
- func (c *Transport) Add(cw int64)
- func (c *Transport) Close()
- func (c *Transport) Count() int
- func (c *Transport) GetRouter() *mux.Router
- func (c *Transport) NewServer(handle http.Handler, add string, disableHttp2 bool) *Server
- func (c *Transport) OnStateChange(_ net.Conn, state http.ConnState)
- func (c *Transport) Run()
- func (c *Transport) ServerHttp(w http.ResponseWriter, r *http.Request)
- func (c *Transport) SetGrpcServer(server *grpc.Server)
- func (c *Transport) SetWebsocket(server *websocket.Transport)
- func (c *Transport) Start()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Splitter ¶
type Splitter struct {
*splitter.WrappedGrpcServer
}
type Transport ¶
type Transport struct { InsecureServer *Server SecureServer *Server // contains filtered or unexported fields }
func NewTransport ¶
func NewTransport(listener interfaces.Listener) *Transport
func (*Transport) OnStateChange ¶
OnStateChange records open connections in response to connection state changes. Set net/http Server.ConnState to this method as value.
func (*Transport) ServerHttp ¶
func (c *Transport) ServerHttp(w http.ResponseWriter, r *http.Request)
func (*Transport) SetGrpcServer ¶
func (*Transport) SetWebsocket ¶
Click to show internal directories.
Click to hide internal directories.