flags

package
v0.0.0-...-3a72dd1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2017 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package flags defines the command line interface flags for both distrilock and distrilock-ws.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNumberOfFilesLimit

func GetNumberOfFilesLimit() (uint64, error)

GetNumberOfFilesLimit returns the (hard) limit for maximum number of files for the user running current process.

Types

type Flags

type Flags struct {
	*flag.FlagSet

	Address   string
	Directory string
}

Flags contains the command line interface flags for a distrilock daemon.

func Parse

func Parse(args []string, defaultAddress string) (*Flags, error)

Parse parses valid command-line flags for distrilock or returns an error; if help flag was selected, it exits the process.

Directories

Path Synopsis
This package contains the command line interface executable 'distrilock'.
This package contains the command line interface executable 'distrilock'.
This package contains the command-line-interface executable to serve the distrilock API over websockets.
This package contains the command-line-interface executable to serve the distrilock API over websockets.

Jump to

Keyboard shortcuts

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