MCPcopy Create free account
hub / github.com/brimdata/super / NewConnection

Function NewConnection

api/client/connection.go:55–58  ·  view source on GitHub ↗

NewConnection creates a new connection with the given useragent string and a base URL set up to talk to http://localhost:defaultport

()

Source from the content-addressed store, hash-verified

53// NewConnection creates a new connection with the given useragent string
54// and a base URL set up to talk to http://localhost:defaultport
55func NewConnection() *Connection {
56 u := "http://localhost:" + strconv.Itoa(DefaultPort)
57 return NewConnectionTo(u)
58}
59
60// NewConnectionTo creates a new connection with the given useragent string
61// and a base URL derived from the hostURL argument.

Callers 1

localServerFunction · 0.92

Calls 1

NewConnectionToFunction · 0.85

Tested by

no test coverage detected