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

Method mailboxList

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

Source from the content-addressed store, hash-verified

37}
38
39func (s *Server) mailboxList(ctx context.Context, reply string, req *proxy.Request) {
40 list, err := s.ari.Mailbox().List(nil)
41 if err != nil {
42 s.sendError(reply, err)
43 return
44 }
45
46 s.publish(reply, &proxy.Response{
47 Keys: list,
48 })
49}
50
51func (s *Server) mailboxUpdate(ctx context.Context, reply string, req *proxy.Request) {
52 s.sendError(reply, s.ari.Mailbox().Update(req.Key, req.MailboxUpdate.Old, req.MailboxUpdate.New))

Callers

nothing calls this directly

Calls 4

sendErrorMethod · 0.95
publishMethod · 0.95
MailboxMethod · 0.80
ListMethod · 0.65

Tested by

no test coverage detected