MCPcopy Create free account

hub / github.com/One-com/gone / functions

Functions816 in github.com/One-com/gone

↓ 1 callersMethodAddConfigFrom
(format string, in io.Reader)
hugorm/hugorm.go:312
↓ 1 callersMethodAdhocCount
-------------------------------------------------------------- AdhocCount creates an ad-hoc counter metric event. If flush is true, the sink will be i
metric/client.go:299
↓ 1 callersMethodAdhocSample
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 callersMethodAdhocTime
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 callersFunctionAllowEmptyEnv
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 callersMethodAllowEmptyEnv
(allowEmptyEnv bool)
hugorm/env.go:70
↓ 1 callersMethodApplyHandlerOptions
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 callersMethodBindEnv
(input ...string)
hugorm/env.go:28
↓ 1 callersMethodCRIT
CRIT - Log a message and optional KV values at syslog CRIT level.
log/api.go:87
↓ 1 callersMethodCRITok
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 callersMethodCanRetry
()
http/vtransport/body.go:38
↓ 1 callersMethodCloseIfNeeded
()
http/vtransport/body.go:42
↓ 1 callersMethodConnectionsKilled
ConnectionsKilled returns the number of HTTP connections killed by the server during last shutdown.
http/graceful/graceful.go:69
↓ 1 callersMethodDEBUG
DEBUG - Log a message and optional KV values at syslog DEBUG level.
log/api.go:127
↓ 1 callersMethodDebug
()
hugorm/hugorm.go:459
↓ 1 callersMethodDefaultLevel
DefaultLevel returns the current log level of Print*() methods. Deprecated, use PrintLevel()
log/gonelog.go:320
↓ 1 callersMethodDelete
(key string)
http/vtransport/upstream/rr/rrupstream.go:43
↓ 1 callersMethodDescription
()
daemon/server.go:43
↓ 1 callersMethodExhausted
Exhausted should return how many times retries have led to all relevant backend servers being tried.
http/vtransport/vtransport.go:23
↓ 1 callersMethodFatal
Fatal compatible with the standard lib logger
log/compat.go:24
↓ 1 callersMethodFile
()
sd/file.go:31
↓ 1 callersMethodFileInfo
FileInfo returns the file and line number of a log event.
log/event.go:109
↓ 1 callersFunctionFilterHandler
--- FilterHandler lets a function evaluate whether to discard the Event or pass it on to a next Handler
log/handler.go:39
↓ 1 callersFunctionFlagsOpt
FlagsOpt - Standard Formatter Option to set flags
log/format.go:184
↓ 1 callersMethodFloat64
Float64 returns the 64-bit value as a float64
metric/num64/numeric64.go:63
↓ 1 callersMethodFlush
()
metric/sink/statsd/statsd.go:145
↓ 1 callersMethodFlushReading
Flush sends the current set members to the Sink and resets the Set to empty.
metric/set.go:28
↓ 1 callersMethodFlushReading
FlushReading flushes the accumulated counter value to the supplied Sink
metric/counter.go:27
↓ 1 callersMethodINFO
INFO - Log a message and optional KV values at syslog INFO level.
log/api.go:119
↓ 1 callersMethodINFOok
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 callersFunctionIOActivityTimeout
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 callersFunctionInheritNamedPacketConn
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 callersMethodInvoke
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 callersFunctionIsSocketUnix
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 callersFunctionIsUNIXListener
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 callersMethodListen
Listen implement the gone/daemon/srv.Listener interface and pick an already open listener FD or create one.
daemon/ctrl/ctrl.go:133
↓ 1 callersFunctionListenUDP
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 callersFunctionListenUnix
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 callersFunctionListenUnixgram
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 callersMethodLoadConfig
()
hugorm/hugorm.go:292
↓ 1 callersMethodLogValues
()
log/kv.go:18
↓ 1 callersMethodMark
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 callersMethodNOTICEok
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 callersFunctionNamedListenUDP
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 callersFunctionNamedListenUnix
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 callersFunctionNamedListenUnixgram
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 callersFunctionNew
New returns an initialized Viper instance.
hugorm/hugorm.go:197
↓ 1 callersFunctionNewClient
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 callersFunctionNewDynamicLogHandler
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 callersFunctionNewGaugeUint64
NewGaugeUint64 returns a standard gauge.
metric/gauge.go:38
↓ 1 callersFunctionNewSet
NewSet creates a new named Set object
metric/set.go:21
↓ 1 callersMethodNextTarget
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 callersFunctionNotify
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 callersFunctionOutputOpt
OutputOpt - Standard Formatter option so set Output
log/format.go:202
↓ 1 callersFunctionPrefixOpt
PrefixOpt - Standard Formatter option to set Prefix
log/format.go:193
↓ 1 callersMethodPrint
Print compatible with the standard lib logger
log/compat.go:72
↓ 1 callersFunctionPrintf
Printf - Compatible with the standard library
log/root.go:271
↓ 1 callersFunctionPrintln
Println - Compatible with the standard library
log/root.go:280
↓ 1 callersMethodRegisterCounter
-------------------------------------------------------------- RegisterCounter is equivalent to Register(NewCounter(), opts) with the default Client.
metric/client.go:232
↓ 1 callersMethodRegisterHistogram
RegisterHistogram is equivalent to Register(NewHistogram(), opts) with the default Client.
metric/client.go:253
↓ 1 callersMethodRegisterLogHandler
(name string, lh accesslog.DynamicLogHandler)
daemon/ctrl/example/accesslog.go:28
↓ 1 callersMethodRegisterTimer
RegisterTimer is equivalent to Register(NewTimer(), opts) with the default Client.
metric/client.go:246
↓ 1 callersFunctionReplaceProcessEnv
ReplaceProcessEnv - like ReplaceProcess, but allows extra environment variables to be passed into the new instance
sd/process.go:102
↓ 1 callersMethodServe
Serve implement the gone/daemon/srv.Server interface. Shutdown is already implemented by the graceful server.
http/gonesrv/server.go:51
↓ 1 callersMethodServe
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 callersMethodServe
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 callersMethodSetDefault
(key string, value interface{})
hugorm/hugorm.go:260
↓ 1 callersFunctionSetEnvPrefix
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 callersMethodSetEnvPrefix
(in string)
hugorm/env.go:14
↓ 1 callersFunctionSetFlags
SetFlags - Compatible with the standard library
log/root.go:180
↓ 1 callersFunctionSetPrefix
SetPrefix - Compatible with the standard library
log/root.go:185
↓ 1 callersMethodSetValue
(val string)
daemon/ctrl/example/server.go:46
↓ 1 callersMethodShortUsage
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 callersMethodShutdown
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 callersMethodShutdown
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 callersMethodShutdown
Shutdown implements the srv.Server interface for the control socket server.
daemon/ctrl/ctrl.go:244
↓ 1 callersMethodShutdown
Shutdown send an async signal to the server to exit Serve() by calling Shutdown in the individual servers
daemon/srv/server.go:157
↓ 1 callersMethodShutdownOK
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 callersMethodSize
()
http/rrwriter/responselogger.go:44
↓ 1 callersFunctionStartProcess
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 callersMethodStatus
()
http/rrwriter/responselogger.go:43
↓ 1 callersMethodTarget
Target should return the URL scheme and the host for the current backend target
http/vtransport/vtransport.go:18
↓ 1 callersMethodUint64
Uint64 returns the 64-bit values as a uint64
metric/num64/numeric64.go:43
↓ 1 callersMethodUnlockedSink
()
metric/sink.go:30
↓ 1 callersMethodUpdate
Update notified the VirtualUpstream of the result from sending the HTTP request to the current Target host.
http/vtransport/vtransport.go:37
↓ 1 callersMethodUsage
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 callersMethodValue
Value returns the current gauge value
metric/gauge.go:99
↓ 1 callersMethodValues
()
hugorm/hugorm.go:74
↓ 1 callersMethodWARNok
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 callersMethodappendNumeric64
(v num64.Numeric64)
metric/sink/statsd/statsd.go:196
↓ 1 callersFunctionappendQuoted
(buf []byte, s string)
http/handlers/accesslog/accesslog.go:50
↓ 1 callersMethodapply
(h *Hugorm)
hugorm/hugorm.go:161
↓ 1 callersMethodcleanup
Cleanup closes all inactive files
sd/file.go:124
↓ 1 callersFunctionclientAbuse
(t *testing.T)
http/vtransport/vtransport_test.go:75
↓ 1 callersMethodclose
close the file descriptor, if it's an owned UNIX domain socket unlink the socket file
sd/file.go:43
↓ 1 callersMethodcloseConn
Let the pool know that we are closing a connetion. To keep track of open connections.
netutil/pool/channel.go:95
↓ 1 callersMethodcloseDoneChanLocked
()
daemon/ctrl/ctrl.go:114
↓ 1 callersMethodconsolidateConfigs
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 callersFunctiondecode
A wrapper around mapstructure.Decode that mimics the WeakDecode functionality
hugorm/unmarshal.go:53
↓ 1 callersFunctiondeepAutovivificate
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
← previousnext →201–300 of 816, ranked by callers