api

command
v0.0.0-...-1a99a0f Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2016 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Flag API GoDoc

Flag API with fqdn go.micro.api.flag

HTTP interface for flag microservice.

Getting Started

Prerequisites

Install Consul https://www.consul.io/intro/getting-started/install.html

Run Consul

$ consul agent -dev -advertise=127.0.0.1
Run manually
$ go run main.go

Usage

Create flag
http[domain:micro API port]/flag/create
{
    "key": "user-advanced-options",
    "description": "Display advanced user options",
    "value": true
}

{}

Read flag
http[domain:micro API port]/flag/read
{
    "key": "user-advanced-options"
}

{
    "key": "user-advanced-options",
    "description": "Display advanced user options",
    "value": true
}
Flip flag
http[domain:micro API port]/flag/flip
{
    "key": "user-advanced-options"
}

{}
Delete flag
http[domain:micro API port]/flag/delete
{
    "key": "user-advanced-options"
}

{}
List flags
http[domain:micro API port]/flag/list
{}

{
  "result": [
    {
      "key": "my-unique-flag-key-2",
      "description": "You know, for UI feed"
    },
    {
      "key": "my-unique-flag-key-3",
      "description": "You know, for UI feed"
    },
    {
      "key": "my-unique-flag-key-4",
      "description": "You know, for UI feed"
    },
    {
      "key": "my-unique-flag-key-5",
      "description": "You know, for UI feed"
    },
    {
      "key": "my-unique-flag-key-1",
      "description": "You know, for UI feed",
      "value": true
    }
  ]
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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