MCPcopy Create free account
hub / github.com/cloudflare/cfssl / newServer

Function newServer

api/client/client.go:96–102  ·  view source on GitHub ↗
(u *url.URL, tlsConfig *tls.Config)

Source from the content-addressed store, hash-verified

94}
95
96func newServer(u *url.URL, tlsConfig *tls.Config) *server {
97 URL := u.String()
98 return &server{
99 URL: URL,
100 TLSConfig: tlsConfig,
101 }
102}
103
104func (srv *server) getURL(endpoint string) string {
105 return fmt.Sprintf("%s/api/v1/cfssl/%s", srv.URL, endpoint)

Callers 2

NewGroupFunction · 0.85
NewServerTLSFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…