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
↓ 58 callers
Method
Fatalf
(format string, v ...interface{})
log/interfaces.go:26
↓ 45 callers
Method
Close
Close closes the pool and all its connections. After Close() the pool is no longer usable.
netutil/pool/pool.go:25
↓ 44 callers
Method
Fatal
(v ...interface{})
log/interfaces.go:25
↓ 42 callers
Method
Error
()
jconf/config.go:18
↓ 36 callers
Method
Does
Does returns whether the Logger would generate an event at this level? This can be used for optimal performance logging
log/gonelog.go:282
↓ 36 callers
Method
Println
(v ...interface{})
log/interfaces.go:35
↓ 35 callers
Method
log
Unconditionally logs an event Some logging goes through here to keep the same number of stackframes for all calls to let newEvent() know how to do cod
log/gonelog.go:112
↓ 31 callers
Method
String
()
hugorm/hugorm_test.go:266
↓ 25 callers
Function
Get
Get can retrieve any value given the key to use. Get is case-insensitive for a key. Get has the behavior of returning the value associated with the fi
hugorm/hugorm.go:447
↓ 25 callers
Function
Log
Log is used to log internal events if a LoggerFunc is set with SetLogger() You can call this your self if you need to. It's go-routine safe if the pro
daemon/log.go:39
↓ 24 callers
Function
_availablefds
()
sd/file.go:103
↓ 20 callers
Method
Add
Add a member to the set.
metric/set.go:43
↓ 18 callers
Method
Fd
()
log/term/term.go:12
↓ 17 callers
Method
Wait
()
daemon/srv/server.go:65
↓ 17 callers
Function
itoa
*********************************************************************/ Cheap integer to fixed-width decimal ASCII. Give a negative width to avoid zer
log/format.go:222
↓ 16 callers
Method
Log
(e Event)
log/handler.go:21
↓ 14 callers
Method
Flush
Flush flushes the record values from the program internal Sink buffers.
metric/sink.go:18
↓ 13 callers
Method
Printf
(format string, v ...interface{})
log/interfaces.go:34
↓ 13 callers
Method
RecordNumeric64
RecordNumeric64 is a performance optimation for recording 64-bit values using the num64 internal sub-package to create a "union" type for int/uint/flo
metric/sink.go:15
↓ 12 callers
Function
_activefds
()
sd/file.go:95
↓ 12 callers
Method
newEvent
The primary event constructor. Creates a new log event. The event is timestamped if needed Code info file/line is recorded if needed KV data is gather
log/event.go:117
↓ 11 callers
Function
BindEnv
BindEnv binds a Hugorm key to a ENV variable. ENV variables are case sensitive. If only a key is provided, it will use the env key matching the key, u
hugorm/env.go:26
↓ 11 callers
Method
Close
Close() will force all activity to stop.
daemon/server.go:38
↓ 11 callers
Method
Marshal
(out io.Writer)
hugorm/hugorm.go:347
↓ 11 callers
Method
Prefix
()
log/interfaces.go:48
↓ 11 callers
Method
Register
Register a Meter with the client, finding a flusher with the appropriate interval, if possible, else create a new flusher.
metric/client.go:180
↓ 10 callers
Function
Reset
Reset is intended for testing, will reset all to default settings. In the public interface for the viper package so applications can use it in their t
hugorm/hugorm.go:66
↓ 10 callers
Method
Set
(key string, value int, ttl time.Duration)
http/vtransport/upstream/rr/rrupstream.go:40
↓ 10 callers
Method
Stop
Stop a Client from flushing data. If any autoFlusher meters are still in use they will still flush when overflown.
metric/client.go:148
↓ 10 callers
Function
normalize
Take a vararg list of arguments and make it a slice if it isn't already.
log/kv.go:24
↓ 9 callers
Method
DoTime
DoTime tries to turn on or off timestamping. It can fail if some other go-routine simultaneous is manipulating the config. If the generated log-events
log/gonelog.go:192
↓ 9 callers
Method
Output
(calldepth int, s string)
log/interfaces.go:67
↓ 9 callers
Function
Reset
Reset does a Cleanup() and makes the current Exported set of file descriptors available again as if they were inherited.
sd/file.go:142
↓ 9 callers
Function
isSocketInternal
-------------------------------------------------------------------- Generic function to test whether an fd is of a specific type and whether it's lis
sd/filetests.go:43
↓ 8 callers
Method
Listen
()
daemon/srv/server.go:50
↓ 8 callers
Method
Load
()
hugorm/hugorm.go:80
↓ 7 callers
Method
Get
Get must return the value set, or negative if not found
http/vtransport/upstream/rr/rrupstream.go:42
↓ 7 callers
Function
InheritNamedListener
InheritNamedListener returns a net.Listener and its systemd name passing the tests (and name criteria) provided. If there's no inherited FD which can
sd/net.go:76
↓ 7 callers
Method
Listen
()
netutil/listen.go:10
↓ 7 callers
Method
Log
Log is the simplest Logger method
log/api.go:8
↓ 7 callers
Function
New
New will instantiate a logger with the same functionality (and limitations) as the std lib logger.
log/compat.go:11
↓ 7 callers
Method
Print
(v ...interface{})
log/interfaces.go:33
↓ 7 callers
Method
Serve
()
daemon/srv/server.go:44
↓ 7 callers
Method
SwapHandler
(new Handler)
log/swapper_15.go:83
↓ 7 callers
Method
Unmarshal
(rawVal interface{}, opts ...DecoderConfigOption)
hugorm/unmarshal.go:13
↓ 7 callers
Method
With
With ties a sub-context to the Logger and create a new logger which will log the supplied K/V values as context with every log event.
log/gonelog.go:166
↓ 7 callers
Method
handler
()
log/swapper_15.go:90
↓ 6 callers
Method
DoingDefaultLevel
DoingDefaultLevel returns whether a log.Println() would actually generate a log event with the current config. It's equivalent to l.Does(l.DefaultLeve
log/gonelog.go:305
↓ 6 callers
Method
ERROR
ERROR - Log a message and optional KV values at syslog ERROR level.
log/api.go:95
↓ 6 callers
Function
Export
Export records a dup() of the file descriptor and makes it managed by the sd package, marked as in active use. Closing the object provided will not cl
sd/file.go:371
↓ 6 callers
Function
NewLogger
NewLogger creates a new unamed Logger out side of the named Logger hierarchy.
log/gonelog.go:81
↓ 6 callers
Function
SetDefault
TODO IsSet checks to see if the key has been set in any of the data locations. IsSet is case-insensitive for a key. func IsSet(key string) bool { retu
hugorm/hugorm.go:258
↓ 6 callers
Method
SetFlags
(flags int)
log/swapper.go:35
↓ 6 callers
Method
SetHandler
SetHandler atomically swaps in a different root of the Handler tree
log/gonelog.go:142
↓ 6 callers
Method
SetLevel
SetLevel set the Logger log level. returns success
log/gonelog.go:248
↓ 6 callers
Method
Write
(b []byte)
log/writers.go:35
↓ 6 callers
Function
initJSON
()
hugorm/hugorm_test.go:192
↓ 6 callers
Method
invalidateCache
------------- cache access --------------------
hugorm/hugorm.go:153
↓ 5 callers
Method
ALERT
--- ALERT - Log a message and optional KV values at syslog ALERT level.
log/api.go:79
↓ 5 callers
Method
Clone
(options ...HandlerOption)
log/swapper.go:26
↓ 5 callers
Method
Flags
()
log/interfaces.go:47
↓ 5 callers
Method
FlushReading
(Sink)
metric/meter.go:25
↓ 5 callers
Method
Level
Level returns the log level of the event
log/event.go:77
↓ 5 callers
Function
ParseInto
ParseInto loads a JSON stream into a destination object, which is a datatype defined by the caller. It will ignore values in the file it can't fit int
jconf/config.go:27
↓ 5 callers
Method
ParseInto
(interface{})
jconf/subconfig.go:15
↓ 5 callers
Method
Reset
()
daemon/ctrl/example/accesslog.go:22
↓ 5 callers
Method
Sample
Sample records a new duration event.
metric/histotimer.go:48
↓ 5 callers
Function
Set
Set sets the value for the key in the override register. Set is case-insensitive for a key. Will be used instead of values obtained via flags, config
hugorm/hugorm.go:275
↓ 5 callers
Method
SetOutput
(w io.Writer)
log/swapper.go:45
↓ 5 callers
Method
SetPrefix
(prefix string)
log/swapper.go:40
↓ 5 callers
Function
addrFunc
(family, sotype int)
sd/filetests.go:497
↓ 5 callers
Function
deepCopyMap
deepCopyMap creates a independent copy of any map NB having both upper and lowercase versions of a key gives undefined results.
hugorm/util.go:27
↓ 5 callers
Function
initSubModule
(cfg SubConfig)
jconf/subconfig_test.go:35
↓ 4 callers
Method
AutoColoring
()
log/swapper.go:50
↓ 4 callers
Function
Cleanup
Cleanup closes all inherited file descriptors which have not yet been used by clients of this library by a directly or indirect call to FileWith() The
sd/file.go:119
↓ 4 callers
Method
Config
()
hugorm/hugorm.go:408
↓ 4 callers
Method
Error
()
http/graceful/graceful.go:63
↓ 4 callers
Method
Flush
flush all meters. Sync with the Flusher mutex
metric/flusher.go:177
↓ 4 callers
Method
Get
Get returns a new connection from the pool. Closing the connections puts it back to the Pool. Closing it when the pool is destroyed or full will be co
netutil/pool/pool.go:21
↓ 4 callers
Method
Inc
Inc increased the counter by the supplied value
metric/counter.go:41
↓ 4 callers
Method
IsTty
()
log/writers.go:14
↓ 4 callers
Method
Log
Log is used by a MultiServer to log internal actions if a LoggerFunc is set. You can call this your self if you need to. It's go-routine safe if the p
daemon/srv/server.go:85
↓ 4 callers
Method
Name
()
metric/meter.go:24
↓ 4 callers
Function
NewMinFormatter
NewMinFormatter creates a standard formatter and applied the supplied options It will default log.LminFlags to provide simple <level>message logging
log/format.go:90
↓ 4 callers
Method
Record
Record a named value of any time with the Sink
metric/sink.go:8
↓ 4 callers
Method
Serve
Serve will call net/http.Server.Serve() on all listeners, closing the listeners when the context is canceled to make Serve() exit. This method exits w
http/server.go:65
↓ 4 callers
Method
SetOptions
SetOptions sets options on a client - like the flush interval for metrics which haven't them selves a fixed flush interval
metric/client.go:77
↓ 4 callers
Method
SetPrintLevel
SetPrintLevel sets the level which Print*() methods are logging with. "respect" indicated whether Print*() statements will respect the Logger loglevel
log/gonelog.go:265
↓ 4 callers
Method
casing
A few util functions
hugorm/hugorm.go:136
↓ 4 callers
Method
setSink
(sink Sink)
metric/flusher.go:50
↓ 3 callers
Function
AddConfigFrom
AddConfigFrom will parse the data in the provided io.Reader and append it to the config.
hugorm/hugorm.go:310
↓ 3 callers
Method
AdhocGauge
AdhocGauge creates an ad-hoc gauge metric event. If flush is true, the sink will be instructed to flush data immediately
metric/client.go:305
↓ 3 callers
Method
AdhocSetMember
AdhocSetMember creates an ad-hoc set membership event. If flush is true, the sink will be instructed to flush data immediately
metric/client.go:324
↓ 3 callers
Method
DecLevel
DecLevel tries to decrease the log level
log/gonelog.go:233
↓ 3 callers
Method
Dial
Dial implements a Dial function like *net.Dialer
netutil/reaper/dialer.go:44
↓ 3 callers
Method
DoCodeInfo
DoCodeInfo tries to turn on or off registering the file and line of the log call. Formatters which try to log this info will not give meaningful info
log/gonelog.go:207
↓ 3 callers
Function
Forget
Forget makes the sd library forget about its file descriptor (made by Export) associated with either an exported object or a string naming a file desc
sd/file.go:329
↓ 3 callers
Method
IncLevel
IncLevel tries to increase the log level
log/gonelog.go:219
↓ 3 callers
Function
NewStdFormatter
NewStdFormatter creates a standard formatter capable of simulating the standard library logger.
log/format.go:106
↓ 3 callers
Method
Println
Println compatible with the standard lib logger
log/compat.go:88
next →
1–100 of 816, ranked by callers