service

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockSignersLoopInterval    = 30 * time.Second
	NetworkHistoryLoopInterval  = 120 * time.Second
	CometTxsLoopInterval        = 20 * time.Second
	NetworkBalancesLoopInterval = 15 * time.Second
	AssetPricesLoopInterval     = 25 * time.Second
)

Variables

View Source
var ServiceCmd = &cobra.Command{
	Use:   "service",
	Short: "Service to gather data and put it into the database",
	Long:  `Service to gather data and put it into the database`,
}

Functions

func RunInit

func RunInit(args InitArgs) error

func RunInitDB

func RunInitDB(args InitDBArgs) error

func RunValidateConfig

func RunValidateConfig(args ValidateConfigArgs) error

Types

type InitArgs

type InitArgs struct {
	*ServiceArgs
	Force bool
}

type InitDBArgs

type InitDBArgs struct {
	*ServiceArgs
}

type ServiceArgs

type ServiceArgs struct {
	*rootCmd.RootArgs
}

type StartArgs

type StartArgs struct {
	*ServiceArgs
	EnablePprof bool
}

type ValidateConfigArgs

type ValidateConfigArgs struct {
	*ServiceArgs
	Print bool
}

Jump to

Keyboard shortcuts

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