cmd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 License: MIT Imports: 40 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-gomeet-service. DO NOT EDIT. source: pb/profile.proto

Code generated by protoc-gen-gomeet-service. DO NOT EDIT. source: pb/profile.proto

Code generated by protoc-gen-gomeet-service. DO NOT EDIT. source: pb/profile.proto

Code generated by protoc-gen-gomeet-service. DO NOT EDIT. source: pb/profile.proto

Code generated by protoc-gen-gomeet-service. DO NOT EDIT. source: pb/profile.proto

Index

Constants

This section is empty.

Variables

View Source
var (

	// RootCmd This represents the base command when called without any subcommands
	RootCmd = &cobra.Command{
		Use:   "svc-profile",
		Short: "Gomeetexamples's profile microservice",
		Long: `To get started run the serve subcommand which will start a server:

  $ svc-profile serve
  $ svc-profile serve -p 42000

Then you can hit it with the client:
  $ svc-profile cli version
  $ svc-profile cli services_status
  $ svc-profile cli create <gender [UNKNOW|MALE|FEMALE]> <email [string]> <name [string]> <birthday [string]>
  $ svc-profile cli read <uuid [string]>
  $ svc-profile cli list <page_number [uint32]> <page_size [uint32]> <order [string]> <exclude_soft_deleted [bool]> <soft_deleted_only [bool]> <gender [UNKNOW|MALE|FEMALE]>
  $ svc-profile cli update <uuid [string]> <gender [UNKNOW|MALE|FEMALE]> <email [string]> <name [string]> <birthday [string]> <created_at [string]> <updated_at [string]> <deleted_at [string]>
  $ svc-profile cli soft_delete <uuid [string]>
  $ svc-profile cli hard_delete <uuid [string]>
  $ svc-profile cli --address localhost:42000 version

Or over HTTP/1.1 with curl:
  $ curl -X GET    http://localhost:13000/api/v1/version
  $ curl -X GET    http://localhost:13000/api/v1/services/status
  $ curl -X POST   http://localhost:13000/api/v1/create -d '{"gender": "UNKNOW|MALE|FEMALE", "email": "<string>", "name": "<string>", "birthday": "<string>"}'
  $ curl -X POST   http://localhost:13000/api/v1/read -d '{"uuid": "<string>"}'
  $ curl -X POST   http://localhost:13000/api/v1/list -d '{"page_number": <number>, "page_size": <number>, "order": "<string>", "exclude_soft_deleted": <boolean>, "soft_deleted_only": <boolean>, "gender": "UNKNOW|MALE|FEMALE"}'
  $ curl -X POST   http://localhost:13000/api/v1/update -d '{"uuid": "<string>", "gender": "UNKNOW|MALE|FEMALE", "email": "<string>", "name": "<string>", "birthday": "<string>", "created_at": "<string>", "updated_at": "<string>", "deleted_at": "<string>"}'
  $ curl -X POST   http://localhost:13000/api/v1/soft_delete -d '{"uuid": "<string>"}'
  $ curl -X POST   http://localhost:13000/api/v1/hard_delete -d '{"uuid": "<string>"}'
  $ curl -X GET    http://localhost:13000/
  $ curl -X GET    http://localhost:13000/version
  $ curl -X GET    http://localhost:13000/metrics
  $ curl -X GET    http://localhost:13000/status
  $ curl -X GET    http://localhost:42000/version

Or via an interactive console :

  $ svc-profile console
  $ svc-profile console --address localhost:42000

`,
	}
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the RootCmd.

Types

This section is empty.

Directories

Path Synopsis
Code generated by protoc-gen-gomeet-service.
Code generated by protoc-gen-gomeet-service.
Code generated by protoc-gen-gomeet-service.
Code generated by protoc-gen-gomeet-service.

Jump to

Keyboard shortcuts

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