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
Function
TestEmptyEnv_Allowed
(t *testing.T)
hugorm/hugorm_test.go:480
Function
TestEmptyPrintCreatesLine
(t *testing.T)
log/compat_test.go:148
Function
TestEmptyPrintCreatesLineKV
Test that Println() doesn't get k/v logging wrong
log/api_test.go:172
Function
TestEnv
func TestRemotePrecedence(t *testing.T) { initJSON() remote := bytes.NewReader(remoteExample) assert.Equal(t, "0001", Get("id")) unmarshalReader(
hugorm/hugorm_test.go:431
Function
TestEnvPrefix
(t *testing.T)
hugorm/hugorm_test.go:495
Function
TestExport
(t *testing.T)
sd/sd_test.go:77
Function
TestFileWith
(t *testing.T)
sd/sd_test.go:11
Function
TestFlagAndPrefixSetting
(t *testing.T)
log/compat_test.go:91
Function
TestFlushSink
(t *testing.T)
metric/sink_test.go:48
Function
TestForget
(t *testing.T)
sd/sd_test.go:159
Function
TestFull
(t *testing.T)
jconf/subconfig_test.go:161
Function
TestIOActivityTimeout
(t *testing.T)
netutil/reaper/nettest_test.go:95
Function
TestJSON
(t *testing.T)
log/json_test.go:21
Function
TestJSON
(t *testing.T)
hugorm/hugorm_test.go:410
Function
TestKeepaliveShutdown
(t *testing.T)
http/graceful/graceful_test.go:41
Function
TestListenTCP
(t *testing.T)
sd/sd_test.go:220
Function
TestLog
(t *testing.T)
http/handlers/accesslog/alog_test.go:13
Function
TestMandatoryNilSubConfig
(t *testing.T)
jconf/subconfig_test.go:263
Function
TestMultipleEnv
(t *testing.T)
hugorm/hugorm_test.go:456
Function
TestOptionalNilSubConfig
(t *testing.T)
jconf/subconfig_test.go:311
Function
TestOutput
(t *testing.T)
log/compat_test.go:81
Function
TestOverrides
(t *testing.T)
hugorm/hugorm_test.go:344
Function
TestReplaceNilSink
(t *testing.T)
metric/sink_test.go:11
Function
TestServe
(t *testing.T)
http/graceful/graceful_test.go:25
Function
TestSet
(t *testing.T)
metric/set_test.go:12
Function
TestSocketActivation
(t *testing.T)
sd/activation_test.go:18
Function
TestSubConfigNoPointer
(t *testing.T)
jconf/subconfig_test.go:95
Function
TestSyntaxError
(t *testing.T)
jconf/subconfig_test.go:239
Function
TestUTCFlag
(t *testing.T)
log/compat_test.go:124
Function
TestUnmarshal
func TestAutoEnv(t *testing.T) { Reset() AutomaticEnv() testutil.Setenv(t, "FOO_BAR", "13") assert.Equal(t, "13", Get("foo_bar")) } func TestA
hugorm/hugorm_test.go:701
Function
TestUnmarshaling
(t *testing.T)
hugorm/hugorm_test.go:351
Function
TestYML
func TestAliases(t *testing.T) { RegisterAlias("years", "age") assert.Equal(t, 40, Get("years")) Set("years", 45) assert.Equal(t, 45, Get("age"))
hugorm/hugorm_test.go:404
Function
TimeFormatOpt
TimeFormatOpt is a JSON Formatter Option to set timestamp formatting
log/json.go:41
Function
TimestampKey
TimestampKey sets the key for the timestamp field. By default, it's "ts".
log/stdgw.go:45
Method
ToggleAccessLog
(old, new io.Writer)
http/handlers/accesslog/loghandler.go:59
Method
Type
()
hugorm/hugorm_test.go:262
Method
UnlockedSink
()
metric/sink/statsd/statsd.go:90
Method
UnmarshalJSON
UnmarshalJSON implements the stdlib encoding/json.Unmarshaler interface for Duration
jconf/duration.go:15
Function
Unsetenv
Unsetenv unsets an environment variable for the duration of a test.
hugorm/internal/testutil/env.go:22
Method
Update
Update implements the VirtualUpstream interface.
http/vtransport/upstream/rr/rrupstream.go:268
Method
Usage
(cmd string, w io.Writer)
example.go:192
Method
Usage
(cmd string, w io.Writer)
daemon/ctrl/example/server.go:120
Method
Usage
(cmd string, w io.Writer)
daemon/ctrl/example/accesslog.go:40
Method
Usage
(cmd string, w io.Writer)
daemon/ctrl/example/main.go:147
Method
Value
Value returns the gauge value
metric/gauge.go:61
Method
Value
Value returns the gauge's current value.
metric/gauge.go:131
Method
Values
()
hugorm/configfile.go:29
Method
Values
()
hugorm/configfile.go:41
Function
WARN
WARN - Requests the default logger to create a log event
log/root.go:75
Function
WARNok
WARNok - If the default Logger is logging at the requested level a function creating such a log event will be returned.
log/root.go:120
Function
WatchdogEnabled
WatchdogEnabled tell whether systemd asked us to enable watchdog notifications.
sd/notify.go:82
Function
With
With will create a sub-context K/V logger of the default logger with additional key/value context.
log/root.go:36
Method
Write
Write implements http.ResponseWriter
http/rrwriter/responselogger.go:64
Method
Write
(b []byte)
log/writers.go:50
Method
Write
(b []byte)
log/writers.go:77
Method
Write
Dummy method to allow a multiEvWriter to behave like an io.MultiWriter
log/writers.go:106
Method
Write
Write implements io.Writer.
log/stdgw.go:19
Method
Write
(p []byte)
log/stdgw.go:80
Method
Write
(b []byte)
netutil/reaper/conn.go:148
Function
WriteConfigTo
WriteConfig writes the current configuration to a file.
hugorm/hugorm.go:337
Method
WriteHeader
WriteHeader implements http.ResponseWriter
http/rrwriter/responselogger.go:75
Function
WriterFunc
WriterFunc makes an io.Writer out of a function by calling it on Write()
log/writers.go:31
Function
absPathify
(inPath string)
hugorm/util.go:71
Method
alert
--- Internal level loggers (to return from *ok() functions) These are functionally equivalent to log() and output(), but bound to a specific level.
log/api.go:24
Method
appendNumber
(v interface{})
metric/sink/statsd/statsd.go:207
Method
apply
(h *Hugorm)
hugorm/hugorm.go:166
Function
bindLazy
bindValues replaces all value elements (odd indexes) containing a Lazy with their generated value.
log/lazy.go:13
Method
clone
********************** lconfig operations *************************/
log/gonelog.go:338
Function
countOpenFds
func TestPid(t *testing.T) { fmt.Printf("PID %d\n", os.Getpid()) }
sd/sd_test.go:60
Method
crit
(msg string, kv ...interface{})
log/api.go:28
Method
debug
(msg string, kv ...interface{})
log/api.go:48
Method
error
(msg string, kv ...interface{})
log/api.go:32
Method
info
(msg string, kv ...interface{})
log/api.go:44
Function
init
()
example.go:135
Function
init
()
http/handlers/accesslog/loghandler.go:18
Function
init
()
sd/file.go:70
Function
init
()
sd/notify.go:53
Function
init
()
log/event.go:18
Function
init
()
log/root.go:20
Function
init
()
log/format.go:66
Function
init
()
netutil/reaper/nettest_test.go:119
Function
init
()
metric/client.go:38
Function
init
()
hugorm/hugorm.go:59
Function
init
()
daemon/run.go:45
Function
init
()
daemon/ctrl/ctrl.go:45
Function
init
()
daemon/ctrl/example/main.go:87
Function
insensitiviseMap
checked NB having both upper and lowercase versions of a key gives undefined results.
hugorm/util.go:49
Function
main
---------------------------------------------------------------------------
example.go:158
Function
main
()
sd/testbin/sdtest.go:28
Function
main
()
metric/test/metrictest2.go:31
Function
main
---------------------------------------------------------------------------
daemon/ctrl/example/main.go:115
Method
mergeFlatMap
mergeFlatMap merges the given maps, excluding values of the second map shadowed by values from the first map.
hugorm/internals.go:9
Function
newStringValue
(val string, p *string)
hugorm/hugorm_test.go:252
Function
nonblockHack
The Go (<1.11) net package sets the socket blocking. No longer necessary per Go 1.11 release notes.
sd/nonblockhack_11.go:11
Method
notice
(msg string, kv ...interface{})
log/api.go:40
Function
onSignalDecLogLevel
()
example.go:124
Function
onSignalDecLogLevel
()
daemon/ctrl/example/main.go:74
Function
onSignalExitGraceful
()
example.go:102
Function
onSignalExitGraceful
()
daemon/ctrl/example/main.go:52
Function
onSignalIncLogLevel
()
example.go:119
← previous
next →
701–800 of 816, ranked by callers