1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-30 08:06:40 +02:00
go-micro/examples
Qiu Yu b977a51253
Examples: fix grpc config (#2207)
This change fixes grpc config example code which is currently broken.

Several pieces in the change:
- use yaml encoder to read config files
- rename *.yml to *.yaml to fix format (file suffix) for encoder lookup
- replace util/log package with logger as the former one is deprecated
2021-08-12 06:27:04 +01:00
..
.github/workflows Add examples 2020-12-26 15:17:20 +00:00
broker examples at v3 2021-01-20 21:28:48 +00:00
client examples at v3 2021-01-20 21:28:48 +00:00
config Examples: fix grpc config (#2207) 2021-08-12 06:27:04 +01:00
event examples at v3 2021-01-20 21:28:48 +00:00
filter examples at v3 2021-01-20 21:28:48 +00:00
flags v3 (#2104) 2021-01-20 13:54:31 +00:00
function examples at v3 2021-01-20 21:28:48 +00:00
gateway examples at v3 2021-01-20 21:28:48 +00:00
getip examples at v3 2021-01-20 21:28:48 +00:00
graceful v3 (#2104) 2021-01-20 13:54:31 +00:00
greeter examples at v3 2021-01-20 21:28:48 +00:00
heartbeat v3 (#2104) 2021-01-20 13:54:31 +00:00
helloworld examples at v3 2021-01-20 21:28:48 +00:00
http add http demo; http client can call http server; http client can call rpc server (#2149) 2021-04-08 18:31:15 +01:00
metadata examples at v3 2021-01-20 21:28:48 +00:00
mocking examples at v3 2021-01-20 21:28:48 +00:00
noproto v3 (#2104) 2021-01-20 13:54:31 +00:00
options examples at v3 2021-01-20 21:28:48 +00:00
pubsub examples at v3 2021-01-20 21:28:48 +00:00
redirect examples at v3 2021-01-20 21:28:48 +00:00
roundrobin examples at v3 2021-01-20 21:28:48 +00:00
secure examples at v3 2021-01-20 21:28:48 +00:00
server examples at v3 2021-01-20 21:28:48 +00:00
service examples at v3 2021-01-20 21:28:48 +00:00
sharding examples at v3 2021-01-20 21:28:48 +00:00
shutdown v3 (#2104) 2021-01-20 13:54:31 +00:00
stream examples at v3 2021-01-20 21:28:48 +00:00
waitgroup v3 (#2104) 2021-01-20 13:54:31 +00:00
wrapper examples at v3 2021-01-20 21:28:48 +00:00
_config.yml Add examples 2020-12-26 15:17:20 +00:00
go.mod Bump github.com/gin-gonic/gin from 1.6.3 to 1.7.0 in /examples (#2205) 2021-08-11 13:57:15 +01:00
go.sum Bump github.com/gin-gonic/gin from 1.6.3 to 1.7.0 in /examples (#2205) 2021-08-11 13:57:15 +01:00
LICENSE Add examples 2020-12-26 15:17:20 +00:00
README.md Remove missing gRPC example from README.md (#2112) 2021-01-30 18:13:56 +00:00

Examples

This is a repository for go-micro examples. Feel free to contribute.

Contents

  • broker - A example of using Broker for Publish and Subscribing.
  • client - Usage of the Client package to call a service.
  • config - Using Go Config for dynamic config
  • event - Using the API Gateway event handler
  • filter - Filter nodes of a service when requesting
  • flags - Using command line flags with a service
  • function - Example of using Function programming model
  • getip - Get the local and remote ip from metadata
  • graceful - Demonstrates graceful shutdown of a service
  • greeter - A complete greeter example (includes python, ruby examples)
  • heartbeat - Make services heartbeat with discovery for high availability
  • helloworld - Hello world using micro
  • metadata - Extracting metadata from context of a request
  • mocking - Demonstrate mocking helloworld service
  • noproto - Use micro without protobuf or code generation, only go types
  • options - Setting options in the go-micro framework
  • plugins - How to use plugins
  • pubsub - Example of using pubsub at the client/server level
  • redirect - An example of how to http redirect using an API service
  • roundrobin - A stateful client wrapper for true round robin of requests
  • secure - Demonstrates use of transport secure option for self signed certs
  • server - Use of the Server package directly to server requests.
  • service - Example of the top level Service in go-micro.
  • sharding - An example of how to shard requests or use session affinity
  • shutdown - Demonstrates graceful shutdown via context cancellation
  • stream - An example of a streaming service and client
  • waitgroup - Demonstrates how to use a waitgroup with a service
  • wrapper - A simple example of using a log wrapper