1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00
go-micro/examples
2020-12-26 15:22:41 +00:00
..
.github/workflows Add examples 2020-12-26 15:17:20 +00:00
api rename imports 2020-12-26 15:21:29 +00:00
booking rename imports 2020-12-26 15:21:29 +00:00
broker Add examples 2020-12-26 15:17:20 +00:00
client rename imports 2020-12-26 15:21:29 +00:00
command Add examples 2020-12-26 15:17:20 +00:00
config Add examples 2020-12-26 15:17:20 +00:00
event rename imports 2020-12-26 15:21:29 +00:00
filter rename imports 2020-12-26 15:21:29 +00:00
flags Add examples 2020-12-26 15:17:20 +00:00
form rename imports 2020-12-26 15:21:29 +00:00
function rename imports 2020-12-26 15:21:29 +00:00
gateway rename imports 2020-12-26 15:21:29 +00:00
getip rename imports 2020-12-26 15:21:29 +00:00
graceful Add examples 2020-12-26 15:17:20 +00:00
greeter rename imports 2020-12-26 15:21:29 +00:00
heartbeat Add examples 2020-12-26 15:17:20 +00:00
helloworld rename imports 2020-12-26 15:21:29 +00:00
kubernetes rename imports 2020-12-26 15:21:29 +00:00
metadata rename imports 2020-12-26 15:21:29 +00:00
mocking rename imports 2020-12-26 15:21:29 +00:00
noproto Add examples 2020-12-26 15:17:20 +00:00
options Add examples 2020-12-26 15:17:20 +00:00
plugins rename imports 2020-12-26 15:21:29 +00:00
proxy Add examples 2020-12-26 15:17:20 +00:00
pubsub rename imports 2020-12-26 15:21:29 +00:00
redirect Add examples 2020-12-26 15:17:20 +00:00
roundrobin rename imports 2020-12-26 15:21:29 +00:00
secure rename imports 2020-12-26 15:21:29 +00:00
server rename imports 2020-12-26 15:21:29 +00:00
service rename imports 2020-12-26 15:21:29 +00:00
sharding rename imports 2020-12-26 15:21:29 +00:00
shutdown Add examples 2020-12-26 15:17:20 +00:00
stream rename imports 2020-12-26 15:21:29 +00:00
template rename imports 2020-12-26 15:21:29 +00:00
tunnel Add examples 2020-12-26 15:17:20 +00:00
waitgroup Add examples 2020-12-26 15:17:20 +00:00
web Add examples 2020-12-26 15:17:20 +00:00
wrapper rename imports 2020-12-26 15:21:29 +00:00
_config.yml Add examples 2020-12-26 15:17:20 +00:00
go.mod rename imports 2020-12-26 15:21:29 +00:00
go.sum Add examples 2020-12-26 15:17:20 +00:00
LICENSE Add examples 2020-12-26 15:17:20 +00:00
README.md Update README.md 2020-12-26 15:22:41 +00:00

Examples

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

Contents

  • api - Provides API usage examples
  • booking - A booking.com demo application
  • broker - A example of using Broker for Publish and Subscribing.
  • client - Usage of the Client package to call a service.
  • command - An example of bot commands as micro services
  • 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
  • form - How to parse a form behind the micro api
  • 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
  • kubernetes - Examples of using the k8s registry and grpc
  • 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
  • grpc - Examples of how to use go-micro/service/grpc
  • 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
  • template - Api, web and srv service templates generated with the 'micro new' command
  • tunnel - How to use connection tunneling with the tunnel package
  • waitgroup - Demonstrates how to use a waitgroup with a service
  • wrapper - A simple example of using a log wrapper