serve

package
v0.0.0-...-0ab412c Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cobra.Command{
	Use:   "serve",
	Short: "Run the indexing service and expose HTTP API",
	Long:  "Deprecated. Use the `rest` and `poll` subcommands to run HTTP API server and poller separately instead.",
	Run: func(cmd *cobra.Command, args []string) {
		go ServeHTTP(cmd)
		ServePoller(cmd)
	},
}
View Source
var HTTPCommand = &cobra.Command{
	Use:   "http",
	Short: "Expose HTTP API of the indexer",
	Run: func(cmd *cobra.Command, args []string) {
		ServeHTTP(cmd)
	},
}
View Source
var PollerCommand = &cobra.Command{
	Use:   "poller",
	Short: "Run the indexing service",
	Run: func(cmd *cobra.Command, args []string) {
		ServePoller(cmd)
	},
}

Functions

func ServeHTTP

func ServeHTTP(cmd *cobra.Command)

func ServePoller

func ServePoller(cmd *cobra.Command)

Types

This section is empty.

Jump to

Keyboard shortcuts

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