multiple_service

command
v0.0.0-...-231bdf8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

multiple service

This is "multiple service" example.

multiple service is a multi-port service.

Users can request different results from the same path, different ports.

eg: curl --location --request GET '127.0.0.1:8080/ping'or curl --location --request GET '127.0.0.1:8081/ping'

  • The response result for 8080 is pong1 and for 8081 is pong2.

how to run

  • go run multiple_service/main.go

  • curl --location --request GET '127.0.0.1:8080/ping'or curl --location --request GET '127.0.0.1:8081/ping'

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL