nanomsg.org/go/mangos/v2@v2.0.9-0.20200203084354-8a092611e461/examples/pipeline/run.ps1 (about)

     1  #
     2  # Copyright 2019 The Mangos Authors
     3  #
     4  # Licensed under the Apache License, Version 2.0 (the "License");
     5  # you may not use file except in compliance with the License.
     6  # You may obtain a copy of the license at
     7  #
     8  #    http://www.apache.org/licenses/LICENSE-2.0
     9  #
    10  # Unless required by applicable law or agreed to in writing, software
    11  # distributed under the License is distributed on an "AS IS" BASIS,
    12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  # See the License for the specific language governing permissions and
    14  # limitations under the License.
    15  
    16  $url = "tcp://127.0.0.1:40899"
    17  Start-Process -FilePath "go" -NoNewWindow -ArgumentList "run pipeline.go node0 $url" 
    18  # Sleep a second to allow for the listening socket to establish
    19  Start-Sleep 1
    20  go run pipeline.go node1 $url "Hello, World."
    21  go run pipeline.go node1 $url "Goodbye."
    22  go run pipeline.go node1 $url "STOP"