serve

package
v0.0.0-...-7561129 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(parser *flags.Parser)

Types

type ServeCommand

type ServeCommand struct {
	Listen   string `short:"l" long:"listen" env:"MYIP_LISTEN" default:"0.0.0.0:8000" description:"What IP and port to listen to connections"`
	CityPath string `long:"geoip-city" env:"MYIP_GEOIP_CITY" description:"Path to MaxMind GeoIP City database"`
	ASNPath  string `long:"geoip-asn" env:"MYIP_GEOIP_ASN" description:"Path to MaxMind GeoIP ASN database"`
	Password string `short:"p" long:"password" env:"MYIP_GEOIP_PASSWORD" description:"Optional password to restrict requests"`
}

func (*ServeCommand) Execute

func (p *ServeCommand) Execute(args []string) error

Jump to

Keyboard shortcuts

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