cli

package
v0.0.0-...-360b30e Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStorageForOptions

func GetStorageForOptions(options *Options) (storage.Storage, error)

GetStorageForOptions returns the appriate storage driver instance based on options

Types

type Options

type Options struct {
	Port                *int
	StorageDriver       *string
	StoragePath         *string
	DynamoDBKeysTable   *string
	DynamoDBValuesTable *string
	AwsRegion           *string
	GcProjectID         *string
	DatastoreKeysKind   *string
	DatastoreValuesKind *string
	Debug               *bool
	Help                *bool
}

Options is a type that holds pointers to cli flags shared by various servers (http, grpc...)

func GetOptions

func GetOptions() *Options

GetOptions returns an Options struct based on cli flags. It has to be called BEFORE flag.Parse()

Jump to

Keyboard shortcuts

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