MCPcopy Create free account
hub / github.com/SignTools/SignTools / getPublicUrlFatal

Function getPublicUrlFatal

main.go:93–100  ·  view source on GitHub ↗
(provider tunnel.Provider)

Source from the content-addressed store, hash-verified

91}
92
93func getPublicUrlFatal(provider tunnel.Provider) string {
94 log.Info().Msg("obtaining server url")
95 serverUrl, err := tunnel.GetPublicUrl(provider, 15*time.Second)
96 if err != nil {
97 log.Fatal().Err(err).Send()
98 }
99 return serverUrl
100}
101
102func serve(host string, port uint64) {
103 if err := os.MkdirAll(config.Current.SaveDir, 0700); err != nil {

Callers 1

mainFunction · 0.85

Calls 1

GetPublicUrlFunction · 0.92

Tested by

no test coverage detected