#>cpp
#pragma once

#include <string>

#include "communication/rpc/messages.hpp"
#include "database/distributed/counters_rpc_messages.capnp.h"
cpp<#

(lcp:namespace database)

(lcp:capnp-namespace "database")

(lcp:define-rpc counters-get
    (:request ((name "std::string")))
  (:response ((value :int64_t))))

(lcp:define-rpc counters-set
    (:request ((name "std::string")
               (value :int64_t)))
  (:response ()))

(lcp:pop-namespace) ;; database
