MCPcopy Create free account
hub / github.com/apache/kvrocks-controller / newClient

Function newClient

cmd/client/command/client.go:51–60  ·  view source on GitHub ↗
(host string)

Source from the content-addressed store, hash-verified

49}
50
51func newClient(host string) *client {
52 if host == "" {
53 host = defaultHost
54 }
55 restyCli := resty.New().SetBaseURL(host + apiVersionV1)
56 return &client{
57 restyCli: restyCli,
58 host: host,
59 }
60}
61
62func unmarshalData(body []byte, v any) error {
63 if len(body) == 0 {

Callers 8

raft.goFile · 0.85
failover.goFile · 0.85
delete.goFile · 0.85
import.goFile · 0.85
migrate.goFile · 0.85
create.goFile · 0.85
get.goFile · 0.85
list.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected