-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.cljc
23 lines (19 loc) · 947 Bytes
/
server.cljc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;;;----------------------------------------------------------------------------------
;;; Generated by protoc-gen-clojure. DO NOT EDIT
;;;
;;; GRPC com.example.addressbook.Greeter Service Implementation
;;;----------------------------------------------------------------------------------
(ns com.example.addressbook.Greeter.server
(:require [com.example.addressbook :refer :all]
))
;-----------------------------------------------------------------------------
; GRPC Greeter
;-----------------------------------------------------------------------------
(defprotocol Service
(Hello [this param]))
(def Greeter-service-name "com.example.addressbook.Greeter")
(defn- Hello-dispatch
[ctx request]
(Hello ctx request))
(def ^:const rpc-metadata
[{:pkg "com.example.addressbook" :service "Greeter" :method "Hello" :method-fn Hello-dispatch :server-streaming false :client-streaming false :input pb->Person :output new-HelloResponse}])