Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/One-com/gone
/ functions
Functions
816 in github.com/One-com/gone
⨍
Functions
816
◇
Types & classes
173
↓ 1 callers
Method
AddConfigFrom
(format string, in io.Reader)
hugorm/hugorm.go:312
↓ 1 callers
Method
AdhocCount
-------------------------------------------------------------- AdhocCount creates an ad-hoc counter metric event. If flush is true, the sink will be i
metric/client.go:299
↓ 1 callers
Method
AdhocSample
AdhocSample creates an ad-hoc histogram metric event. If flush is true, the sink will be instructed to flush data immediately
metric/client.go:318
↓ 1 callers
Method
AdhocTime
AdhocTime creates an ad-hoc timer metric event. If flush is true, the sink will be instructed to flush data immediately
metric/client.go:311
↓ 1 callers
Function
AllowEmptyEnv
AllowEmptyEnv tells Hugorm to consider set, but empty environment variables as valid values instead of falling back. For backward compatibility reason
hugorm/env.go:68
↓ 1 callers
Method
AllowEmptyEnv
(allowEmptyEnv bool)
hugorm/env.go:70
↓ 1 callers
Method
ApplyHandlerOptions
ApplyHandlerOptions clones the current Handles and tries to apply the supplied HandlerOptions to the clone - then swaps in the clone atomically to not
log/gonelog.go:154
↓ 1 callers
Method
BindEnv
(input ...string)
hugorm/env.go:28
↓ 1 callers
Method
CRIT
CRIT - Log a message and optional KV values at syslog CRIT level.
log/api.go:87
↓ 1 callers
Method
CRITok
CRITok will return whether the logger generates events at this level, and a function which will do the logging when called.
log/api.go:59
↓ 1 callers
Method
CanRetry
()
http/vtransport/body.go:38
↓ 1 callers
Method
CloseIfNeeded
()
http/vtransport/body.go:42
↓ 1 callers
Method
ConnectionsKilled
ConnectionsKilled returns the number of HTTP connections killed by the server during last shutdown.
http/graceful/graceful.go:69
↓ 1 callers
Method
DEBUG
DEBUG - Log a message and optional KV values at syslog DEBUG level.
log/api.go:127
↓ 1 callers
Method
Debug
()
hugorm/hugorm.go:459
↓ 1 callers
Method
DefaultLevel
DefaultLevel returns the current log level of Print*() methods. Deprecated, use PrintLevel()
log/gonelog.go:320
↓ 1 callers
Method
Delete
(key string)
http/vtransport/upstream/rr/rrupstream.go:43
↓ 1 callers
Method
Description
()
daemon/server.go:43
↓ 1 callers
Method
Exhausted
Exhausted should return how many times retries have led to all relevant backend servers being tried.
http/vtransport/vtransport.go:23
↓ 1 callers
Method
Fatal
Fatal compatible with the standard lib logger
log/compat.go:24
↓ 1 callers
Method
File
()
sd/file.go:31
↓ 1 callers
Method
FileInfo
FileInfo returns the file and line number of a log event.
log/event.go:109
↓ 1 callers
Function
FilterHandler
--- FilterHandler lets a function evaluate whether to discard the Event or pass it on to a next Handler
log/handler.go:39
↓ 1 callers
Function
FlagsOpt
FlagsOpt - Standard Formatter Option to set flags
log/format.go:184
↓ 1 callers
Method
Float64
Float64 returns the 64-bit value as a float64
metric/num64/numeric64.go:63
↓ 1 callers
Method
Flush
()
metric/sink/statsd/statsd.go:145
↓ 1 callers
Method
FlushReading
Flush sends the current set members to the Sink and resets the Set to empty.
metric/set.go:28
↓ 1 callers
Method
FlushReading
FlushReading flushes the accumulated counter value to the supplied Sink
metric/counter.go:27
↓ 1 callers
Method
INFO
INFO - Log a message and optional KV values at syslog INFO level.
log/api.go:119
↓ 1 callers
Method
INFOok
INFOok will return whether the logger generates events at this level, and a function which will do the logging when called.
log/api.go:71
↓ 1 callers
Function
IOActivityTimeout
IOActivityTimeout lets you toggle whether IOActivityTimeout is enabled for a net.Conn. It will work even if the net.Conn is wrapped as a *tls.Conn, bu
netutil/reaper/conn.go:85
↓ 1 callers
Function
InheritNamedPacketConn
InheritNamedPacketConn returns a net.Listener and its systemd name passing the tests (and name criteria) provided. If there's no inherited FD which ca
sd/net.go:98
↓ 1 callers
Method
Invoke
Invoke invokes the command being passed a context an io.Writer to the socket the command name used to invoke it and it's arguments. Invoke has the opt
daemon/ctrl/ctrl.go:37
↓ 1 callers
Function
IsSocketUnix
IsSocketUnix is like libsystemd sd-daemon sd_is_socket_unix() path is a pointer to allow for "don't care" option by passing nil pointer. The empty str
sd/filetests.go:226
↓ 1 callers
Function
IsUNIXListener
IsUNIXListener tests if the *os.File is a unix(7) socket listening on the given address. Setting addr == nil, means "any" AF_UNIX address. Including l
sd/filetests.go:259
↓ 1 callers
Method
Listen
Listen implement the gone/daemon/srv.Listener interface and pick an already open listener FD or create one.
daemon/ctrl/ctrl.go:133
↓ 1 callers
Function
ListenUDP
ListenUDP returns a normal *net.UDPConn. It will create a new socket if there's no appropriate inherited file descriptor listening. The returned liste
sd/net.go:299
↓ 1 callers
Function
ListenUnix
ListenUnix is like net.ListenUnix and will return a normal *net.UnixListener. It will create a new socket if there's no appropriate inherited file des
sd/net.go:255
↓ 1 callers
Function
ListenUnixgram
ListenUnixgram returns a normal *net.UnixConn. It will create a new socket if there's no appropriate inherited file descriptor listening. The returned
sd/net.go:204
↓ 1 callers
Method
LoadConfig
()
hugorm/hugorm.go:292
↓ 1 callers
Method
LogValues
()
log/kv.go:18
↓ 1 callers
Method
Mark
Mark - send a ad-hoc zero histogram event immediately to allow the server side to indicate a unique event happened. This equivalent to calling Sample(
metric/client.go:330
↓ 1 callers
Method
NOTICEok
NOTICEok will return whether the logger generates events at this level, and a function which will do the logging when called.
log/api.go:68
↓ 1 callers
Function
NamedListenUDP
NamedListenUDP is like ListenUDP, but will require any used inherited file descriptor to have the given systemd socket name. The returned listener wil
sd/net.go:306
↓ 1 callers
Function
NamedListenUnix
NamedListenUnix is like ListenUnix, but will require any used inherited file descriptor to have the given systemd socket name The returned listener wi
sd/net.go:262
↓ 1 callers
Function
NamedListenUnixgram
NamedListenUnixgram is like ListenUnixgram, but will require any used inherited file descriptor to have the given systemd socket name The returned con
sd/net.go:211
↓ 1 callers
Function
New
New returns an initialized Viper instance.
hugorm/hugorm.go:197
↓ 1 callers
Function
NewClient
NewClient returns you a client handle directly if you do not want to use the global default client. This creates a new metric client with a factory ob
metric/client.go:53
↓ 1 callers
Function
NewDynamicLogHandler
NewDynamicLogHandler wraps around a provided handler and returns a DynamicLogHandler capable of turning accesslog on/off dynamically. If provided an A
http/handlers/accesslog/loghandler.go:54
↓ 1 callers
Function
NewGaugeUint64
NewGaugeUint64 returns a standard gauge.
metric/gauge.go:38
↓ 1 callers
Function
NewSet
NewSet creates a new named Set object
metric/set.go:21
↓ 1 callers
Method
NextTarget
NextTarget is called by the VirtualTransport to advance the context to the next backend server. The first call to NextTarget will be done with a nil c
http/vtransport/vtransport.go:34
↓ 1 callers
Function
Notify
Notify lets you control the message sent to the nofify socket more directly. flags control whether to unset the ENV and/or to include active file desc
sd/notify.go:114
↓ 1 callers
Function
OutputOpt
OutputOpt - Standard Formatter option so set Output
log/format.go:202
↓ 1 callers
Function
PrefixOpt
PrefixOpt - Standard Formatter option to set Prefix
log/format.go:193
↓ 1 callers
Method
Print
Print compatible with the standard lib logger
log/compat.go:72
↓ 1 callers
Function
Printf
Printf - Compatible with the standard library
log/root.go:271
↓ 1 callers
Function
Println
Println - Compatible with the standard library
log/root.go:280
↓ 1 callers
Method
RegisterCounter
-------------------------------------------------------------- RegisterCounter is equivalent to Register(NewCounter(), opts) with the default Client.
metric/client.go:232
↓ 1 callers
Method
RegisterHistogram
RegisterHistogram is equivalent to Register(NewHistogram(), opts) with the default Client.
metric/client.go:253
↓ 1 callers
Method
RegisterLogHandler
(name string, lh accesslog.DynamicLogHandler)
daemon/ctrl/example/accesslog.go:28
↓ 1 callers
Method
RegisterTimer
RegisterTimer is equivalent to Register(NewTimer(), opts) with the default Client.
metric/client.go:246
↓ 1 callers
Function
ReplaceProcessEnv
ReplaceProcessEnv - like ReplaceProcess, but allows extra environment variables to be passed into the new instance
sd/process.go:102
↓ 1 callers
Method
Serve
Serve implement the gone/daemon/srv.Server interface. Shutdown is already implemented by the graceful server.
http/gonesrv/server.go:51
↓ 1 callers
Method
Serve
Serve will start serving until the context is canceled at which point it will stop generating new activity and exit.
daemon/server.go:17
↓ 1 callers
Method
Serve
Serve starts the supplied "servers" and waits until signaled to stopped via Shutdown() call. Once the servers are successfully started the callback wi
daemon/srv/server.go:99
↓ 1 callers
Method
SetDefault
(key string, value interface{})
hugorm/hugorm.go:260
↓ 1 callers
Function
SetEnvPrefix
SetEnvPrefix defines a prefix that ENVIRONMENT variables will use. E.g. if your prefix is "spf", the env registry will look for env variables that sta
hugorm/env.go:12
↓ 1 callers
Method
SetEnvPrefix
(in string)
hugorm/env.go:14
↓ 1 callers
Function
SetFlags
SetFlags - Compatible with the standard library
log/root.go:180
↓ 1 callers
Function
SetPrefix
SetPrefix - Compatible with the standard library
log/root.go:185
↓ 1 callers
Method
SetValue
(val string)
daemon/ctrl/example/server.go:46
↓ 1 callers
Method
ShortUsage
ShotUsage provides a short description of command argument syntax and possibly a comment. to be printed a listing of commands.
daemon/ctrl/ctrl.go:25
↓ 1 callers
Method
Shutdown
Shutdown signales the server asynchronously to start shutdown process It only has effect the first time it's called.
http/graceful/graceful.go:203
↓ 1 callers
Method
Shutdown
Shutdown will wait for all activity to stop until the context is canceled at which point it will exit with an error if activity has not stopped.
daemon/server.go:36
↓ 1 callers
Method
Shutdown
Shutdown implements the srv.Server interface for the control socket server.
daemon/ctrl/ctrl.go:244
↓ 1 callers
Method
Shutdown
Shutdown send an async signal to the server to exit Serve() by calling Shutdown in the individual servers
daemon/srv/server.go:157
↓ 1 callers
Method
ShutdownOK
ShutdownOK stops the server from accepting new requets and begins shutting down. It returns true if this call ended up being the one triggering a shut
http/graceful/graceful.go:192
↓ 1 callers
Method
Size
()
http/rrwriter/responselogger.go:44
↓ 1 callers
Function
StartProcess
StartProcess starts a new process passing it the open files. It starts a new process using the same environment and arguments as when it was originall
sd/process.go:30
↓ 1 callers
Method
Status
()
http/rrwriter/responselogger.go:43
↓ 1 callers
Method
Target
Target should return the URL scheme and the host for the current backend target
http/vtransport/vtransport.go:18
↓ 1 callers
Method
Uint64
Uint64 returns the 64-bit values as a uint64
metric/num64/numeric64.go:43
↓ 1 callers
Method
UnlockedSink
()
metric/sink.go:30
↓ 1 callers
Method
Update
Update notified the VirtualUpstream of the result from sending the HTTP request to the current Target host.
http/vtransport/vtransport.go:37
↓ 1 callers
Method
Usage
Usage let the command provide it's own full documentation, being passed the command name the command is registered under.
daemon/ctrl/ctrl.go:29
↓ 1 callers
Method
Value
Value returns the current gauge value
metric/gauge.go:99
↓ 1 callers
Method
Values
()
hugorm/hugorm.go:74
↓ 1 callers
Method
WARNok
WARNok will return whether the logger generates events at this level, and a function which will do the logging when called.
log/api.go:65
↓ 1 callers
Method
appendNumeric64
(v num64.Numeric64)
metric/sink/statsd/statsd.go:196
↓ 1 callers
Function
appendQuoted
(buf []byte, s string)
http/handlers/accesslog/accesslog.go:50
↓ 1 callers
Method
apply
(h *Hugorm)
hugorm/hugorm.go:161
↓ 1 callers
Method
cleanup
Cleanup closes all inactive files
sd/file.go:124
↓ 1 callers
Function
clientAbuse
(t *testing.T)
http/vtransport/vtransport_test.go:75
↓ 1 callers
Method
close
close the file descriptor, if it's an owned UNIX domain socket unlink the socket file
sd/file.go:43
↓ 1 callers
Method
closeConn
Let the pool know that we are closing a connetion. To keep track of open connections.
netutil/pool/channel.go:95
↓ 1 callers
Method
closeDoneChanLocked
()
daemon/ctrl/ctrl.go:114
↓ 1 callers
Method
consolidateConfigs
consolidateConfigs takes all the config sources in priority (flags, env, sources..) and computes the union of keys, overwriting earlier keys with late
hugorm/hugorm.go:417
↓ 1 callers
Function
decode
A wrapper around mapstructure.Decode that mimics the WeakDecode functionality
hugorm/unmarshal.go:53
↓ 1 callers
Function
deepAutovivificate
deepAutovivificate scans deep maps, following the key indexes listed in the sequence "path". The last value is expected to be another map, and is retu
hugorm/util.go:185
← previous
next →
201–300 of 816, ranked by callers