controller

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLatestVersion added in v0.2.0

func CheckLatestVersion(currentVersion string) (latest string, isNewer bool, err error)

func ParseFlags

func ParseFlags() (entity.Session, error)

ParseFlags handles command-line flags and returns a Session configuration

Types

type Flag

type Flag struct {
	Plaintext          bool
	Insecure           bool
	CACert             string
	Cert               string
	Key                string
	Data               string
	AllowUnknownFields bool
	ConnectTimeout     float64
	KeepAliveTime      float64
	MaxTimeOut         float64
	MaxMsgSz           int
}

Config holds all the configuration options for the application

func (Flag) Validate

func (f Flag) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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