1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00
go-micro/examples/template/fnc
2020-12-26 15:21:29 +00:00
..
handler rename imports 2020-12-26 15:21:29 +00:00
proto/example rename imports 2020-12-26 15:21:29 +00:00
subscriber rename imports 2020-12-26 15:21:29 +00:00
Dockerfile Add examples 2020-12-26 15:17:20 +00:00
main.go rename imports 2020-12-26 15:21:29 +00:00
Makefile Add examples 2020-12-26 15:17:20 +00:00
plugin.go Add examples 2020-12-26 15:17:20 +00:00
README.md rename imports 2020-12-26 15:21:29 +00:00

Template Function

This is the Template function

Generated with

micro new github.com/micro/go-micro/examples/template/fnc --namespace=go.micro --alias=template --type=fnc --plugin=registry=etcd

Getting Started

Configuration

  • FQDN: go.micro.fnc.template
  • Type: fnc
  • Alias: template

Usage

A Makefile is included for convenience

Build the binary

make build

Run the function once

./template-fnc

Build a docker image

make docker