cli

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_HOST      = "0.0.0.0"
	DEFAULT_PORT      = "3142"
	DEFAULT_CACHE_DIR = "./.aptcache"
	DEFAULT_MIRROR    = "" // "https://mirrors.tuna.tsinghua.edu.cn/ubuntu/"
	DEFAULT_TYPE      = linux.LINUX_DISTROS_UBUNTU
	DEFAULT_DEBUG     = false
)

Variables

View Source
var Version string

Functions

func Daemon

func Daemon(appFlags *AppFlags)

func StartServer

func StartServer(appFlags *AppFlags, ap *proxy.AptProxy)

Types

type AppFlags

type AppFlags struct {
	Debug    bool
	Version  string
	CacheDir string
	Mirror   string
	Types    string
	Listen   string
}

func ParseFlags

func ParseFlags() (appFlags AppFlags)

Jump to

Keyboard shortcuts

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