multiply

command
v0.0.0-...-e8a27b9 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 9 Imported by: 0

README

Multiply DTA Service

The multiply service multiplies two numbers, separated by "*".

Example input

3 * 5

Example result

15
````


## Short Name

multiply

## Full App Name

MATH.MULTIPLY

## Description

```text
  Usage: count [options]

  Protocols options:
  --grpc, -g             Start service only with GRPC protocol support if set
  --http, -h             Start service only with HTTP protocol support if set
  --port, -p             On which port (starting point) to listen for the supported protocol(s).
  --x-instance-id        Support X-Instance-Id disclosure on request.

  Service options:
  --host-name            If provided will be used as hostname, else automatically derived. (default {system dependent})

  Registrar options:
  --registrar-url, -r    Registry URL (ex http://eureka:8761/eureka, default http://eureka:8761/eureka)

  Generic options:
  --log-level, -l        Log level, one of panic, fatal, error, warn or warning, info, debug, trace
                         (default warning)
  --cfg-file, -c         The config file to use (default /Users/the/.dta/DE.TU-BERLIN.QDS.COUNT/config.json)
  --init, -i             Create a default config file as defined by cfg-file, if set. If not set
                         ~/.dta/{AppName}/config.json will be created.

  Local Execution options:
  --local-execution, -x  If set, execute the service locally once and read from this file

  Options:
  --version, -v          display version
  --help                 display help

Example usage

bin/multiply -x "3*4"
12

bin/multiply -x "3*-4"
-12

Example transformation

The endpoint /v1/document/transform transforms the document

3*-4

into

-12

Implemented Options

  • GRPC-Service
  • REST-Service
  • X-Instance-Identification (-x-instance-id)
  • Eureka registration (-r)
  • Local execution (-x)

Implemented endpoints

  • /v1/document/transform
  • /v1/service/list

Implemented without functionality

  • /v1/document/transform-pipe
  • /v1/document/transform-pipe
  • /v1/service/options

Additional information

This service is an example service to play around

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