config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidArg = errors.New("invalid argument: ")

Functions

func NewInvalidArgError

func NewInvalidArgError(arg ...interface{}) error

TODO: THIS IS A BAD IDEA. USE FMT.ERRORF INSTEAD

Types

type ClientConfig

type ClientConfig struct {
	// contains filtered or unexported fields
}

func ClientCmdArgParse

func ClientCmdArgParse(args ...string) (*ClientConfig, error)

Generate object from flags.

func (*ClientConfig) Run

Perform the action and return status or error

type ServerConfig

type ServerConfig struct {
	// contains filtered or unexported fields
}

func ServerCmdArgParse

func ServerCmdArgParse(args ...string) (*ServerConfig, error)

func (*ServerConfig) HttpListen

func (sc *ServerConfig) HttpListen() error

Run appropiate server through http synchronously

Jump to

Keyboard shortcuts

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