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!
  1. include "console.iol"
  2.  
  3. execution { single }
  4.  
  5. interface ConsulGetterInterface {
  6. RequestResponse:
  7. GITHUB_ACCESS_TOKEN( void )( undefined )
  8. }
  9.  
  10. outputPort ConsulGetter {
  11. Location: "socket://10.24.3.1:8500/v1/kv/"
  12. Interfaces: ConsulGetterInterface
  13. Protocol: http { .method = "get" }
  14. }
  15.  
  16. // run tests
  17. main
  18. {
  19. GITHUB_ACCESS_TOKEN@ConsulGetter()( out );
  20. println@Console( out )()
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement