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

Method mailboxGet

server/mailbox.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) mailboxGet(ctx context.Context, reply string, req *proxy.Request) {
24 data, err := s.ari.Mailbox().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) mailboxDelete(ctx context.Context, reply string, req *proxy.Request) {
36 s.sendError(reply, s.ari.Mailbox().Delete(req.Key))

Callers

nothing calls this directly

Calls 4

sendErrorMethod · 0.95
publishMethod · 0.95
MailboxMethod · 0.80
DataMethod · 0.45

Tested by

no test coverage detected