MCPcopy Create free account
hub / github.com/CyCoreSystems/ari-proxy / endpointGet

Method endpointGet

server/endpoint.go:23–33  ·  view source on GitHub ↗
(ctx context.Context, reply string, req *proxy.Request)

Source from the content-addressed store, hash-verified

21}
22
23func (s *Server) endpointGet(ctx context.Context, reply string, req *proxy.Request) {
24 data, err := s.ari.Endpoint().Data(req.Key)
25 if err != nil {
26 s.sendError(reply, err)
27 return
28 }
29
30 s.publish(reply, &proxy.Response{
31 Key: data.Key,
32 })
33}
34
35func (s *Server) endpointList(ctx context.Context, reply string, req *proxy.Request) {
36 list, err := s.ari.Endpoint().List(nil)

Callers

nothing calls this directly

Calls 4

sendErrorMethod · 0.95
publishMethod · 0.95
EndpointMethod · 0.80
DataMethod · 0.45

Tested by

no test coverage detected