cmd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "hub3",
	Short: "Hub3: A Golang-based Linked Open Data discovery platform.",
}

RootCmd represents the base command when called without any subcommands

View Source
var Verbose bool

Verbose logs extra information when the version command is called.

Functions

func Execute

func Execute(version, buildstamp, buildagent, githash string)

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.

Types

type CustomRetrier

type CustomRetrier struct {
	// contains filtered or unexported fields
}

CustomRetrier for configuring the retrier for the ElasticSearch client.

func NewCustomRetrier

func NewCustomRetrier() *CustomRetrier

NewCustomRetrier creates custom retrier for elasticsearch

func (*CustomRetrier) Retry

func (r *CustomRetrier) Retry(
	ctx context.Context,
	retry int,
	req *http.Request,
	resp *http.Response,
	err error) (time.Duration, bool, error)

Retry defines how the retrier should deal with retrying the elasticsearch connection.

Jump to

Keyboard shortcuts

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