cli

package
v0.0.0-...-5cd0c88 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2018 License: MIT Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GO_DFL_DEFAULT_QUOTES = []string{"'", "\"", "`"}
View Source
var GO_RAILGUN_COMPRESSION_ALGORITHMS = []string{"none", "bzip2", "gzip", "snappy"}
View Source
var GO_RAILGUN_DEFAULT_SALT = "4F56C8C88B38CD8CD96BF8A9724F4BFE"

Functions

func Execute

func Execute()

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

func MakeRequest

func MakeRequest(input *RequestInput, outputWriter grw.ByteWriteCloser, errorWriter grw.ByteWriteCloser, verbose bool) error

func NewRouter

func NewRouter(v *viper.Viper, railgunCatalog *catalog.RailgunCatalog, errorWriter grw.ByteWriteCloser, logWriter grw.ByteWriteCloser, logFormat string, publicKey *rsa.PublicKey, privateKey *rsa.PrivateKey, validMethods []string, verbose bool) (*router.RailgunRouter, error)

Types

type RequestInput

type RequestInput struct {
	Url           string
	Method        string
	Object        interface{}
	Format        string
	Authorization string
}

Jump to

Keyboard shortcuts

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