application

package
Version: v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignCommonFlags

func AssignCommonFlags(fs *flag.FlagSet)

func BoolVar

func BoolVar(fl *flag.FlagSet, k string) (bool, error)

func IntVar

func IntVar(fl *flag.FlagSet, k string) (int, error)

func Lookup

func Lookup(fl *flag.FlagSet, k string) (interface{}, error)

func NewClientApplicationFlags

func NewClientApplicationFlags() *flag.FlagSet

func NewFlagSet

func NewFlagSet(name string) *flag.FlagSet

func NewServerApplicationFlags

func NewServerApplicationFlags() *flag.FlagSet

func ParseFlags

func ParseFlags(fs *flag.FlagSet)

func StringVar

func StringVar(fl *flag.FlagSet, k string) (string, error)

Types

type Application

type Application interface {
	Run(*flag.FlagSet) error
}

func NewClientApplication

func NewClientApplication() (Application, error)

func NewServerApplication

func NewServerApplication(eng artisanalinteger.Engine) (Application, error)

type ClientApplication

type ClientApplication struct {
	Application
}

func (*ClientApplication) Run

func (c *ClientApplication) Run(fl *flag.FlagSet) error

type ServerApplication

type ServerApplication struct {
	Application
	// contains filtered or unexported fields
}

func (*ServerApplication) Run

func (s *ServerApplication) Run(fl *flag.FlagSet) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL