View difference between Paste ID: 18MjXTjW and psGZydKu
SHOW: | | - or go back to the newest paste.
1
include "console.iol"
2
3
execution { single }
4
5
interface ConsulGetterInterface {
6
    RequestResponse:
7-
        GITHUB_ACCESS_TOKEN( string )( undefined )
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-
    kv@ConsulGetter( "hello" )( out );
19+
    GITHUB_ACCESS_TOKEN@ConsulGetter()( out );
20
    println@Console( out )()
21
}