MCPcopy
hub / github.com/fagongzi/manba / bindsClusterHandler

Function bindsClusterHandler

pkg/service/http_cluster.go:65–73  ·  view source on GitHub ↗
(value interface{})

Source from the content-addressed store, hash-verified

63}
64
65func bindsClusterHandler(value interface{}) (*grpcx.JSONResult, error) {
66 values, err := Store.GetBindServers(value.(uint64))
67 if err != nil {
68 log.Errorf("api-cluster-binds-get: req %+v, errors:%+v", value, err)
69 return nil, err
70 }
71
72 return &grpcx.JSONResult{Data: values}, nil
73}
74
75func listClusterHandler(value interface{}) (*grpcx.JSONResult, error) {
76 query := value.(*limitQuery)

Callers

nothing calls this directly

Calls 1

GetBindServersMethod · 0.65

Tested by

no test coverage detected