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

Function postBindHandler

pkg/service/http_bind.go:18–26  ·  view source on GitHub ↗
(value interface{})

Source from the content-addressed store, hash-verified

16}
17
18func postBindHandler(value interface{}) (*grpcx.JSONResult, error) {
19 err := Store.AddBind(value.(*metapb.Bind))
20 if err != nil {
21 log.Errorf("api-bind-put: req %+v, errors:%+v", value, err)
22 return nil, err
23 }
24
25 return &grpcx.JSONResult{}, nil
26}
27
28func deleteBindHandler(value interface{}) (*grpcx.JSONResult, error) {
29 err := Store.RemoveBind(value.(*metapb.Bind))

Callers

nothing calls this directly

Calls 1

AddBindMethod · 0.65

Tested by

no test coverage detected