MCPcopy Create free account
hub / github.com/SamNet-dev/snix / String

Method String

scanner/sni.go:51–66  ·  view source on GitHub ↗

String returns a short label for reports.

()

Source from the content-addressed store, hash-verified

49
50// String returns a short label for reports.
51func (o Outcome) String() string {
52 switch o {
53 case OutcomeOK:
54 return "ok"
55 case OutcomeDPIReset:
56 return "dpi_reset"
57 case OutcomeTimeout:
58 return "timeout"
59 case OutcomeTCPRefused:
60 return "refused"
61 case OutcomeTLSError:
62 return "tls_error"
63 default:
64 return "unknown"
65 }
66}
67
68// Result is a single SNI probe's output.
69type Result struct {

Callers 15

UpdateMethod · 0.80
saveToProfileMethod · 0.80
UpdateMethod · 0.80
renderProfileDetailFunction · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80
echoServerFunction · 0.80
tcpPairFunction · 0.80
runWizardFunction · 0.80
handleConnFunction · 0.80
defaultIfaceIPv4Function · 0.80

Calls

no outgoing calls

Tested by 3

echoServerFunction · 0.64
tcpPairFunction · 0.64
tlsTestServerFunction · 0.64