Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include "console.iol"
- execution { single }
- interface ConsulGetterInterface {
- RequestResponse:
- kv( string )( undefined )
- }
- outputPort ConsulGetter {
- Location: "socket://10.24.3.1:8500/v1/"
- Interfaces: ConsulGetterInterface
- Protocol: http { .method = "get" }
- }
- // run tests
- main
- {
- kv@ConsulGetter( "hello" )( out );
- println@Console( out )()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement