MCPcopy
hub / github.com/fatedier/frp / New

Function New

test/e2e/mock/server/httpserver/server.go:23–32  ·  view source on GitHub ↗
(options ...Option)

Source from the content-addressed store, hash-verified

21type Option func(*Server) *Server
22
23func New(options ...Option) *Server {
24 s := &Server{
25 bindAddr: "127.0.0.1",
26 }
27
28 for _, option := range options {
29 s = option(s)
30 }
31 return s
32}
33
34func WithBindPort(port int) Option {
35 return func(s *Server) *Server {

Callers 13

NewMockServersFunction · 0.92
client.goFile · 0.92
group.goFile · 0.92
real_ip.goFile · 0.92
http.goFile · 0.92
basic.goFile · 0.92
NewHTTPPluginServerFunction · 0.92
client.goFile · 0.92
ssh_tunnel.goFile · 0.92
group.goFile · 0.92
real_ip.goFile · 0.92
http.goFile · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected