cmd

package
v0.0.0-...-e45066c Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(
	args []string,
	logger *zap.Logger,
) error

Types

type CLI

type CLI struct {
	Port       int    `help:"port for http server" required:""`
	FlushSize  int    `help:"numbers of items to flush to large file store"`
	BufferSize int    `help:"size of in-memory buffer" default:"100"`
	WorkPath   string `type:"existingdir" help:"store database in directory" required:""`
	S3         struct {
		AccessKeyID     string `help:"access key to the s3 bucket"`
		SecretAccessKey string `help:"secret access key to the s3 bucket"`

		Bucket         string   `help:"name of the s3 bucket"`
		Endpoint       *url.URL `help:"full URL to s3 endpoint, not including bucket"`
		ForcePathStyle bool     `help:"force the path style of URLs, rather than sub-domains"`
		Path           string   `help:"path to store files on bucket"`
		Region         string   `help:"region for the s3 bucket (usually only for AWS)"`
		SkipVerify     bool     `help:"do not verify the SSL certs"`
	} `embed:"" prefix:"s3-" group:"s3" help:"where to store the sqlite databases"`
}

func (*CLI) Run

func (cli *CLI) Run(logger *zap.Logger) error

Jump to

Keyboard shortcuts

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