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
Method
Panicln
(v ...interface{})
log/interfaces.go:31
Function
Parse
Parse instruct the adapter to try parse the stdlib log message to pick out fields
log/stdgw.go:60
Method
ParseInto
ParseInto on will Unmarshal the SubConfig JSON data into the provided interface If called on a nil value (no JSON data) will return ErrEmptySubConfig
jconf/subconfig.go:68
Method
ParseInto
ParseInto on will Unmarshal the SubConfig JSON data into the provided interface If called on a nil value (no JSON data) will do nothing.
jconf/subconfig.go:78
Function
Peer
Peer is the address of the statsd UDP server
metric/sink/statsd/statsd.go:51
Function
PinRequestsWith
PinRequestsWith will - if provided a cache implementation - allow the Round Robin upstream to remember where it send requests with a similar routing k
http/vtransport/upstream/rr/rrupstream.go:223
Function
Prefix
Prefix - Compatible with the standard library
log/root.go:175
Function
Prefix
Prefix is prepended with "prefix." to all metric names
metric/sink/statsd/statsd.go:43
Method
Prefix
Prefix - same as for flags
log/swapper.go:69
Method
Prefix
Prefix compatible with the standard lib logger
log/compat.go:108
Method
Prefix
To support stdlib query functions
log/format.go:131
Function
Print
Print - Compatible with the standard library
log/root.go:262
Method
PrintLevel
PrintLevel returns the current log level of Print*() methods
log/gonelog.go:315
Method
Printf
Printf compatible with the standard lib logger
log/compat.go:80
Function
Quarantine
Quarantine configures the quarantine period for failed servers.
http/vtransport/upstream/rr/rrupstream.go:213
Method
Read
(bs []byte)
http/rrwriter/responselogger.go:146
Method
Read
(b []byte)
netutil/reaper/conn.go:139
Function
ReadyCallback
ReadyCallback sets a function to be called when all servers have started without error
daemon/run.go:110
Method
Record
(mtype int, name string, value interface{})
metric/sink.go:39
Method
Record
Record records a value directly at the sink of this flusher. optionally flusing the sink.
metric/flusher.go:224
Method
Record
Record a value with the sink
metric/sink/statsd/statsd.go:99
Method
Record
(mtype int, name string, value interface{})
metric/sink/statsd/statsd.go:105
Method
RecordNumeric64
(mtype int, name string, value num64.Numeric64)
metric/sink.go:42
Method
RecordNumeric64
RecordNumeric64 records a value directly at the sink of this flusher. optionally flusing the sink.
metric/flusher.go:235
Method
RecordNumeric64
Record a Numeric64 value with the sink
metric/sink/statsd/statsd.go:126
Method
RecordNumeric64
(mtype int, name string, value num64.Numeric64)
metric/sink/statsd/statsd.go:132
Function
RegisterCommand
RegisterCommand registers an implementation of the Command interface under a command name
daemon/ctrl/ctrl.go:50
Function
RegisterCounter
-------------------------------------------------------------- RegisterCounter is equivalent to Register(NewCounter(), opts) with the default Client.
metric/client.go:268
Function
RegisterGauge
RegisterGauge is equivalent to Register(NewGauge(), opts) with the default Client.
metric/client.go:275
Function
RegisterHistogram
RegisterHistogram is equivalent to Register(NewHistogram(), opts) with the default Client.
metric/client.go:289
Method
RegisterSet
(name string, opts ...MOption)
metric/client.go:259
Function
RegisterTimer
RegisterTimer is equivalent to Register(NewTimer(), opts) with the default Client.
metric/client.go:282
Method
Release
Release puts the net.Conn back to the pool instead of closing it.
netutil/pool/conn.go:13
Method
ReleaseContext
ReleaseContext implements the VirtualUpstream interface.
http/vtransport/upstream/rr/rrupstream.go:260
Function
Reload
Reload tells Run() to instatiate new servers and continue serving with them.
daemon/run.go:420
Function
ReplaceProcess
ReplaceProcess calls StartProcess, after setting up environment variables instructing the new process to signal the process calling ReplaceProcess for
sd/process.go:95
Function
ReplaceProcess
ReplaceProcess spawns a new version of the program. sig is the UNIX signal to send to terminate the parent once we're up and running
daemon/run.go:450
Function
Retries
Retries creates a RetryPolicy which will at most retry the request "retries" times. and at most repeat the backend host pool "maxRepeat" times. Per de
http/vtransport/vtransport.go:91
Method
Retries
()
http/vtransport/upstream/rr/rrupstream.go:28
Method
RoundTrip
RoundTrip implements the http.RoundTripper interface.
http/vtransport/vtransport.go:121
Function
Run
Run takes a set of RunOptions. The only mandatory option is InstantiateServers. The servers will be managed and via Serve() and can be controlled with
daemon/run.go:158
Function
RunSignalHandler
RunSignalHandler spawns a go-routine which will call the provided Actions when receiving the corresponding signals.
signals/signals.go:49
Function
SdNotifyOnReady
SdNotifyOnReady makes Run() notify systemd with STATUS=READY when all servers have started. If mainpid is true, the MAINPID of the current process is
daemon/run.go:125
Method
Serve
(ctx context.Context)
example.go:53
Method
Serve
(ctx context.Context)
daemon/server.go:74
Method
Serve
(ctx context.Context)
daemon/legacy.go:29
Method
Serve
Serve implement the gone/daemon/srv.Server interface. It is synchronous (does not implement Wait). All connections should exit ASAP when Shutdown is c
daemon/ctrl/ctrl.go:215
Method
ServeHTTP
(w http.ResponseWriter, req *http.Request)
http/handlers/accesslog/loghandler.go:105
Method
Set
(key string, value int, ttl time.Duration)
http/vtransport/vtransport_test.go:49
Method
Set
Set will update the gauge value
metric/gauge.go:56
Method
Set
Set sets the gauge value
metric/gauge.go:94
Method
Set
Set updates the gauge's value.
metric/gauge.go:125
Method
Set
(val string)
hugorm/hugorm_test.go:257
Method
Set
(key string, value interface{})
hugorm/hugorm.go:277
Function
SetDefaultOptions
SetDefaultOptions sets options on the default metric client
metric/client.go:70
Function
SetDefaultSink
SetDefaultSink sets the sink for the default metics client The default client has no sink set initially. You need to set it calling this function.
metric/client.go:95
Method
SetFlags
(flag int)
log/swapper.go:76
Method
SetFlags
SetFlags compatible with the standard lib logger
log/compat.go:113
Method
SetFlags
(flag int)
log/interfaces.go:56
Method
SetFlags
SetFlags creates a HandlerOption to set flags. This is a method wrapper around FlagsOpt to be able to have the swapper call it genericly on different
log/format.go:163
Function
SetLevel
SetLevel set the Logger log level. returns success
log/root.go:145
Function
SetLogger
SetLogger sets a custom log function.
daemon/log.go:30
Method
SetOutput
(w io.Writer)
log/swapper.go:103
Method
SetOutput
(w io.Writer)
log/writers.go:83
Method
SetOutput
SetOutput compatible with the standard lib logger
log/compat.go:139
Method
SetOutput
(w io.Writer)
log/interfaces.go:58
Method
SetOutput
SetOutput creates a HandlerOption to se the output writer This is a method wrapper to be able to have the swapper call it genericly on different forma
log/format.go:179
Method
SetPrefix
(prefix string)
log/swapper.go:94
Method
SetPrefix
SetPrefix compatible with the standard lib logger
log/compat.go:134
Method
SetPrefix
(prefix string)
log/interfaces.go:57
Method
SetPrefix
SetPrefix creates a HandlerOption to set the formating prefix This is a method wrapper to be able to have the swapper call it genericly on different f
log/format.go:171
Function
SetPrintLevel
SetPrintLevel sets the log level used by Print*() calls. If the second argument is true, Println(), Printf(), Print() will respect the Logger log leve
log/root.go:153
Method
SetTimeStamp
SetTimeStamp sets a timestamp. This can be used to store a starttime for a request and return it after the request is done. It is not go-routine safe.
http/rrwriter/responselogger.go:93
Function
SetUnixSocketUnlinkPolicy
SetUnixSocketUnlinkPolicy decides how the sd library will deal with stale UNIX socket file when you create a new listening Unix socket which is not in
sd/net.go:68
Function
Setenv
Based on https://github.com/frankban/quicktest/blob/577841610793d24f99e31cc2c0ef3a541fefd7c7/patch.go#L34-L64 Licensed under the MIT license Copyright
hugorm/internal/testutil/env.go:17
Method
ShortUsage
()
example.go:186
Method
ShortUsage
()
daemon/ctrl/example/server.go:114
Method
ShortUsage
()
daemon/ctrl/example/accesslog.go:34
Method
ShortUsage
()
daemon/ctrl/example/main.go:141
Method
Shutdown
(ctx context.Context)
daemon/server.go:96
Method
Shutdown
(ctx context.Context)
daemon/legacy.go:79
Function
ShutdownTimeout
ShutdownTimeout is an option to Run() to control the default timeout value for graceful shutdowns. This is used when OS signals or similar crude inter
daemon/run.go:96
Function
SignalParentOnReady
SignalParentOnReady sets a ReadyCallback which signals the parent process to terminate.
daemon/run.go:117
Function
SignalParentTermination
SignalParentTermination signals any parent who have asked to be terminated via the ENV
sd/process.go:114
Method
Size
Size returns the written response size.
http/rrwriter/responselogger.go:104
Method
Size
()
http/rrwriter/responselogger.go:152
Function
Start
Start the default Client if stopped.
metric/client.go:118
Function
StartTimer
StartTimer allows to put a timer on a Conn, and via time.AfterFunc have a function called. The provided afterfunc is called with the net.Conn created
netutil/reaper/conn.go:42
Method
Status
Status returns the http status of the written request.
http/rrwriter/responselogger.go:99
Function
Stop
Stop the global default metrics Client
metric/client.go:142
Function
StopTimer
StopTimer stops any timer on the connection. StopTimer is go-routine safe.
netutil/reaper/conn.go:63
Function
SyncReload
SyncReload makes Run() Wait() for all servers before starting the next generation om Reload()
daemon/run.go:103
Method
Target
()
http/vtransport/upstream/rr/rrupstream.go:24
Function
Targets
Targets sets the backend URLs for the Round Robin upstream
http/vtransport/upstream/rr/rrupstream.go:87
Function
TestAll
(t *testing.T)
log/compat_test.go:74
Function
TestBackendFail
(t *testing.T)
http/vtransport/vtransport_test.go:170
Function
TestDefault
func TestBasics(t *testing.T) { SetConfigFile("/tmp/config.yaml") filename, err := v.getConfigFile() assert.Equal(t, "/tmp/config.yaml", filename)
hugorm/hugorm_test.go:331
Function
TestDefaultPost
func TestUnmarshalExact(t *testing.T) { vip := New() target := &testUnmarshalExtra{} vip.SetConfigType("yaml") r := bytes.NewReader(yamlExampleWi
hugorm/hugorm_test.go:381
Function
TestDuration
(t *testing.T)
jconf/duration_test.go:25
Function
TestEmptyEnv
(t *testing.T)
hugorm/hugorm_test.go:467
← previous
next →
601–700 of 816, ranked by callers