MCPcopy Create free account
hub / github.com/bepass-org/proxy / Server

Struct Server

pkg/http/server.go:13–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11)
12
13type Server struct {
14 // bind is the address to listen on
15 Bind string
16 // ProxyDial specifies the optional proxyDial function for
17 // establishing the transport connection.
18 ProxyDial statute.ProxyDialFunc
19 // UserConnectHandle gives the user control to handle the TCP CONNECT requests
20 UserConnectHandle statute.UserConnectHandler
21 // Logger error log
22 Logger statute.Logger
23 // Context is default context
24 Context context.Context
25 // BytesPool getting and returning temporary bytes for use by io.CopyBuffer
26 BytesPool statute.BytesPool
27}
28
29func NewServer(options ...ServerOption) *Server {
30 s := &Server{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected