Skip to content

Latest commit

 

History

History
 
 

fnc

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Template Function

This is the Template function

Generated with

micro new github.com/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

Dependencies

Micro functions depend on service discovery. The default is consul.

# install consul
brew install consul

# run consul
consul agent -dev

Usage

A Makefile is included for convenience

Build the binary

make build

Run the function once

./template-fnc

Build a docker image

make docker