MCPcopy
hub / github.com/puma/puma-dev / SetAddress

Method SetAddress

dev/app.go:66–76  ·  view source on GitHub ↗
(scheme, host string, port int)

Source from the content-addressed store, hash-verified

64}
65
66func (a *App) SetAddress(scheme, host string, port int) {
67 a.Scheme = scheme
68 a.Host = host
69 a.Port = port
70
71 if a.Port == 0 {
72 a.address = host
73 } else {
74 a.address = fmt.Sprintf("%s:%d", a.Host, a.Port)
75 }
76}
77
78func (a *App) Address() string {
79 if a.Port == 0 {

Callers 2

LaunchAppMethod · 0.95
readProxyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected