MCPcopy Index your code
hub / github.com/CodisLabs/codis / Slots

Method Slots

pkg/topom/topom_api.go:807–814  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

805}
806
807func (c *ApiClient) Slots() ([]*models.Slot, error) {
808 url := c.encodeURL("/api/topom/slots/%s", c.xauth)
809 slots := []*models.Slot{}
810 if err := rpc.ApiGetJson(url, &slots); err != nil {
811 return nil, err
812 }
813 return slots, nil
814}
815
816func (c *ApiClient) Reload() error {
817 url := c.encodeURL("/api/topom/reload/%s", c.xauth)

Callers

nothing calls this directly

Calls 1

encodeURLMethod · 0.95

Tested by

no test coverage detected