apiserver

package
v0.0.0-...-4c8f420 Latest Latest
Warning

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

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

Documentation

Overview

Package apiserver implements executable entry points to the gas monetization api.

Index

Constants

This section is empty.

Variables

View Source
var CmdConfig = cli.Command{
	Name:  "config",
	Usage: "Prints default config",
	Action: func(ctx *cli.Context) error {
		cfg := config.Load(ctx)
		enc := json.NewEncoder(ctx.App.Writer)
		enc.SetIndent("", "    ")
		if err := enc.Encode(cfg); err != nil {
			return err
		}
		return nil
	},
}
View Source
var CmdRun = cli.Command{
	Action: run,
	Name:   "run",
	Usage:  `Runs the gas monetization api.`,
	Flags: []cli.Flag{
		&flags.Cfg,
	},
}

CmdRun defines a CLI command for running the gas monetization api.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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