cmd

package
v0.0.0-...-92e8fe6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Implements a JSON client that requests a set of digits of pi starting at a specified index.

Implements a JSON service that returns a set of digits of pi starting at a specified index.

Index

Constants

View Source
const (
	DEFAULT_REMOTE_URL = "http://pi-service:8080/"
	DEFAULT_COUNT      = 1000
)
View Source
const (
	DEFAULT_LISTEN_ADDRESS   = ":8080"
	DEFAULT_SENTINEL_ADDRESS = "sentinel-service:26379"
	DEFAULT_MASTER_NAME      = "master"
	DEFAULT_REDIS_ADDRESS    = "redis-service:6379"
	DEFAULT_USE_CACHE        = true
)
View Source
const (
	APP_NAME = "pi"
)

Variables

View Source
var (
	Logger *zap.Logger

	RootCmd = &cobra.Command{
		Use:   APP_NAME,
		Short: "Utility to get the digits of pi at an arbitrary index",
		Long:  "Pi is a client/server application that will fetch 9 digits of pi from an arbitrary index.",
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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