Documentation ¶
Index ¶
- Constants
- Variables
- func AESDecrypt(key []byte, securemess string) (decodedmess string, err error)
- func AESEncrypt(key []byte, message string) (encmess string, err error)
- func App() *application
- func AppFilename(newExt string) string
- func AppRestart()
- func AppShutdown()
- func AppStartupCh() <-chan error
- func AuthenticateCookie(context echo.Context, password string) error
- func BasicAuthHandler(mandatory bool, authFunc BasicAuthFunc, next http.HandlerFunc) http.HandlerFunc
- func BindForm(context echo.Context, data interface{}, bodyLimit int) error
- func CalcDeadline(t time.Time, d time.Duration) time.Time
- func CalcFileMode(owner FilePermission, group FilePermission, public FilePermission) os.FileMode
- func CanSetReadTimeout(reader io.Reader) bool
- func CanSetWriteTimeout(writer io.Writer) bool
- func Capitalize(txt string) string
- func Catch(fn func() error) (err error)
- func CertificateAsPEM(tlsCertificate *tls.Certificate) []byte
- func CertificateInfoFromConnection(con *tls.Conn) (string, error)
- func CheckCookieAuthenticated(context echo.Context, password string) error
- func CleanPath(path string) string
- func Clear(v interface{}) error
- func ClearDate(v time.Time) time.Time
- func ClearLogs()
- func ClearTime(v time.Time) time.Time
- func Clone[T any](in T) (T, error)
- func CmdToString(cmd *exec.Cmd) string
- func Compare[T constraints.Ordered](a, b T) int
- func CompareDate(t1 time.Time, t2 time.Time) time.Duration
- func CompareHashes(expected string, actual string) error
- func CompareTime(t1 time.Time, t2 time.Time) time.Duration
- func ConcurrentLimitHandler(next http.HandlerFunc) http.HandlerFunc
- func Contains(slice interface{}, search interface{}) bool
- func ContainsWildcard(s string) bool
- func CopyBuffer(ctx context.Context, cancel context.CancelFunc, name string, writer io.Writer, ...) (int64, error)
- func CreateTTYOptions(device string, mode *serial.Mode) (string, error)
- func CreateTempDir() (string, error)
- func CreateTempFile() (file *os.File, err error)
- func CreateTlsConfig(keylen int, password string) (*tls.Config, error)
- func DataTransfer(ctx context.Context, cancel context.CancelFunc, leftName string, ...)
- func Debug(format string, args ...any)
- func DebugError(err error) bool
- func DebugErrorIndex(index int, err error) bool
- func DebugFunc(args ...any)
- func DebugIndex(index int, format string, args ...any)
- func DecryptString(key []byte, txt string) (string, error)
- func DefaultConsoleEncoding() string
- func DefaultEncoding() string
- func DisableCookie(context echo.Context) error
- func Discover(address string, timeout time.Duration, uid string) ([]string, error)
- func DurationToMillisecond(d time.Duration) int
- func EncryptString(key []byte, txt string) (string, error)
- func EqualWildcards(s, mask string) (bool, error)
- func Error(err error) bool
- func Eval[T any](b bool, trueFunc T, falseFunc T) T
- func ExecuteCmd(cmd *exec.Cmd) ([]byte, error)
- func Exit(code int)
- func ExitOrError(err error) error
- func ExtractNumber(txt string) (float64, error)
- func FileBackup(filename string) error
- func FileCompare(filename0 string, filename1 string) error
- func FileCopy(src string, dst string) error
- func FileDate(filename string) (time.Time, error)
- func FileDelete(filename string) error
- func FileExists(filename string) bool
- func FileMode(read, write, execute bool) os.FileMode
- func FileName(filename string) string
- func FileNameExt(filename string) string
- func FileNamePart(filename string) string
- func FileSize(filename string) (int64, error)
- func FileStore(filename string, r io.Reader) error
- func FillString(txt string, length int, asPrefix bool, add string) string
- func FindFreePort(network string, startPort int, excludedPorts []int) (int, error)
- func FlagNameAsEnvName(flagName string) string
- func FlagValue(flagname string) string
- func FormatIP(ip net.IP) string
- func FormatMemory(bytes uint64) string
- func GetCookie(context echo.Context) (*sessions.Session, error)
- func GetDefaultLanguage() string
- func GetLanguages() ([]string, error)
- func GetLogs() []string
- func GetStructValue(obj any, field string) (reflect.Value, error)
- func GetSystemLanguage() (string, error)
- func GoRoutineId() uint64
- func GoRoutineIds() []uint64
- func HTTPRequest(httpTransport *http.Transport, timeout time.Duration, method string, ...) (*http.Response, []byte, error)
- func HTTPResponse(w http.ResponseWriter, r *http.Request, status int, mimeType string, ...) error
- func HTTPServerStart(port int, tlsConfig *tls.Config, mux *http.ServeMux) error
- func HTTPServerStop() error
- func Hack4BrowserUpdate() string
- func HashAlgorithm(s string) (crypto.Hash, error)
- func HashBytes(crypto crypto.Hash, r io.Reader) ([]byte, error)
- func HashValue(algorithm crypto.Hash, s string) (string, error)
- func Header(r *http.Request, name string) (string, error)
- func HidePasswordValue(name string, value string) string
- func IgnoreError(err error) bool
- func IndexNth(str string, substr string, count int) int
- func IndexOf(slice interface{}, search interface{}) int
- func Info(format string, args ...any)
- func Init(title string, version string, git string, build string, description string, ...)
- func IsCertificateSelfSigned(cert *x509.Certificate) bool
- func IsCmdlineOnlyFlag(flagName string) bool
- func IsCookieAuthenticated(context echo.Context, password string) bool
- func IsDirectory(path string) bool
- func IsEqualType(a any, b any) bool
- func IsErrExit(err error) bool
- func IsErrNetClosed(err error) bool
- func IsErrNetOperation(err error) bool
- func IsErrTimeout(err error) bool
- func IsErrUnexpectedEOF(err error) bool
- func IsFile(path string) bool
- func IsFileReadOnly(path string) bool
- func IsFlagAsEnvProvided(flagname string) bool
- func IsFlagProvided(flagname string) bool
- func IsHashedValue(s string) bool
- func IsIPv4(ip net.IP) bool
- func IsImageMimeType(mimeType string) bool
- func IsLinkConnected(nic string) (bool, error)
- func IsLinkUp(nic string) (bool, error)
- func IsLinux() bool
- func IsLocalhost(ip net.IP) bool
- func IsLogFileEnabled() bool
- func IsLogInit() bool
- func IsLogJsonEnabled() bool
- func IsLogVerboseEnabled() bool
- func IsMac() bool
- func IsPortAvailable(network string, port int) error
- func IsPrivateIP(ip net.IP) bool
- func IsRunningAsExecutable() bool
- func IsRunningAsService() bool
- func IsRunningInDocker() bool
- func IsRunningInTest() bool
- func IsRunningInteractive() bool
- func IsStringEnrypted(password string) bool
- func IsSuppressedError(err error) bool
- func IsSuppressedErrorMessage(err string) bool
- func IsSymbolicLink(path string) bool
- func IsTTYDevice(device string) bool
- func IsTextMimeType(mimeType string) bool
- func IsValidFilename(filename string) bool
- func IsWindows() bool
- func IterateStruct(data interface{}, ...) error
- func Join(strs []string, sep string) string
- func LevelToIndex(level string) int
- func ListFiles(filemask string, recursive bool) ([]string, error)
- func LoadConfigurationFile[T any]() (*T, error)
- func MandatoryFlags(excludes ...string) []string
- func Max[T constraints.Ordered](values ...T) T
- func MillisecondToDuration(msec int) time.Duration
- func Min[T constraints.Ordered](values ...T) T
- func MultiWriter(writers ...io.Writer) io.Writer
- func NewButton(parent *etree.Element, primary bool, actionItem ActionItem) *etree.Element
- func NewEchoLogger() echoLogger
- func NewEndpoint(device string, isClient bool, tlsConfig *tls.Config) (Endpoint, EndpointConnector, error)
- func NewForm(parent *etree.Element, caption string, data interface{}, ...) (*etree.Element, *etree.Element, error)
- func NewMenu(page *Webpage, menuItems []ActionItem, selectedTitle string, ...)
- func NewSeparatorSplitFunc(prefix []byte, suffix []byte, remove bool) (bufio.SplitFunc, error)
- func NewSizedReader(reader io.Reader, size int64) io.Reader
- func NewTable(parent *etree.Element, cells [][]string) *etree.Element
- func NewThrottledReader(reader io.Reader, bytesPerSeconds int) io.Reader
- func NewThrottledWriter(writer io.Writer, bytesPerSeconds int) io.Writer
- func NewTlsConfig(certificateVerify bool, serverName string, minVersion string, ...) (*tls.Config, error)
- func NewTlsConfigFromFlags() (*tls.Config, error)
- func NewWatchdog(msg string, fn func() error, timeout time.Duration) error
- func NewWatchdogCmd(cmd *exec.Cmd, timeout time.Duration) ([]byte, error)
- func NewWatchdogRetry(checkDuration time.Duration, maxDuration time.Duration, fn func() error) error
- func NoDebug(fn func())
- func Panic(err error)
- func ParseDateTime(mask string, v string) (time.Time, error)
- func ParseJsonDateTime(v string) (time.Time, error)
- func ParseMemory(txt string) (int64, error)
- func ParseTTYOptions(device string) (string, *serial.Mode, error)
- func PrettyPrintJSON(ba []byte) ([]byte, error)
- func PrintBytes(ba []byte, breakOnLineEndings bool) string
- func PrivateKeyAsPEM(privateKey *ecdsa.PrivateKey) ([]byte, error)
- func PullFlash(context echo.Context, flashName string) []string
- func PushFlash(context echo.Context, flashName string, flash string) error
- func ReadBody(r io.ReadCloser) ([]byte, error)
- func ReadBodyJSON[T any](r io.ReadCloser) ([]T, bool, error)
- func ReadFileHeader(path string) ([]byte, error)
- func ReadFully(r io.Reader, p []byte) (int, error)
- func ReadResource(filename string) ([]byte, string, error)
- func ReadWithTimeout(reader io.Reader, timeout time.Duration, ba []byte) (int, error)
- func RegisterConcurrentLimit() bool
- func RegisterGoRoutine(index int) int
- func RegisteredGoRoutines(f func(id int, ri RuntimeInfo))
- func RemoveJsonComments(ba []byte) ([]byte, error)
- func ResetConfiguration() error
- func ResourcesDirectory() string
- func ReverseSlice[T any](original []T) []T
- func Rnd(max int) int
- func RndBytes(n int) []byte
- func RndString(l int) string
- func Run(mandatoryFlags []string)
- func RunScript(timeout time.Duration, filename string) ([]byte, error)
- func Rune(s string, index int) (rune, error)
- func SaveConfigurationFile(cfg any) error
- func ScanLinesWithLF(data []byte, atEOF bool) (advance int, token []byte, err error)
- func SessionId(context echo.Context) string
- func SetCookie(context echo.Context, cookie *sessions.Session, timeout time.Duration) error
- func SetFileReadOnly(path string, readonly bool) (err error)
- func SetLanguage(lang string) error
- func SetReadTimeout(reader io.Reader, timeout time.Duration) error
- func SetStructValue(obj any, field string, value any) error
- func SetTime(t time.Time, f string, v int) time.Time
- func SetWriteTimeout(writer io.Writer, timeout time.Duration) error
- func Sleep(d time.Duration)
- func SleepWithChannel(d time.Duration, ch chan struct{})
- func SliceAppend[S ~[]E, E any](s S, e ...E) S
- func SliceClone[S ~[]E, E any](s S) S
- func SliceContains[S ~[]E, E comparable](s S, e E) bool
- func SliceDelete[S ~[]E, E any](s S, index int) S
- func SliceDeleteRange[S ~[]E, E any](s S, index0 int, index1 int) S
- func SliceIndex[S ~[]E, E comparable](s S, e E) int
- func SliceIndexFunc[S ~[]E, E any](s S, fn func(E) bool) int
- func SliceInsert[S ~[]E, E any](s S, index int, e ...E) S
- func SliceRemove[S ~[]E, E comparable](s S, e E) S
- func SortStringsCaseInsensitive(strs []string)
- func Split(s string, sep string) []string
- func SplitCmdline(cmdline string) []string
- func SplitHost(addr string) (string, error)
- func StartInfo(msg string)
- func StopInfo(msg string)
- func SurroundWith(str []string, prefixSuffix string) []string
- func SystemFlagBool(name string, value bool, usage string) *bool
- func SystemFlagInt(name string, value int, usage string) *int
- func SystemFlagInt64(name string, value int64, usage string) *int64
- func SystemFlagString(name string, value string, usage string) *string
- func TelemetryHandler(next http.HandlerFunc) http.HandlerFunc
- func TempDir() string
- func Title() string
- func TitleVersion(major bool, minor bool, patch bool) string
- func TlsCertificateInfos(tlsConfig *tls.Config) (string, error)
- func TlsCipherDescription(cs *tls.CipherSuite) string
- func TlsCipherNames(ciphers []*tls.CipherSuite) []string
- func TlsCipherSelectionsToIds(s string) []uint16
- func TlsCiphersIds(ciphers []*tls.CipherSuite) []uint16
- func TlsConfigFromP12(ba []byte, password string) (*tls.Config, error)
- func TlsConfigFromPEM(certPEM []byte, keyPEM []byte, password string) (*tls.Config, error)
- func TlsConfigToP12(tlsConfig *tls.Config, password string) ([]byte, error)
- func TlsDebugConnection(typ string, tlsConn *tls.Conn)
- func TlsDefaultCiphers() []*tls.CipherSuite
- func TlsDescriptionToCipher(name string) *tls.CipherSuite
- func TlsIdToCipher(id uint16) *tls.CipherSuite
- func TlsIdToVersion(id uint16) string
- func TlsToX509Certificate(certificate []byte) (*x509.Certificate, error)
- func TlsVersionToId(s string) uint16
- func TlsVersions() []string
- func ToAnySlice[T any](values ...T) []any
- func ToBool(s string) bool
- func ToSlice[T any](values ...T) []T
- func ToStrings(slice interface{}) ([]string, error)
- func ToTime(v asDateTime) time.Time
- func ToUTF8(ba []byte, inputEncoding string) ([]byte, error)
- func TraceError(err error) error
- func Translate(msg string, args ...interface{}) string
- func TranslateFor(language, msg string) string
- func Trim4Path(path string) string
- func TruncateTime(t time.Time, f string) time.Time
- func URLGet(url string) ([]byte, error)
- func UnregisterConcurrentLimit(fromChannel bool)
- func UnregisterGoRoutine(id int)
- func Unzip(dest, src string) error
- func ValidateJson(p any, ba []byte, ignoreUnknownFields bool) error
- func VerifyP12(ba []byte, password string) (privateKey *ecdsa.PrivateKey, certificate *x509.Certificate, ...)
- func Version(major bool, minor bool, patch bool) string
- func WaitUntilNetworkIsAvailable(lookupIp net.IP) error
- func WalkFiles(filemask string, recursive bool, ignoreError bool, ...) error
- func Warn(format string, args ...any)
- func WarnError(err error) bool
- func WriteFully(w io.Writer, p []byte) (int, error)
- func WriteJsonFile(filename string, v interface{}, fileMode os.FileMode) error
- func WriteWithTimeout(writer io.Writer, timeout time.Duration, ba []byte) (int, error)
- func X509toTlsCertificate(certificate *x509.Certificate, privateKey *ecdsa.PrivateKey) (*tls.Certificate, error)
- func Zip(filename string, targets []ZipTarget) error
- type ActionItem
- type AlignedTicker
- type AutoCloser
- type BackgroundTask
- type BasicAuthFunc
- type Configuration
- type DiscoverServer
- type DurationJSON
- type Element
- func (e *Element) AddAttr(name string, value string) *Element
- func (e *Element) AddElement(element *Element) *Element
- func (e *Element) AddElementName(name string) *Element
- func (e *Element) IsTextOnly() bool
- func (e *Element) RemoveAttr(name string) *Element
- func (e *Element) RemoveElement(element *Element) *Element
- func (e *Element) String() string
- type Endpoint
- type EndpointConnection
- type EndpointConnector
- type ErrExit
- type ErrFileAlreadyExists
- type ErrFileIsEmpty
- type ErrFileNotFound
- type ErrSetTimeout
- type ErrTimeout
- type ErrUnknownFlag
- type Event
- type EventConfigurationReset
- type EventFlagsExternal
- type EventFlagsParsed
- type EventFlagsSet
- type EventFunc
- type EventInit
- type EventLog
- type EventManager
- type EventShutdown
- type EventTelemetry
- type FileEntry
- type FilePermission
- type FuncFieldIterator
- type GoRoutinesRegister
- type GzipResponseWriter
- type HTTPError
- type HostInfo
- type Jason
- func (jason *Jason) Array(key string, index int) (*Jason, error)
- func (jason *Jason) ArrayCount(key string) int
- func (jason *Jason) Bool(key string, def ...bool) (result bool, err error)
- func (jason *Jason) Count() int
- func (jason *Jason) Element(key string) (*Jason, error)
- func (jason *Jason) ElementByPath(path string) (*Jason, error)
- func (jason *Jason) Elements() []string
- func (jason *Jason) Exists(key string) bool
- func (jason *Jason) Int(key string, def ...int) (result int, err error)
- func (jason *Jason) IsArray(key string) bool
- func (jason *Jason) IsBool(key string) bool
- func (jason *Jason) IsInt(key string) bool
- func (jason *Jason) IsString(key string) bool
- func (jason *Jason) Pretty() (string, error)
- func (jason *Jason) String(key string, def ...string) (string, error)
- type KeyValue
- type KeyValues
- func (kvs *KeyValues) Add(key string, value string)
- func (kvs *KeyValues) Clear()
- func (kvs *KeyValues) Contains(key string) bool
- func (kvs *KeyValues) Get(key string) (string, error)
- func (kvs *KeyValues) Index(key string) int
- func (kvs *KeyValues) Keys() []string
- func (kvs *KeyValues) Put(key string, value string) error
- func (kvs *KeyValues) Remove(key string) (string, error)
- func (kvs *KeyValues) Sort()
- func (kvs *KeyValues) Values() []string
- type LogEntry
- type MimetypeExtension
- type ModuleInfo
- type ModuleRequire
- type MultiValueFlag
- type NetworkClient
- type NetworkConnection
- func (networkConnection *NetworkConnection) Close() error
- func (networkConnection *NetworkConnection) Read(p []byte) (n int, err error)
- func (networkConnection *NetworkConnection) SetDeadline(t time.Time) error
- func (networkConnection *NetworkConnection) SetReadDeadline(t time.Time) error
- func (networkConnection *NetworkConnection) SetWriteDeadline(t time.Time) error
- func (networkConnection *NetworkConnection) Write(p []byte) (n int, err error)
- type NetworkServer
- type Notice
- type Quantum
- func (q *Quantum) Add(v int)
- func (q *Quantum) AddQuantum(other *Quantum)
- func (q *Quantum) AddRange(from int, to int)
- func (q *Quantum) Get(index int) (int, error)
- func (q *Quantum) IsIncluded(v int) bool
- func (q *Quantum) Len() int
- func (q *Quantum) Remove(v int)
- func (q *Quantum) RemoveAll()
- func (q *Quantum) RemoveQuantum(other *Quantum)
- func (q *Quantum) RemoveRange(from int, to int)
- func (q *Quantum) String() string
- func (q *Quantum) ToSlice() []int
- type RandomReader
- type ReentrantMutex
- type RestURL
- func (restURL *RestURL) Format(args ...any) string
- func (restURL *RestURL) MuxString() string
- func (restURL *RestURL) ParamValue(r *http.Request, name string) string
- func (restURL *RestURL) ParamValues(r *http.Request, name string) []string
- func (restURL *RestURL) Statistics() RestURLStats
- func (restURL *RestURL) SwaggerInfo() string
- func (restURL *RestURL) URL(address string, args ...any) string
- func (restURL *RestURL) UpdateStats(start time.Time)
- func (restURL *RestURL) Validate(r *http.Request) error
- type RestURLField
- type RestURLStats
- type Runner
- type RuntimeInfo
- type StatusResponseWriter
- type StringTable
- func (st *StringTable) AddCol(txt string)
- func (st *StringTable) AddCols(txts ...string)
- func (st *StringTable) AddRow()
- func (st *StringTable) CSV() string
- func (st *StringTable) CSVToWriter(w io.Writer) error
- func (st *StringTable) Clear()
- func (st *StringTable) Debug()
- func (st *StringTable) HTML() string
- func (st *StringTable) HTMLToWriter(w io.Writer) error
- func (st *StringTable) InsertCols(row int, txts ...string)
- func (st *StringTable) JSON() string
- func (st *StringTable) JSONToWriter(w io.Writer) error
- func (st *StringTable) Markdown() string
- func (st *StringTable) MarkdownToWriter(w io.Writer) error
- func (st *StringTable) Rows() int
- func (st *StringTable) Table() string
- func (st *StringTable) TableToWriter(w io.Writer) error
- type SwapBuffer
- func (sb *SwapBuffer) Close() error
- func (sb *SwapBuffer) CompressedLen() (int, error)
- func (sb *SwapBuffer) Len() int
- func (sb *SwapBuffer) OnDisk() bool
- func (sb *SwapBuffer) Read(p []byte) (int, error)
- func (sb *SwapBuffer) Write(p []byte) (int, error)
- func (sb *SwapBuffer) WriteString(s string) (int, error)
- type Sync
- type SystemInfo
- type TTY
- type TTYConnection
- func (ttyConnection *TTYConnection) Close() error
- func (ttyConnection *TTYConnection) Read(p []byte) (n int, err error)
- func (ttyConnection *TTYConnection) SetDeadline(t time.Time) error
- func (ttyConnection *TTYConnection) SetReadDeadline(t time.Time) error
- func (ttyConnection *TTYConnection) SetWriteDeadline(t time.Time) error
- func (ttyConnection *TTYConnection) Write(p []byte) (n int, err error)
- type TaskFunc
- type Tasks
- type TimeoutReader
- type TimeoutRegister
- type TimeoutWriter
- type URI
- type Webpage
- type ZeroReader
- type ZipTarget
Constants ¶
const ( APACHE string = "https://www.apache.org/licenses/LICENSE-2.0.html" SERVICE_SIMULATE = "simulate" SERVICE_START = "start" SERVICE_STOP = "stop" SERVICE_RESTART = "restart" SERVICE_INSTALL = "install" SERVICE_UNINSTALL = "uninstall" )
const ( FlagNameAppProduct = "app.product" FlagNameAppTicker = "app.ticker" FlagNameService = "service" FlagNameServiceUsername = "service.username" FlagNameServicePassword = "service.password" FlagNameServiceTimeout = "service.timeout" FlagNameScriptTimeout = "script.timeout" FlagNameScriptStart = "script.start" FlagNameScriptStop = "script.stop" FlagNameUsage = "h" FlagNameUsageMd = "hmd" FlagNameUsageAll = "hs" FlagNameUsageAllMd = "hsmd" FlagNameNoBanner = "nb" )
const ( FlagNameCfgFile = "cfg.file" FlagNameCfgReset = "cfg.reset" FlagNameCfgCreate = "cfg.create" )
const ( //Year parse mask Year = "2006" //Month parse mask Month = "01" //Day parse mask Day = "02" //Hour parse mask Hour = "15" //Minute parse mask Minute = "04" //Second parse mask Second = "05" //Milli parse mask Msec = ".000" //DateSeparator parse mask DateSeparator = "." //TimeSeparator parse mask TimeSeparator = ":" //Separator parse mask Separator = " " )
const ( AUTHORIZATION = "Authorization" BEARER = "Bearer" ACCEPT = "Accept" CONTENT_TYPE = "Content-Type" CONTENT_LENGTH = "Content-Length" CONTENT_MD5 = "Content-MD5" CONTENT_DISPOSITION = "Content-Disposition" CONTENT_ENCODING = "Content-Encoding" ACCEPT_ENCODING = "Accept-Encoding" HEADER_LOCATION = "Location" FlagNameHTTPHeaderLimit = "http.headerlimit" FlagNameHTTPBodyLimit = "http.bodylimit" FlagNameHTTPTLSInsecure = "http.tlsinsecure" FlagNameHTTPTimeout = "http.timeout" FlagNameHTTPGzip = "http.gzip" )
const ( FlagNameLogFileName = "log.file" FlagNameLogFileSize = "log.filesize" FlagNameLogVerbose = "log.verbose" FlagNameLogVerboseError = "log.verbose.error" FlagNameLogIO = "log.io" FlagNameLogJson = "log.json" FlagNameLogSys = "log.sys" FlagNameLogCount = "log.count" FlagNameLogBreakOnError = "log.breakonerror" FlagNameLogGap = "log.gap" FlagNameLogEqualError = "log.equalerror" )
const ( LevelDebug = "DEBUG" LevelInfo = "INFO" LevelWarn = "WARN" LevelError = "ERROR" LevelFatal = "FATAL" )
const ( LOCALHOST_IP4 = "127.0.0.1" LOCALHOST_IP6 = "::1" )
const ( FlagNameIoNetworkIface = "io.network.iface" FlagNameIoNetworkTimeout = "io.network.timeout" FlagNameIoConnectTimeout = "io.connect.timeout" FlagNameIoReadwriteTimeout = "io.readwrite.timeout" )
const ( FlagNameIoSwapBufferThreshold = "io.swapbuffer.threshold" FlagNameIoSwapBufferCompression = "io.swapbuffer.compression" )
const ( FlagNameTlsInsecure = "tls.insecure" FlagNameTlsVerify = "tls.verify" FlagNameTlsServername = "tls.servername" FlagNameTlsMinVersion = "tls.minversion" FlagNameTlsMaxVersion = "tls.maxversion" FlagNameTlsCiphers = "tls.ciphers" FlagNameTlsPassword = "tls.password" FlagNameTlsCertificate = "tls.certificate" FlagNameTlsMutual = "tls.mutual" FlagNameTlsKeylen = "tls.keylen" )
const ( TlsVersion10 = "TLS1.0" TlsVersion11 = "TLS1.1" TlsVersion12 = "TLS1.2" TlsVersion13 = "TLS1.3" )
const ( BIG5 = "big5" IBM437 = "ibm437" IBM850 = "ibm850" IBM866 = "ibm866" ISO_8859_1 = "iso-8859-1" ISO_8859_10 = "iso-8859-10" ISO_8859_2 = "iso-8859-2" ISO_8859_3 = "iso-8859-3" ISO_8859_4 = "iso-8859-4" ISO_8859_5 = "iso-8859-5" ISO_8859_6 = "iso-8859-6" ISO_8859_7 = "iso-8859-7" ISO_8859_8 = "iso-8859-8" ISO_8859_9 = "iso-8859-9" KOI8_R = "koi8-r" US_ASCII = "us-ascii" UTF_16 = "utf-16" UTF_16BE = "utf-16be" UTF_16LE = "utf-16le" UTF_8 = "utf-8" WINDOWS_1250 = "windows-1250" WINDOWS_1251 = "windows-1251" WINDOWS_1252 = "windows-1252" )
const ( SchemeSep = "://" OpaqueSep = ":" CredentialSep = "@" CredentialSplit = ":" CidrSep = "/" CidrSplit = ":" CidrSplitV6 = "]:" ParamsSep = "?" ParamSep = "&" ParamValueSep = "=" )
const ( OPTION_FILE = "file" OPTION_HIDDEN = "hidden" OPTION_SELECT = "select" OPTION_MULTISELECT = "multiselect" OPTION_DATALIST = "datalist" OPTION_PASSWORD = "password" OPTION_AUTOFOCUS = "autofocus" OPTION_REQUIRED = "required" OPTION_READONLY = "readonly" OPTION_MULTILINE = "multiline" OPTION_WIDE = "wide" OPTION_MEGALINE = "megaline" OPTION_NO_LABEL = "no_label" OPTION_EXPERTVIEW = "expertview" OPTION_NO_DEFAULTBUTTON = "no_defaultbutton" OPTION_CODE = "code" INPUT_WIDTH_NORMAL = "pure-input-1-4" INPUT_WIDTH_WIDE = "pure-input-1-2" CSS_DIALOG_CONTENT = "css-dialog-content pure-controls" CSS_DEFAULT_CONTENT = "css-default-content pure-controls" CSS_ERROR_BOX = "css-error-box" CSS_WARNING_BOX = "css-warning-box blink" CSS_SUCCESS_BOX = "css-success-box" CSS_VERTICAL_DIV = "css-vertical-div" CSS_LOGVIEWER = "css-logviewer" CSS_CONTENT = "css-content" CSS_CHECKLIST = "css-checklist" CSS_CHECKLIST_CHECKBOX = "css-checklist-checkbox" CSS_CHECKBOX = "css-checkbox" CSS_BUTTON_GROUP = "css-button-group" CSS_BORDER = "css-border" CSS_CODE = "css-code" CSS_COLOR_OFF = "#CFCFCF" CSS_COLOR_ON = "MediumSeaGreen" MAX_INPUT_LENGTH = "10240" FLASH_WARNING = "warning-flash" FLASH_ERROR = "error-flash" FLASH_SUCCESS = "success-flash" COOKIE_PASSWORD = "password" COOKIE_EXPIRE = "expire" FLASH_TIMEOUT = time.Second REFRESH_TIMEOUT = time.Second * 30 )
const (
FlagNameAppLanguage = "app.language"
)
const (
FlagNameIoFileBackups = "io.file.backups"
)
const (
MimetypeHeaderLen = 1024
)
const UNKNOWN = "unknwon"
Variables ¶
var ( FlagService = SystemFlagString(FlagNameService, "", "Service operation ("+strings.Join([]string{SERVICE_SIMULATE, SERVICE_START, SERVICE_STOP, SERVICE_RESTART, SERVICE_INSTALL, SERVICE_UNINSTALL}, ",")+")") FlagServiceUser = SystemFlagString(FlagNameServiceUsername, "", "Service user") FlagServicePassword = SystemFlagString(FlagNameServicePassword, "", "Service password") FlagServiceTimeout = SystemFlagInt(FlagNameServiceTimeout, 1000, "Service timeout") FlagScriptTimeout = SystemFlagInt(FlagNameScriptTimeout, 5000, "Script timeout") FlagScriptStart *string FlagScriptStop *string FlagUsage = flag.Bool(FlagNameUsage, false, "show flags description and usage") FlagUsageMd = flag.Bool(FlagNameUsageMd, false, "show flags description and usage in markdown format") FlagUsageAll = flag.Bool(FlagNameUsageAll, false, "show flags and system flags description and usage") FlagUsageAllMd = flag.Bool(FlagNameUsageAllMd, false, "show flags and system flags description and usage in markdown format") FlagNoBanner = flag.Bool(FlagNameNoBanner, false, "no copyright banner") FlagAppProduct *string FlagAppTicker *int )
var ( FlagNameConcurrentLimit = "concurrent.limit" FlagNameConcurrentTimeout = "concurrent.timeout" )
var ( FlagConcurrentLimit = flag.Int(FlagNameConcurrentLimit, Max(4, runtime.NumCPU()*2), "Limit of maximum current running tasks") FLagConcurrentTimeout = flag.Int(FlagNameConcurrentTimeout, 10000, "Tinmeout waiting for running a current running tasks") )
var ( FlagCfgReset *bool FlagCfgCreate *bool FlagCfgFile *string CmdlineOnlyFlags = []string{ FlagNameService, FlagNameServiceUsername, FlagNameServicePassword, FlagNameServiceTimeout, FlagNameCfgFile, FlagNameCfgReset, FlagNameCfgCreate, FlagNameUsage, FlagNameUsageMd, } )
var ( FlagHTTPHeaderLimit = SystemFlagInt64(FlagNameHTTPHeaderLimit, 1024*1024, "HTTP header limit") FlagHTTPBodyLimit = SystemFlagInt64(FlagNameHTTPBodyLimit, 5*1024*1024*1024, "HTTP body limit") FlagHTTPTLSInsecure = SystemFlagBool(FlagNameHTTPTLSInsecure, true, "HTTP default TLS insecure") FlagHTTPTimeout = SystemFlagInt(FlagNameHTTPTimeout, 120000, "HTTP default request timeout") FlagHTTPGzip = SystemFlagBool(FlagNameHTTPGzip, true, "HTTP GZip support") ErrNoBodyContent = fmt.Errorf("no HTTP body provided") )
var ( ReadOnlyFileMode = FileMode(true, false, false) DefaultFileMode = FileMode(true, true, false) DefaultDirMode = FileMode(true, true, true) FlagIoFileBackups = SystemFlagInt(FlagNameIoFileBackups, 3, "amount of file backups") )
var ( FlagLogFileName = SystemFlagString(FlagNameLogFileName, "", "filename to log file") FlagLogFileSize = SystemFlagInt(FlagNameLogFileSize, 5*1024*1024, "max log file size") FlagLogVerbose = flag.Bool(FlagNameLogVerbose, false, "verbose logging") FlagLogVerboseError = flag.Bool(FlagNameLogVerboseError, false, "verbose error logging") FlagLogIO = SystemFlagBool(FlagNameLogIO, false, "trace logging") FlagLogJson = SystemFlagBool(FlagNameLogJson, false, "JSON output") FlagLogSys = SystemFlagBool(FlagNameLogSys, false, "Use OS system logger") FlagLogCount = SystemFlagInt(FlagNameLogCount, 1000, "log count") FlagLogBreakOnError = SystemFlagString(FlagNameLogBreakOnError, "", "break on logging an error") FlagLogGap = SystemFlagInt(FlagNameLogGap, 100, "time gap after show a separator") FlagLogEqualError = SystemFlagBool(FlagNameLogEqualError, false, "Log equal (repeated) error") LogDebug *log.Logger = log.New(rw, prefix(LevelDebug), 0) LogInfo *log.Logger = log.New(rw, prefix(LevelInfo), 0) LogWarn *log.Logger = log.New(rw, prefix(LevelWarn), 0) LogError *log.Logger = log.New(os.Stderr, prefix(LevelError), 0) LogFatal *log.Logger = log.New(os.Stderr, prefix(LevelFatal), 0) )
var ( MimetypeApplicationDicom = registerMimeType("application/dicom", "dcm") MimetypeApplicationDicomJson = registerMimeType("application/dicom+json", "dcm.json") MimetypeApplicationEpubZip = registerMimeType("application/epub+zip", "epub") MimetypeApplicationGeoJson = registerMimeType("application/geo+json", "geojson") MimetypeApplicationGmlXml = registerMimeType("application/gml+xml", "gml") MimetypeApplicationGpxXml = registerMimeType("application/gpx+xml", "gpx") MimetypeApplicationGzip = registerMimeType("application/gzip", "gz") MimetypeApplicationJar = registerMimeType("application/jar", "jar") MimetypeApplicationJavascript = registerMimeType("application/javascript", "js") MimetypeApplicationJson = registerMimeType("application/json", "json") MimetypeApplicationMsword = registerMimeType("application/msword", "doc") MimetypeApplicationOctetStream = registerMimeType("application/octet-stream", "bin") MimetypeApplicationOgg = registerMimeType("application/ogg", "ogg") MimetypeApplicationPdf = registerMimeType("application/pdf", "pdf") MimetypeApplicationPostscript = registerMimeType("application/postscript", "ps") MimetypeApplicationVndGarminTcxXml = registerMimeType("application/vnd.garmin.tcx+xml", "tcx") MimetypeApplicationVndGoogleEarthKmlXml = registerMimeType("application/vnd.google-earth.kml+xml", "kml") MimetypeApplicationVndMsExcel = registerMimeType("application/vnd.ms-excel", "xls") MimetypeApplicationVndMsPowerpoint = registerMimeType("application/vnd.ms-powerpoint", "ppt") MimetypeApplicationVndOpenxmlformatsOfficedocumentPresentationmlPresentation = registerMimeType("application/vnd.openxmlformats-officedocument.presentationml.presentation", "pptx") MimetypeApplicationVndOpenxmlformatsOfficedocumentSpreadsheetmlSheet = registerMimeType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "xlsx") MimetypeApplicationVndOpenxmlformatsOfficedocumentWordprocessingmlDocument = registerMimeType("application/vnd.openxmlformats-officedocument.wordprocessingml.document", "docx") MimetypeApplicationWasm = registerMimeType("application/wasm", "wasm") MimetypeApplicationX7ZCompressed = registerMimeType("application/x-7z-compressed", "7z") MimetypeApplicationXChromeExtension = registerMimeType("application/x-chrome-extension", "crx") MimetypeApplicationXJavaApplet = registerMimeType("application/x-java-applet; charset=binary", "class") MimetypeApplicationXPhotoshop = registerMimeType("application/x-photoshop", "psd") MimetypeApplicationXPython = registerMimeType("application/x-python", "py") MimetypeApplicationXShockwaveFlash = registerMimeType("application/x-shockwave-flash", "swf") MimetypeApplicationXTar = registerMimeType("application/x-tar", "tar") MimetypeApplicationXWWWFormUrlencoded = registerMimeType("application/x-www-form-urlencoded", "") MimetypeApplicationZip = registerMimeType("application/zip", "zip") MimetypeAudioAiff = registerMimeType("audio/aiff", "aiff") MimetypeAudioAmr = registerMimeType("audio/amr", "amr") MimetypeAudioApe = registerMimeType("audio/ape", "ape") MimetypeAudioBasic = registerMimeType("audio/basic", "au") MimetypeAudioFlac = registerMimeType("audio/flac", "flac") MimetypeAudioMidi = registerMimeType("audio/midi", "midi") MimetypeAudioMp4 = registerMimeType("audio/mp4", "mp4") MimetypeAudioMpeg = registerMimeType("audio/mpeg", "mp3") MimetypeAudioMusepack = registerMimeType("audio/musepack", "mpc") MimetypeAudioWav = registerMimeType("audio/wav", "wav") MimetypeAudioXM4A = registerMimeType("audio/x-m4a", "m4a") MimetypeFontWoff = registerMimeType("font/woff", "woff") MimetypeFontWoff2 = registerMimeType("font/woff2", "woff2") MimetypeImageBmp = registerMimeType("image/bmp", "bmp") MimetypeImageGif = registerMimeType("image/gif", "gif") MimetypeImageJpeg = registerMimeType("image/jpeg", "jpg") MimetypeImagePng = registerMimeType("image/png", "png") MimetypeImageSvgXml = registerMimeType("image/svg+xml", "svg") MimetypeImageTiff = registerMimeType("image/tiff", "tiff") MimetypeImageWebp = registerMimeType("image/webp", "webp") MimetypeImageXIcon = registerMimeType("image/x-icon", "ico") MimetypeModelVndColladaXml = registerMimeType("model/vnd.collada+xml", "dae") MimetypeModelX3DXml = registerMimeType("model/x3d+xml", "x3d") MimetypeTextHtml = registerMimeType("text/html; charset=utf-8", "html") MimetypeTextCss = registerMimeType("text/css", "css") MimetypeTextPlain = registerMimeType("text/plain", "txt") MimetypeTextRtf = registerMimeType("text/rtf", "rtf") MimetypeTextXml = registerMimeType("text/xml; charset=utf-8", "xml") MimetypeTextXLua = registerMimeType("text/x-lua", "lua") MimetypeTextXPerl = registerMimeType("text/x-perl", "pl") MimetypeTextXPhp = registerMimeType("text/x-php; charset=utf-8", "php") MimetypeTextXTcl = registerMimeType("text/x-tcl", "tcl") MimetypeVideo3GPP = registerMimeType("video/3gpp", "3gp") MimetypeVideo3GPP2 = registerMimeType("video/3gpp2", "3g2") MimetypeVideoMp4 = registerMimeType("video/mp4", "mp4") MimetypeVideoMpeg = registerMimeType("video/mpeg", "mpeg") MimetypeVideoQuicktime = registerMimeType("video/quicktime", "mov") MimetypeVideoWebm = registerMimeType("video/webm", "webm") MimetypeVideoXFlv = registerMimeType("video/x-flv", "flv") MimetypeVideoXMatroska = registerMimeType("video/x-matroska", "mkv") MimetypeVideoXMsvideo = registerMimeType("video/x-msvideo", "avi") )
var ( FlagIoPrimaryIface = SystemFlagString(FlagNameIoNetworkIface, "", "primary ethernet interface") FlagIoNetworkTimeout = SystemFlagInt(FlagNameIoNetworkTimeout, 10*1000, "network ready timeout") FlagIoConnectTimeout = SystemFlagInt(FlagNameIoConnectTimeout, 3*1000, "network server and client dial timeout") FlagIoReadwriteTimeout = SystemFlagInt(FlagNameIoReadwriteTimeout, 30*60*1000, "network read/write timeout") )
var ( FlagIoSwapBufferThreshold = SystemFlagInt(FlagNameIoSwapBufferThreshold, 1*1024*1024, "bytes count threshold to store to file") FlagIoSwapBufferCompression = SystemFlagBool(FlagNameIoSwapBufferCompression, true, "use compression with SwapBuffer") )
var ( FlagTlsInsecure *bool FlagTlsVerify *bool FlagTlsServername *string FlagTlsMinVersion *string FlagTlsMaxVersion *string FlagTlsCiphers *string FlagTlsPassword *string FlagTlsCertificate *string FlagTlsMutual *string FlagTlsKeyLen *int )
var ( FlagAppLanguage *string I18nFile *ini.File )
var ( SessionStore *memstore.MemStore CookieTitle = uuid.New().String() )
var DateMask = Day + DateSeparator + Month + DateSeparator + Year
var DateTimeMask = DateMask + Separator + TimeMask
var DateTimeMilliMask = DateMask + Separator + TimeMask + Msec
var (
Events = NewEventManager()
)
var (
GoRoutineVars = NewSyncOf(&vars)
)
var (
MEMORY_UNITS = []string{"Bytes", "KB", "MB", "GB", "TB"}
)
var Mimetypes = make(map[string]MimetypeExtension)
var SortedDateMask = Year + "-" + Month + "-" + Day
var SortedDateTimeMilliMask = SortedDateMask + Separator + TimeMask + Msec
var (
SystemFlagNames []string
)
var TimeMask = Hour + TimeSeparator + Minute + TimeSeparator + Second
Functions ¶
func AESDecrypt ¶ added in v1.1.15
func AESEncrypt ¶ added in v1.1.15
func AppFilename ¶ added in v1.1.15
func AppRestart ¶ added in v1.1.15
func AppRestart()
func AppShutdown ¶ added in v1.8.34
func AppShutdown()
func AppStartupCh ¶ added in v1.8.41
func AppStartupCh() <-chan error
func AuthenticateCookie ¶ added in v1.1.15
func BasicAuthHandler ¶ added in v1.8.5
func BasicAuthHandler(mandatory bool, authFunc BasicAuthFunc, next http.HandlerFunc) http.HandlerFunc
func CalcFileMode ¶ added in v1.1.15
func CalcFileMode(owner FilePermission, group FilePermission, public FilePermission) os.FileMode
func CanSetReadTimeout ¶ added in v1.5.49
func CanSetWriteTimeout ¶ added in v1.5.49
func CertificateAsPEM ¶ added in v1.1.84
func CertificateAsPEM(tlsCertificate *tls.Certificate) []byte
func CertificateInfoFromConnection ¶ added in v1.1.15
func CheckCookieAuthenticated ¶ added in v1.2.26
func CmdToString ¶ added in v1.1.20
func Compare ¶ added in v1.5.27
func Compare[T constraints.Ordered](a, b T) int
func CompareDate ¶
EqualDateTime checks for equality of parts
func CompareHashes ¶ added in v1.8.5
func CompareTime ¶
EqualTime checks for equality of time
func ConcurrentLimitHandler ¶ added in v1.9.36
func ConcurrentLimitHandler(next http.HandlerFunc) http.HandlerFunc
func ContainsWildcard ¶
func CopyBuffer ¶ added in v1.1.104
func CreateTTYOptions ¶ added in v1.4.15
func CreateTempFile ¶
CreateTempFile creates a temporary file
func CreateTlsConfig ¶ added in v1.1.84
func DataTransfer ¶ added in v1.2.44
func DataTransfer(ctx context.Context, cancel context.CancelFunc, leftName string, left io.ReadWriter, rightName string, right io.ReadWriter)
func DebugError ¶
func DebugErrorIndex ¶ added in v1.6.13
func DebugIndex ¶ added in v1.6.13
func DefaultConsoleEncoding ¶
func DefaultConsoleEncoding() string
func DefaultEncoding ¶
func DefaultEncoding() string
func DisableCookie ¶ added in v1.1.21
func DisableCookie(context echo.Context) error
func DurationToMillisecond ¶ added in v1.1.55
func EqualWildcards ¶
func ExitOrError ¶ added in v1.1.15
func ExtractNumber ¶ added in v1.1.15
func FileCompare ¶ added in v1.8.59
FileCompare does ... guess what :-)
func FileDelete ¶ added in v1.1.0
FileDelete does ... guess what :-)
func FileNameExt ¶
Returns the filename extension without part "test.txt" -> ".txt"
func FileNamePart ¶
Returns the filename part without extension "test.txt" -> "test"
func FillString ¶ added in v1.1.15
func FindFreePort ¶ added in v1.1.15
func FlagNameAsEnvName ¶ added in v1.8.79
func FormatMemory ¶ added in v1.1.15
func GetDefaultLanguage ¶ added in v1.8.3
func GetDefaultLanguage() string
func GetLanguages ¶ added in v1.1.15
GetLanguages lists all available languages
func GetStructValue ¶ added in v1.8.5
func GetSystemLanguage ¶ added in v1.1.15
GetSystemLanguage return BCP 47 standard language name
func GoRoutineId ¶ added in v1.2.7
func GoRoutineId() uint64
func GoRoutineIds ¶ added in v1.8.83
func GoRoutineIds() []uint64
func HTTPRequest ¶ added in v1.8.6
func HTTPResponse ¶ added in v1.9.34
func HTTPServerStart ¶ added in v1.8.33
func HTTPServerStop ¶ added in v1.8.33
func HTTPServerStop() error
func Hack4BrowserUpdate ¶ added in v1.1.15
func Hack4BrowserUpdate() string
func HidePasswordValue ¶ added in v1.8.69
func IgnoreError ¶ added in v1.6.27
func IsCertificateSelfSigned ¶ added in v1.1.19
func IsCertificateSelfSigned(cert *x509.Certificate) bool
func IsCmdlineOnlyFlag ¶ added in v1.2.34
func IsCookieAuthenticated ¶ added in v1.1.15
func IsDirectory ¶
IsDirectory checks if the path leads to a directory
func IsEqualType ¶ added in v1.9.11
func IsErrNetClosed ¶ added in v1.5.10
func IsErrNetOperation ¶ added in v1.5.10
func IsErrTimeout ¶ added in v1.2.53
func IsErrUnexpectedEOF ¶ added in v1.1.20
func IsFileReadOnly ¶
IsFileReadOnly checks if a file is read only
func IsFlagAsEnvProvided ¶ added in v1.9.43
func IsFlagProvided ¶ added in v1.6.44
func IsHashedValue ¶ added in v1.8.69
func IsImageMimeType ¶ added in v1.1.0
func IsLinkConnected ¶ added in v1.5.3
func IsLocalhost ¶ added in v1.1.20
func IsLogFileEnabled ¶ added in v1.7.6
func IsLogFileEnabled() bool
func IsLogJsonEnabled ¶ added in v1.7.6
func IsLogJsonEnabled() bool
func IsLogVerboseEnabled ¶ added in v1.7.6
func IsLogVerboseEnabled() bool
func IsPortAvailable ¶ added in v1.1.15
func IsPrivateIP ¶ added in v1.1.69
func IsRunningAsExecutable ¶ added in v1.1.15
func IsRunningAsExecutable() bool
func IsRunningAsService ¶ added in v1.1.15
func IsRunningAsService() bool
func IsRunningInDocker ¶ added in v1.8.82
func IsRunningInDocker() bool
func IsRunningInTest ¶ added in v1.8.24
func IsRunningInTest() bool
func IsRunningInteractive ¶ added in v1.1.15
func IsRunningInteractive() bool
func IsStringEnrypted ¶ added in v1.1.15
func IsSuppressedError ¶ added in v1.1.21
func IsSuppressedErrorMessage ¶ added in v1.1.21
func IsSymbolicLink ¶
IsSymbolicLink checks if the path leads to symbolic link
func IsTTYDevice ¶ added in v1.1.106
func IsTextMimeType ¶ added in v1.8.57
func IsValidFilename ¶ added in v1.8.22
func IsWindows ¶ added in v1.6.6
func IsWindows() bool
IsWindowsOS reports true if underlying OS is MS Windows
func IterateStruct ¶ added in v1.1.15
func LevelToIndex ¶ added in v1.8.36
func LoadConfigurationFile ¶ added in v1.3.11
func MandatoryFlags ¶ added in v1.9.37
func Max ¶ added in v1.1.15
func Max[T constraints.Ordered](values ...T) T
func MillisecondToDuration ¶ added in v1.1.15
func Min ¶ added in v1.1.15
func Min[T constraints.Ordered](values ...T) T
func NewEchoLogger ¶ added in v1.1.19
func NewEchoLogger() echoLogger
func NewEndpoint ¶ added in v1.1.106
func NewMenu ¶ added in v1.1.15
func NewMenu(page *Webpage, menuItems []ActionItem, selectedTitle string, disableMenues bool)
func NewSeparatorSplitFunc ¶ added in v1.5.27
func NewThrottledReader ¶ added in v1.1.15
func NewThrottledWriter ¶ added in v1.1.15
func NewTlsConfig ¶ added in v1.1.84
func NewTlsConfigFromFlags ¶ added in v1.1.84
func NewWatchdog ¶ added in v1.8.30
func NewWatchdogCmd ¶ added in v1.3.4
func NewWatchdogRetry ¶ added in v1.8.30
func ParseDateTime ¶
ParseDateTime parses only date, but no time
func ParseJsonDateTime ¶ added in v1.1.21
ParseJsonDateTime parses only date, but no time
func ParseMemory ¶ added in v1.1.15
func ParseTTYOptions ¶ added in v1.4.15
func PrettyPrintJSON ¶ added in v1.9.14
func PrintBytes ¶ added in v1.5.57
func PrivateKeyAsPEM ¶ added in v1.1.84
func PrivateKeyAsPEM(privateKey *ecdsa.PrivateKey) ([]byte, error)
func ReadBodyJSON ¶ added in v1.8.12
func ReadBodyJSON[T any](r io.ReadCloser) ([]T, bool, error)
func ReadFileHeader ¶ added in v1.8.58
func ReadWithTimeout ¶ added in v1.5.47
func RegisterConcurrentLimit ¶ added in v1.9.36
func RegisterConcurrentLimit() bool
func RegisterGoRoutine ¶ added in v1.1.108
func RegisteredGoRoutines ¶ added in v1.1.108
func RegisteredGoRoutines(f func(id int, ri RuntimeInfo))
func RemoveJsonComments ¶ added in v1.1.15
func ResetConfiguration ¶ added in v1.1.15
func ResetConfiguration() error
func ResourcesDirectory ¶ added in v1.1.96
func ResourcesDirectory() string
func ReverseSlice ¶ added in v1.5.41
func ReverseSlice[T any](original []T) []T
func SaveConfigurationFile ¶ added in v1.3.11
func ScanLinesWithLF ¶ added in v1.1.0
func SetFileReadOnly ¶
SetFileReadOnly sets file READ-ONLY yes or false
func SetLanguage ¶ added in v1.1.15
SetLanguage sets the language file to translation
func SetReadTimeout ¶ added in v1.5.47
func SetWriteTimeout ¶ added in v1.5.47
func SleepWithChannel ¶ added in v1.8.68
func SliceAppend ¶ added in v1.6.14
func SliceAppend[S ~[]E, E any](s S, e ...E) S
func SliceClone ¶ added in v1.6.15
func SliceClone[S ~[]E, E any](s S) S
func SliceContains ¶ added in v1.6.15
func SliceContains[S ~[]E, E comparable](s S, e E) bool
func SliceDelete ¶ added in v1.6.14
func SliceDeleteRange ¶ added in v1.6.15
func SliceIndex ¶ added in v1.6.14
func SliceIndex[S ~[]E, E comparable](s S, e E) int
func SliceIndexFunc ¶ added in v1.6.15
func SliceInsert ¶ added in v1.6.14
func SliceRemove ¶ added in v1.6.14
func SliceRemove[S ~[]E, E comparable](s S, e E) S
func SortStringsCaseInsensitive ¶ added in v1.1.15
func SortStringsCaseInsensitive(strs []string)
func SplitCmdline ¶ added in v1.6.43
func SurroundWith ¶
func SystemFlagBool ¶ added in v1.9.1
func SystemFlagInt64 ¶ added in v1.9.1
func SystemFlagString ¶ added in v1.9.1
func TelemetryHandler ¶ added in v1.9.6
func TelemetryHandler(next http.HandlerFunc) http.HandlerFunc
func TlsCertificateInfos ¶ added in v1.1.84
func TlsCipherDescription ¶ added in v1.1.84
func TlsCipherDescription(cs *tls.CipherSuite) string
func TlsCipherNames ¶ added in v1.1.84
func TlsCipherNames(ciphers []*tls.CipherSuite) []string
func TlsCipherSelectionsToIds ¶ added in v1.1.84
func TlsCiphersIds ¶ added in v1.1.84
func TlsCiphersIds(ciphers []*tls.CipherSuite) []uint16
func TlsConfigFromP12 ¶ added in v1.7.12
func TlsConfigFromPEM ¶ added in v1.1.84
func TlsConfigToP12 ¶ added in v1.1.84
func TlsDebugConnection ¶ added in v1.1.84
func TlsDefaultCiphers ¶ added in v1.1.84
func TlsDefaultCiphers() []*tls.CipherSuite
func TlsDescriptionToCipher ¶ added in v1.1.84
func TlsDescriptionToCipher(name string) *tls.CipherSuite
func TlsIdToCipher ¶ added in v1.1.84
func TlsIdToCipher(id uint16) *tls.CipherSuite
func TlsIdToVersion ¶ added in v1.1.21
func TlsToX509Certificate ¶ added in v1.1.84
func TlsToX509Certificate(certificate []byte) (*x509.Certificate, error)
func TlsVersionToId ¶ added in v1.1.21
func TlsVersions ¶ added in v1.1.21
func TlsVersions() []string
func ToAnySlice ¶ added in v1.9.28
func TraceError ¶ added in v1.5.36
func TranslateFor ¶ added in v1.1.15
func UnregisterConcurrentLimit ¶ added in v1.9.36
func UnregisterConcurrentLimit(fromChannel bool)
func UnregisterGoRoutine ¶ added in v1.1.108
func UnregisterGoRoutine(id int)
func ValidateJson ¶ added in v1.6.21
func VerifyP12 ¶ added in v1.1.15
func VerifyP12(ba []byte, password string) (privateKey *ecdsa.PrivateKey, certificate *x509.Certificate, caCerts []*x509.Certificate, err error)
func WaitUntilNetworkIsAvailable ¶ added in v1.2.4
func WriteJsonFile ¶ added in v1.1.15
func WriteWithTimeout ¶ added in v1.5.49
func X509toTlsCertificate ¶ added in v1.1.84
func X509toTlsCertificate(certificate *x509.Certificate, privateKey *ecdsa.PrivateKey) (*tls.Certificate, error)
Types ¶
type ActionItem ¶ added in v1.1.15
type AlignedTicker ¶ added in v1.8.71
func NewAlignedTicker ¶ added in v1.8.71
func NewAlignedTicker(sleepTime time.Duration) *AlignedTicker
func (*AlignedTicker) SleepUntilNextTicker ¶ added in v1.8.71
func (at *AlignedTicker) SleepUntilNextTicker() time.Duration
type AutoCloser ¶ added in v1.8.67
type AutoCloser struct { Reader io.Reader IsClosed atomic.Bool // contains filtered or unexported fields }
func NewAutoCloser ¶ added in v1.8.67
func NewAutoCloser(reader io.Reader) *AutoCloser
func (*AutoCloser) Close ¶ added in v1.9.33
func (ac *AutoCloser) Close() error
type BackgroundTask ¶ added in v1.8.52
type BackgroundTask struct {
// contains filtered or unexported fields
}
func NewBackgroundTask ¶ added in v1.8.52
func NewBackgroundTask(fn func(task *BackgroundTask)) *BackgroundTask
func (*BackgroundTask) Channel ¶ added in v1.8.52
func (bt *BackgroundTask) Channel() chan struct{}
func (*BackgroundTask) IsAlive ¶ added in v1.8.52
func (bt *BackgroundTask) IsAlive() bool
func (*BackgroundTask) Start ¶ added in v1.8.52
func (bt *BackgroundTask) Start()
func (*BackgroundTask) Stop ¶ added in v1.8.52
func (bt *BackgroundTask) Stop(waitFor bool)
type BasicAuthFunc ¶ added in v1.8.5
type Configuration ¶ added in v1.1.15
type Configuration struct { ApplicationTitle string `json:"applicationTitle"` ApplicationVersion string `json:"applicationVersion"` Flags KeyValues `json:"flags"` }
func NewConfiguration ¶ added in v1.1.15
func NewConfiguration() *Configuration
type DiscoverServer ¶ added in v1.1.15
type DiscoverServer struct {
// contains filtered or unexported fields
}
func NewDiscoverServer ¶ added in v1.1.15
func (*DiscoverServer) Start ¶ added in v1.1.15
func (server *DiscoverServer) Start() error
func (*DiscoverServer) Stop ¶ added in v1.1.15
func (server *DiscoverServer) Stop() error
type DurationJSON ¶ added in v1.8.49
func (DurationJSON) MarshalJSON ¶ added in v1.8.49
func (d DurationJSON) MarshalJSON() (b []byte, err error)
func (*DurationJSON) UnmarshalJSON ¶ added in v1.8.49
func (d *DurationJSON) UnmarshalJSON(b []byte) (err error)
type Element ¶ added in v1.4.43
type Element struct { Name string Text string PlainText bool Attrs *orderedmap.OrderedMap[string, string] Elements []*Element }
func NewElement ¶ added in v1.4.43
func (*Element) AddElement ¶ added in v1.4.43
func (*Element) AddElementName ¶ added in v1.6.16
func (*Element) IsTextOnly ¶ added in v1.4.43
func (*Element) RemoveAttr ¶ added in v1.4.43
func (*Element) RemoveElement ¶ added in v1.4.43
type EndpointConnection ¶ added in v1.5.16
type EndpointConnector ¶ added in v1.1.106
type EndpointConnector func() (EndpointConnection, error)
type ErrFileAlreadyExists ¶ added in v1.1.107
type ErrFileAlreadyExists struct {
FileName string
}
func (*ErrFileAlreadyExists) Error ¶ added in v1.1.107
func (e *ErrFileAlreadyExists) Error() string
type ErrFileIsEmpty ¶ added in v1.2.4
type ErrFileIsEmpty struct {
FileName string
}
func (*ErrFileIsEmpty) Error ¶ added in v1.2.4
func (e *ErrFileIsEmpty) Error() string
type ErrFileNotFound ¶
type ErrFileNotFound struct {
FileName string
}
func (*ErrFileNotFound) Error ¶
func (e *ErrFileNotFound) Error() string
type ErrSetTimeout ¶ added in v1.5.49
type ErrSetTimeout struct {
Mode string
}
func (*ErrSetTimeout) Error ¶ added in v1.5.49
func (e *ErrSetTimeout) Error() string
type ErrTimeout ¶ added in v1.2.5
func (*ErrTimeout) Error ¶ added in v1.2.5
func (e *ErrTimeout) Error() string
func (*ErrTimeout) Timeout ¶ added in v1.2.18
func (e *ErrTimeout) Timeout() bool
type ErrUnknownFlag ¶ added in v1.7.6
func (*ErrUnknownFlag) Error ¶ added in v1.7.6
func (e *ErrUnknownFlag) Error() string
type EventConfigurationReset ¶ added in v1.1.15
type EventConfigurationReset struct { }
type EventFlagsExternal ¶ added in v1.9.2
type EventFlagsParsed ¶ added in v1.1.21
type EventFlagsParsed struct { }
type EventFlagsSet ¶ added in v1.1.22
type EventFlagsSet struct { }
type EventManager ¶ added in v1.1.15
func NewEventManager ¶ added in v1.1.15
func NewEventManager() *EventManager
func (*EventManager) AddListener ¶ added in v1.5.52
func (eventManager *EventManager) AddListener(event interface{}, eventFunc EventFunc) *EventFunc
func (*EventManager) Emit ¶ added in v1.1.15
func (eventManager *EventManager) Emit(event interface{}, reverse bool)
func (*EventManager) RemoveListener ¶ added in v1.5.52
func (eventManager *EventManager) RemoveListener(eventFunc *EventFunc)
type EventShutdown ¶ added in v1.5.41
type EventShutdown struct { }
type EventTelemetry ¶ added in v1.9.4
type EventTelemetry struct { IsTelemetryRequest bool Ctx context.Context Title string Start time.Time End time.Time Err string Code int }
func (EventTelemetry) IsSuccess ¶ added in v1.9.6
func (et EventTelemetry) IsSuccess() bool
type FileEntry ¶ added in v1.5.56
type FileEntry struct {
// contains filtered or unexported fields
}
type FilePermission ¶ added in v1.1.15
type FuncFieldIterator ¶ added in v1.1.15
type GoRoutinesRegister ¶ added in v1.8.21
type GoRoutinesRegister struct {
// contains filtered or unexported fields
}
func NewGoRoutinesRegister ¶ added in v1.8.21
func NewGoRoutinesRegister() *GoRoutinesRegister
func (*GoRoutinesRegister) Deregister ¶ added in v1.8.21
func (tr *GoRoutinesRegister) Deregister()
func (*GoRoutinesRegister) IsRegistered ¶ added in v1.8.21
func (tr *GoRoutinesRegister) IsRegistered() bool
func (*GoRoutinesRegister) Register ¶ added in v1.8.21
func (tr *GoRoutinesRegister) Register()
type GzipResponseWriter ¶ added in v1.9.24
type GzipResponseWriter struct { io.Writer http.ResponseWriter }
type HTTPError ¶ added in v1.8.5
func (*HTTPError) Return ¶ added in v1.9.11
func (e *HTTPError) Return(w http.ResponseWriter)
type Jason ¶
type Jason struct {
// contains filtered or unexported fields
}
func (*Jason) ArrayCount ¶
func (*Jason) ElementByPath ¶ added in v1.8.21
type KeyValues ¶ added in v1.2.16
type KeyValues []KeyValue
func NewKeyValues ¶ added in v1.2.17
type LogEntry ¶ added in v1.8.18
type MimetypeExtension ¶ added in v1.1.15
type MimetypeExtension struct {
MimeType, Ext string
}
func DetectMimeType ¶
func DetectMimeType(filename string, buf []byte) (MimetypeExtension, error)
type ModuleInfo ¶ added in v1.1.15
type ModuleInfo struct { Disclosure string `json:"disclosure"` Software string `json:"software"` Version string `json:"version"` Requires []ModuleRequire `json:"requires"` }
func CreateModuleInfo ¶ added in v1.1.15
func CreateModuleInfo() (*ModuleInfo, error)
type ModuleRequire ¶ added in v1.5.65
type MultiValueFlag ¶ added in v1.1.19
type MultiValueFlag []string
func (*MultiValueFlag) Set ¶ added in v1.1.19
func (multiValueFLag *MultiValueFlag) Set(s string) error
func (*MultiValueFlag) String ¶ added in v1.1.19
func (multiValueFLag *MultiValueFlag) String() string
type NetworkClient ¶ added in v1.1.84
type NetworkClient struct {
// contains filtered or unexported fields
}
func NewNetworkClient ¶ added in v1.1.84
func NewNetworkClient(address string, tlsConfig *tls.Config) (*NetworkClient, error)
func (*NetworkClient) Connect ¶ added in v1.1.84
func (networkClient *NetworkClient) Connect() (*NetworkConnection, error)
func (*NetworkClient) Start ¶ added in v1.1.84
func (networkClient *NetworkClient) Start() error
func (*NetworkClient) Stop ¶ added in v1.1.84
func (networkClient *NetworkClient) Stop() error
type NetworkConnection ¶ added in v1.1.84
type NetworkConnection struct { EndpointConnection Socket net.Conn // contains filtered or unexported fields }
func (*NetworkConnection) Close ¶ added in v1.1.84
func (networkConnection *NetworkConnection) Close() error
func (*NetworkConnection) Read ¶ added in v1.1.84
func (networkConnection *NetworkConnection) Read(p []byte) (n int, err error)
func (*NetworkConnection) SetDeadline ¶ added in v1.5.16
func (networkConnection *NetworkConnection) SetDeadline(t time.Time) error
func (*NetworkConnection) SetReadDeadline ¶ added in v1.5.16
func (networkConnection *NetworkConnection) SetReadDeadline(t time.Time) error
func (*NetworkConnection) SetWriteDeadline ¶ added in v1.5.16
func (networkConnection *NetworkConnection) SetWriteDeadline(t time.Time) error
type NetworkServer ¶ added in v1.1.84
type NetworkServer struct { Endpoint // contains filtered or unexported fields }
func NewNetworkServer ¶ added in v1.1.84
func NewNetworkServer(address string, tlsConfig *tls.Config) (*NetworkServer, error)
func (*NetworkServer) Connect ¶ added in v1.1.84
func (networkServer *NetworkServer) Connect() (*NetworkConnection, error)
func (*NetworkServer) Serve ¶ added in v1.1.84
func (this *NetworkServer) Serve() ([]byte, error)
func (*NetworkServer) Start ¶ added in v1.1.84
func (networkServer *NetworkServer) Start() error
func (*NetworkServer) Stop ¶ added in v1.1.84
func (networkServer *NetworkServer) Stop() error
type Notice ¶ added in v1.1.15
type Notice struct {
// contains filtered or unexported fields
}
func AppLifecycle ¶ added in v1.1.15
func AppLifecycle() *Notice
type Quantum ¶
type Quantum struct {
// contains filtered or unexported fields
}
func NewQuantum ¶
func NewQuantum() *Quantum
func ParseQuantum ¶ added in v1.1.27
func (*Quantum) AddQuantum ¶ added in v1.1.27
func (*Quantum) IsIncluded ¶ added in v1.1.15
func (*Quantum) RemoveQuantum ¶ added in v1.1.27
func (*Quantum) RemoveRange ¶
type RandomReader ¶ added in v1.1.21
type RandomReader struct {
// contains filtered or unexported fields
}
func NewRandomReader ¶ added in v1.1.21
func NewRandomReader() *RandomReader
type ReentrantMutex ¶ added in v1.6.0
func NewReentrantMutex ¶ added in v1.8.21
func NewReentrantMutex() ReentrantMutex
func (*ReentrantMutex) Lock ¶ added in v1.6.0
func (rm *ReentrantMutex) Lock()
func (*ReentrantMutex) Unlock ¶ added in v1.6.0
func (rm *ReentrantMutex) Unlock()
func (*ReentrantMutex) UnlockNow ¶ added in v1.6.0
func (rm *ReentrantMutex) UnlockNow()
type RestURL ¶ added in v1.8.6
type RestURL struct { sync.Mutex Description string `json:"description,omitempty"` Method string `json:"method,omitempty"` Endpoint string `json:"endpoint,omitempty"` Consumes []string `json:"consumes,omitempty"` Produces []string `json:"produces,omitempty"` Success []int `json:"success,omitempty"` Failure []int `json:"failure,omitempty"` Params []RestURLField `json:"params,omitempty"` Stats RestURLStats `json:"stats,omitempty"` // contains filtered or unexported fields }
func NewRestURL ¶ added in v1.8.6
func (*RestURL) ParamValue ¶ added in v1.9.21
func (*RestURL) ParamValues ¶ added in v1.9.21
func (*RestURL) Statistics ¶ added in v1.8.60
func (restURL *RestURL) Statistics() RestURLStats
func (*RestURL) SwaggerInfo ¶ added in v1.8.20
func (*RestURL) UpdateStats ¶ added in v1.8.49
type RestURLField ¶ added in v1.8.20
type RestURLStats ¶ added in v1.8.49
type RestURLStats struct { Count int `json:"count,omitempty"` SumDuration DurationJSON `json:"sumDuration,omitempty"` MinDuration DurationJSON `json:"minDuration,omitempty"` MaxDuration DurationJSON `json:"maxDuration,omitempty"` }
type RuntimeInfo ¶
func GetRuntimeInfo ¶ added in v1.1.15
func GetRuntimeInfo(pos int) RuntimeInfo
func (RuntimeInfo) Filename ¶ added in v1.1.15
func (r RuntimeInfo) Filename() string
func (RuntimeInfo) String ¶ added in v1.1.15
func (r RuntimeInfo) String() string
type StatusResponseWriter ¶ added in v1.9.6
type StatusResponseWriter struct { http.ResponseWriter // contains filtered or unexported fields }
func NewStatusResponseWriter ¶ added in v1.9.6
func NewStatusResponseWriter(w http.ResponseWriter) *StatusResponseWriter
func (*StatusResponseWriter) WriteHeader ¶ added in v1.9.6
func (w *StatusResponseWriter) WriteHeader(code int)
type StringTable ¶ added in v1.3.21
func NewStringTable ¶ added in v1.3.21
func NewStringTable() *StringTable
func (*StringTable) AddCol ¶ added in v1.3.21
func (st *StringTable) AddCol(txt string)
func (*StringTable) AddCols ¶ added in v1.3.21
func (st *StringTable) AddCols(txts ...string)
func (*StringTable) AddRow ¶ added in v1.3.21
func (st *StringTable) AddRow()
func (*StringTable) CSV ¶ added in v1.9.11
func (st *StringTable) CSV() string
func (*StringTable) CSVToWriter ¶ added in v1.9.33
func (st *StringTable) CSVToWriter(w io.Writer) error
func (*StringTable) Clear ¶ added in v1.3.21
func (st *StringTable) Clear()
func (*StringTable) Debug ¶ added in v1.8.14
func (st *StringTable) Debug()
func (*StringTable) HTML ¶ added in v1.9.33
func (st *StringTable) HTML() string
func (*StringTable) HTMLToWriter ¶ added in v1.9.33
func (st *StringTable) HTMLToWriter(w io.Writer) error
func (*StringTable) InsertCols ¶ added in v1.9.10
func (st *StringTable) InsertCols(row int, txts ...string)
func (*StringTable) JSON ¶ added in v1.9.10
func (st *StringTable) JSON() string
func (*StringTable) JSONToWriter ¶ added in v1.9.33
func (st *StringTable) JSONToWriter(w io.Writer) error
func (*StringTable) Markdown ¶ added in v1.4.27
func (st *StringTable) Markdown() string
func (*StringTable) MarkdownToWriter ¶ added in v1.9.33
func (st *StringTable) MarkdownToWriter(w io.Writer) error
func (*StringTable) Rows ¶ added in v1.6.29
func (st *StringTable) Rows() int
func (*StringTable) Table ¶ added in v1.9.12
func (st *StringTable) Table() string
func (*StringTable) TableToWriter ¶ added in v1.9.33
func (st *StringTable) TableToWriter(w io.Writer) error
type SwapBuffer ¶ added in v1.9.33
type SwapBuffer struct { io.ReadWriteCloser // contains filtered or unexported fields }
func NewSwapBuffer ¶ added in v1.9.33
func NewSwapBuffer() *SwapBuffer
func (*SwapBuffer) Close ¶ added in v1.9.33
func (sb *SwapBuffer) Close() error
func (*SwapBuffer) CompressedLen ¶ added in v1.9.34
func (sb *SwapBuffer) CompressedLen() (int, error)
func (*SwapBuffer) Len ¶ added in v1.9.33
func (sb *SwapBuffer) Len() int
func (*SwapBuffer) OnDisk ¶ added in v1.9.33
func (sb *SwapBuffer) OnDisk() bool
func (*SwapBuffer) WriteString ¶ added in v1.9.33
func (sb *SwapBuffer) WriteString(s string) (int, error)
type Sync ¶ added in v1.6.6
type Sync[T any] struct { ReentrantMutex Ref T // contains filtered or unexported fields }
func (*Sync[T]) RunSynchronized ¶ added in v1.8.96
func (sync *Sync[T]) RunSynchronized(fn func(T))
type SystemInfo ¶ added in v1.1.15
type SystemInfo struct { KernelName string KernelVersion string KernelRelease string Platform string MemTotal string MemFree string }
func GetSystemInfo ¶ added in v1.1.15
func GetSystemInfo() (*SystemInfo, error)
type TTY ¶ added in v1.1.84
type TTY struct {
// contains filtered or unexported fields
}
func (*TTY) Connect ¶ added in v1.1.84
func (tty *TTY) Connect() (EndpointConnection, error)
type TTYConnection ¶ added in v1.1.84
type TTYConnection struct { EndpointConnection // contains filtered or unexported fields }
func (*TTYConnection) Close ¶ added in v1.1.84
func (ttyConnection *TTYConnection) Close() error
func (*TTYConnection) Read ¶ added in v1.1.84
func (ttyConnection *TTYConnection) Read(p []byte) (n int, err error)
func (*TTYConnection) SetDeadline ¶ added in v1.5.16
func (ttyConnection *TTYConnection) SetDeadline(t time.Time) error
func (*TTYConnection) SetReadDeadline ¶ added in v1.5.16
func (ttyConnection *TTYConnection) SetReadDeadline(t time.Time) error
func (*TTYConnection) SetWriteDeadline ¶ added in v1.5.16
func (ttyConnection *TTYConnection) SetWriteDeadline(t time.Time) error
type TimeoutReader ¶ added in v1.1.61
func NewTimeoutReader ¶ added in v1.1.61
type TimeoutRegister ¶ added in v1.5.19
type TimeoutRegister[T comparable] struct { // contains filtered or unexported fields }
func NewTimeoutRegister ¶ added in v1.5.19
func NewTimeoutRegister[T comparable](timeout time.Duration) *TimeoutRegister[T]
func (*TimeoutRegister[T]) Close ¶ added in v1.6.6
func (tr *TimeoutRegister[T]) Close()
func (*TimeoutRegister[T]) IsRegistered ¶ added in v1.5.20
func (tr *TimeoutRegister[T]) IsRegistered(item T) bool
func (*TimeoutRegister[T]) Register ¶ added in v1.5.19
func (tr *TimeoutRegister[T]) Register(item T)
type TimeoutWriter ¶ added in v1.1.104
func NewTimeoutWriter ¶ added in v1.1.104
type URI ¶ added in v1.4.13
type Webpage ¶ added in v1.1.15
type Webpage struct { HtmlRoot *etree.Element HtmlHead *etree.Element HtmlTitle *etree.Element HtmlMenu *etree.Element HtmlBody *etree.Element HtmlScrollContent *etree.Element HtmlContent *etree.Element // contains filtered or unexported fields }
type ZeroReader ¶ added in v1.1.21
type ZeroReader struct { }
func NewZeroReader ¶ added in v1.1.21
func NewZeroReader() *ZeroReader
Source Files ¶
- aes.go
- app.go
- autocloser.go
- common.go
- concurrency.go
- configuration.go
- datetime.go
- deepcopy.go
- discover.go
- echo.go
- endpoint.go
- events.go
- filewalker.go
- flags.go
- govars.go
- html.go
- http.go
- io.go
- jason.go
- keyvalues.go
- knownerrors.go
- logger.go
- logger_file.go
- logger_memory.go
- mimetype.go
- moduleinfo.go
- multivalueflag.go
- network.go
- notice.go
- quantum.go
- reentrant.go
- resource.go
- resturl.go
- runtimeinfo.go
- sizedreader.go
- slices.go
- stringtable.go
- swapbuffer.go
- sync.go
- tasks.go
- telemetry.go
- throttledreader.go
- throttledwriter.go
- tls.go
- translate.go
- types.go
- uri.go
- watchdog.go
- webpage.go
- zip.go