posts

command
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

README

Post Service

The posts service stores posts

Usage

Create a post
micro call go.micro.service.posts Posts.Save '{"post":{"id":"1","title":"How to Micro","content":"Simply put, Micro is awesome."}}'
micro call go.micro.service.posts Posts.Save '{"post":{"id":"2","title":"Fresh posts are fresh","content":"This post is fresher than the How to Micro one"}}'
Query posts
micro call go.micro.service.posts Posts.Query '{}'
micro call go.micro.service.posts Posts.Query '{"slug":"how-to-micro"}'
micro call go.micro.service.posts Posts.Query '{"offset": 10, "limit": 10}'
Delete posts
micro call go.micro.service.posts Posts.Delete '{"offset": 10, "limit": 10}'

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
proto

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL