Advertisement
shakasu

config.yaml

Feb 16th, 2021
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.27 KB | None | 0 0
  1.    types:
  2.       __file: model.avsc
  3.  
  4.     functions:
  5.       router: {__file: router.lua}
  6.  
  7.       classifier: {__file: classificator.lua}
  8.  
  9.       select_user_books: {__file: select_user_books.lua}
  10.  
  11.       uuid_handler: {__file: uuid_handler.lua}
  12.  
  13.  
  14.     pipelines:
  15.       router:
  16.        - router
  17.       classifier:
  18.        - classifier
  19.       uuid_handler:
  20.        - uuid_handler
  21.       select_user_books:
  22.        - select_user_books
  23.  
  24.  
  25.     connector:
  26.       input:
  27.         - name: http
  28.           type: http
  29.           pipeline: router
  30.  
  31.       routing:
  32.         - key: input_key
  33.           output: to_input_processor
  34.  
  35.       output:
  36.         - name: to_input_processor
  37.           type: input_processor
  38.  
  39.     input_processor:
  40.       classifiers:
  41.         - name: classifier
  42.           pipeline: classifier
  43.  
  44.       routing:
  45.         - key: handler_key
  46.           pipeline: uuid_handler
  47.  
  48.       storage:
  49.         - key: add_user
  50.           type: User
  51.         - key: add_book
  52.           type: Book
  53.         - key: add_subscription
  54.           type: Subscription
  55.          
  56.  
  57.     services:
  58.       select_user_books:
  59.         doc: "select_user_books"
  60.         function: select_user_books
  61.         return_type: string
  62.         args:
  63.           user_id: long
  64.           all_versions: boolean
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement