MCPcopy Create free account
hub / github.com/bcspragu/logseq-sync / respond

Method respond

cmd/server/main.go:643–646  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

641type uploadGraphEncryptKeysResponse struct{}
642
643func (*uploadGraphEncryptKeysResponse) respond(w http.ResponseWriter, r *http.Request) {
644 w.WriteHeader(http.StatusOK)
645 // No body
646}
647
648func (s *server) uploadGraphEncryptKeys(ctx context.Context, req *uploadGraphEncryptKeysRequest) (*uploadGraphEncryptKeysResponse, error) {
649 err := s.db.AddGraphEncryptKey(ctx, db.GraphID(req.GraphUUID), &db.GraphEncryptKey{

Callers

nothing calls this directly

Calls 1

WriteHeaderMethod · 0.80

Tested by

no test coverage detected