MCPcopy Create free account
hub / github.com/encodeous/nylon / NewDynamicEndpoint

Function NewDynamicEndpoint

state/endpoint.go:41–46  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

39}
40
41func NewDynamicEndpoint(value string) *DynamicEndpoint {
42 return &DynamicEndpoint{
43 Value: value,
44 rw: &sync.RWMutex{},
45 }
46}
47
48func (ep *DynamicEndpoint) Parse() (host string, port uint16, err error) {
49 // Try to parse as AddrPort directly first to handle cases like [::1]:port correctly

Callers 9

StartMethod · 0.92
handleProbePingFunction · 0.92
SimpleRouterFunction · 0.92
TestPassiveRoamingFunction · 0.92
TestEndpointResolutionFunction · 0.92
TestDynamicResolutionFunction · 0.92
SampleNetworkFunction · 0.85
runTestsFunction · 0.85

Calls

no outgoing calls

Tested by 6

TestPassiveRoamingFunction · 0.74
TestEndpointResolutionFunction · 0.74
TestDynamicResolutionFunction · 0.74
SampleNetworkFunction · 0.68
runTestsFunction · 0.68