1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00
go-micro/examples
2021-10-13 13:37:24 +01:00
..
.github/workflows Add examples 2020-12-26 15:17:20 +00:00
broker go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
cache update 2021-10-13 13:31:23 +01:00
client update 2021-10-13 13:31:23 +01:00
config update 2021-10-13 13:31:23 +01:00
event update 2021-10-13 13:31:23 +01:00
filter update 2021-10-13 13:31:23 +01:00
flags go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
function update 2021-10-13 13:31:23 +01:00
gateway update 2021-10-13 13:31:23 +01:00
getip update 2021-10-13 13:31:23 +01:00
graceful go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
greeter update 2021-10-13 13:31:23 +01:00
heartbeat go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
helloworld update 2021-10-13 13:31:23 +01:00
http update 2021-10-13 13:31:23 +01:00
metadata update 2021-10-13 13:31:23 +01:00
mocking update 2021-10-13 13:31:23 +01:00
noproto go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
options go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
pubsub update 2021-10-13 13:31:23 +01:00
redirect go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
roundrobin update 2021-10-13 13:31:23 +01:00
secure update 2021-10-13 13:31:23 +01:00
server update 2021-10-13 13:31:23 +01:00
service update 2021-10-13 13:31:23 +01:00
sharding update 2021-10-13 13:31:23 +01:00
shutdown go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
stream update 2021-10-13 13:31:23 +01:00
waitgroup go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
wrapper update 2021-10-13 13:31:23 +01:00
_config.yml Add examples 2020-12-26 15:17:20 +00:00
go.mod fix examples go mod 2021-10-13 13:37:24 +01:00
go.sum fix examples go mod 2021-10-13 13:37:24 +01:00
LICENSE Add examples 2020-12-26 15:17:20 +00:00
README.md Add cache example (#2232) 2021-09-01 10:08:43 +01: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.
  • cache - Usage of the Cache package to create a cache service.
  • 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