Advertisement
Guest User

Untitled

a guest
Dec 15th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. include "console.iol"
  2.  
  3. execution { single }
  4.  
  5. interface ConsulGetterInterface {
  6. RequestResponse:
  7. kv( string )( undefined )
  8. }
  9.  
  10. outputPort ConsulGetter {
  11. Location: "socket://10.24.3.1:8500/v1/"
  12. Interfaces: ConsulGetterInterface
  13. Protocol: http { .method = "get" }
  14. }
  15.  
  16. // run tests
  17. main
  18. {
  19. kv@ConsulGetter( "hello" )( out );
  20. println@Console( out )()
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement