mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-23 15:51:24 +00:00
update tag readme
This commit is contained in:
@@ -1,64 +1,3 @@
|
|||||||
Tag any resource by savin a tag associated with their ID in the tag service.
|
|
||||||
|
|
||||||
# Tag Service
|
# Tag Service
|
||||||
|
|
||||||
## Query tags
|
Tag any resource by saving a tag associated with their respective ID
|
||||||
|
|
||||||
```
|
|
||||||
micro tags list --type=post-tag
|
|
||||||
```
|
|
||||||
|
|
||||||
Generated with
|
|
||||||
|
|
||||||
```
|
|
||||||
micro new --namespace=go.micro --type=service tag
|
|
||||||
```
|
|
||||||
|
|
||||||
## Getting Started
|
|
||||||
|
|
||||||
- [Tag Service](#tag-service)
|
|
||||||
- [Query tags](#query-tags)
|
|
||||||
- [Getting Started](#getting-started)
|
|
||||||
- [Configuration](#configuration)
|
|
||||||
- [Dependencies](#dependencies)
|
|
||||||
- [Usage](#usage)
|
|
||||||
|
|
||||||
## Configuration
|
|
||||||
|
|
||||||
- FQDN: go.micro.service.tag
|
|
||||||
- Type: service
|
|
||||||
- Alias: tag
|
|
||||||
|
|
||||||
## Dependencies
|
|
||||||
|
|
||||||
Micro services depend on service discovery. The default is multicast DNS, a zeroconf system.
|
|
||||||
|
|
||||||
In the event you need a resilient multi-host setup we recommend etcd.
|
|
||||||
|
|
||||||
```
|
|
||||||
# install etcd
|
|
||||||
brew install etcd
|
|
||||||
|
|
||||||
# run etcd
|
|
||||||
etcd
|
|
||||||
```
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
A Makefile is included for convenience
|
|
||||||
|
|
||||||
Build the binary
|
|
||||||
|
|
||||||
```
|
|
||||||
make build
|
|
||||||
```
|
|
||||||
|
|
||||||
Run the service
|
|
||||||
```
|
|
||||||
./tag-service
|
|
||||||
```
|
|
||||||
|
|
||||||
Build a docker image
|
|
||||||
```
|
|
||||||
make docker
|
|
||||||
```
|
|
||||||
|
|||||||
Reference in New Issue
Block a user