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
Get
(key string)
http/vtransport/vtransport_test.go:55
Method
Get
Get implements the Pool interfaces Get() method. If there is no new connection available in the pool, a new connection will be created via the Factory
netutil/pool/channel.go:54
Method
Get
(key string)
hugorm/hugorm.go:449
Function
GetGlobal
GetGlobal gets the global Hugorm instance.
hugorm/hugorm.go:55
Function
GetLogger
GetLogger creates a new Logger or returns an already existing with the given name.
log/manager.go:47
Method
GetTimeStamp
()
http/rrwriter/responselogger.go:45
Method
GetTimeStamp
GetTimeStamp returns the 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 s
http/rrwriter/responselogger.go:84
Method
Header
Header implements http.ResponseWriter
http/rrwriter/responselogger.go:59
Function
HealthCheck
HealthCheck configures a periodic health check callback. The provided checkfunc will be called with the URL of the backend target to check. checkfunc
http/vtransport/upstream/rr/rrupstream.go:108
Method
Hijack
()
http/rrwriter/responselogger.go:119
Function
INFO
INFO - Requests the default logger to create a log event
log/root.go:93
Function
INFOok
INFOok - If the default Logger is logging at the requested level a function creating such a log event will be returned.
log/root.go:126
Method
Inc
Inc will increment the gauge value
metric/gauge.go:66
Method
Inc
Inc increments the counter by the given amount.
metric/gauge.go:109
Function
IncLevel
--- IncLevel - Increase the log level of the default Logger
log/root.go:134
Function
InstantiateServers
InstantiateServers gives Run() a ConfigureFunc. This is the only mandatory RunOption
daemon/run.go:77
Method
Invoke
(ctx context.Context, w io.Writer, cmd string, args []string)
example.go:196
Method
Invoke
(ctx context.Context, w io.Writer, cmd string, args []string)
daemon/ctrl/example/server.go:95
Method
Invoke
(ctx context.Context, w io.Writer, cmd string, args []string)
daemon/ctrl/example/accesslog.go:45
Method
Invoke
(ctx context.Context, w io.Writer, cmd string, args []string)
daemon/ctrl/example/main.go:151
Function
IsFifo
------------------------------------------------------------------------------- IsFifo tests whether the *os.File is a FIFO at the given path
sd/filetests.go:85
Function
IsListening
IsListening FileTest to determine whether a file descriptor is a listening socket or not.
sd/filetests.go:356
Function
IsSoReusePort
IsSoReusePort - Test if SO_REUSEPORT is set on the socket
sd/filetests.go:368
Function
IsSocket
IsSocket is similar to libsystemd sd-daemon sd_is_socket() Test whether the *os.File is a socket of family, socket type and whether it's listening. Va
sd/filetests.go:141
Function
IsSocketInet
IsSocketInet is similar to sd_is_socket_inet Test if the *os.File is a socket of AF_INET/AF_INET6 of the given socket time, listening (0,1,-1) and por
sd/filetests.go:179
Function
IsTty
IsTty returns true if the given file descriptor is a terminal.
log/term/term.go:16
Method
IsTty
()
log/writers.go:73
Function
IsUDPListener
IsUDPListener is like IsTCPListener, but for UDP
sd/filetests.go:325
Function
KeyDelimiter
KeyDelimiter sets the delimiter used for determining key parts. By default it's value is ".".
hugorm/hugorm.go:172
Function
KeyNamesOpt
KeyNamesOpt is a JSON Formatter Option to set flags
log/json.go:32
Method
KvData
KvData returns the structured list of key/value data
log/event.go:87
Function
Level
Level returns the default Logger's log level.
log/root.go:158
Method
Level
Level returns the current log level
log/gonelog.go:310
Function
LevelFilterWriter
and finally: LevelFilterWriter creates a filtering EventWriter which writes whats below (or equal) max level to The underlying io.Writer
log/writers.go:153
Function
LevelPrefixOpt
LevelPrefixOpt - Standard Formatter option to set LevelPrefixes
log/format.go:211
Function
Listen
Listen returns a net.Listener like net.Listen, but will first check whether an inherited file descriptor is already listening before creating a new so
sd/net.go:120
Method
Listen
Listen make the server listen on the listeners returned by the object set in in the Listeners attribute. If Listeners is nil, the server will listen o
http/server.go:29
Method
Listen
Listen implement the gone/daemon/src.Listener interface and pick an already open listener FD or create one.
http/gonesrv/server.go:63
Method
Listen
()
netutil/listen.go:15
Method
Listen
()
daemon/server.go:53
Method
Listen
()
daemon/legacy.go:20
Method
Listen
Listen will create new listeners based on ListenerSpec, first trying to inherit a listener socket from the gone/sd library, and possibly, - if that fa
daemon/listen.go:50
Function
ListenFdsWithNames
ListenFdsWithNames return the number of inherited filedescriptors and their names, along with any error occurring while inheriting them. Calling Reset
sd/file.go:484
Function
ListenPacket
ListenPacket returns a net.PacketConn like net.ListenPacket, but will first check whether an inherited file descriptor is already available before cre
sd/net.go:143
Method
Load
()
hugorm/configfile.go:45
Function
LoadConfig
LoadConfig will discover and load the configuration file from disk and key/value stores, searching in one of the defined paths.
hugorm/hugorm.go:290
Function
Log
Log is the simplest Logger method. Provide the log level (syslog.LOG_*) your self.
log/root.go:289
Method
Log
Log sends the event down the first Handler chain, it finds in the Logger tree. NB: This is different from pythong "logging" in that only one Handler i
log/swapper_15.go:38
Method
Log
(e Event)
log/handler.go:31
Method
Log
Will generate a log event with this level if the Logger log level is high enough. The event will have the given log message and key/value structured d
log/interfaces.go:16
Method
Log
*********************************************************************/
log/format.go:240
Method
Log
Log implements the Handler interface for the JSON formatter.
log/json.go:61
Method
LogFromCaller
LogFromCaller is like Log() but lets you offset the calldepth used to compute CodeInfo (file/line) from stack info, the same way as the stdlib log.Out
log/api.go:16
Method
LogValues
LogValues implment Logable for KV
log/kv.go:59
Method
LogValues
()
log/logable_test.go:14
Method
LoggerName
LoggerName returns the name of the logger logging the event.
log/event.go:92
Function
LvlFilterHandler
LvlFilterHandler discards events with a level above maxLvl
log/handler.go:49
Function
MakeRecorder
MakeRecorder returns a RecordingResponseWriter which wraps around the provided http.ResponseWriter. After the response has been written, you can get S
http/rrwriter/responselogger.go:23
Function
Mark
Mark - send a ad-hoc zero histogram event at the default client. - see Client.Mark()
metric/client.go:367
Function
Marshal
Marshal (alias for WriteConfigTo)
hugorm/hugorm.go:345
Method
MarshalJSON
()
jconf/subconfig.go:86
Method
MarshalJSON
MarshalJSON allows the subconfig to be serialized
jconf/subconfig.go:95
Method
MarshalJSON
MarshalJSON allows the subconfig to be serialized
jconf/subconfig.go:100
Method
MarshalJSON
MarshalJSON implements the stdlib encoding/json.Marshaler interface for Duration
jconf/duration.go:33
Function
MaxFails
MaxFails configures how many times a backend server is allowed to fail before being put into quarantine. As fails are recorded for a backend it's pick
http/vtransport/upstream/rr/rrupstream.go:206
Method
Message
Message returns the log message of the event
log/event.go:82
Function
MessageKey
MessageKey sets the key for the actual log message. By default, it's "msg".
log/stdgw.go:55
Function
Minimal
Minimal sets the default logger to the minimal mode, where it doesn't log timestamps But only emits systemd/syslog-compatible "<level>message" lines.
log/root.go:28
Function
MultiEventWriter
MultiEventWriter creates a writer that duplicates its writes to all the provided writers, similar to the Unix tee(1) command, providing all with the o
log/writers.go:136
Function
MultiHandler
MultiHandler distributes the event to several Handlers if an error happen the last error is returned.
log/handler.go:57
Function
NOTICE
NOTICE - Requests the default logger to create a log event
log/root.go:84
Function
NOTICEok
NOTICEok - If the default Logger is logging at the requested level a function creating such a log event will be returned.
log/root.go:123
Method
Name
Name returns the name of the Set
metric/set.go:38
Method
Name
()
metric/event.go:81
Method
Name
Name returns the name of the counter
metric/counter.go:36
Method
Name
Name to implement Meter interface
metric/gauge.go:51
Method
Name
Name returns the name of the gauge.
metric/gauge.go:89
Method
Name
Name returns the name of the gauge
metric/gauge.go:120
Function
New
New creasted a SinkFactory which is used to create Sinks sending data to a UDP statsd server Provide a UDP address, a prefix and a maximum UDP datagra
metric/sink/statsd/statsd.go:74
Function
NewChannelPool
NewChannelPool returns a new pool based on buffered channels with an idle capacity and maximum capacity. Factory is used when initial capacity is grea
netutil/pool/channel.go:36
Function
NewGaugeFloat64
NewGaugeFloat64 creates a gauge holding a Float64 value.
metric/gauge.go:114
Function
NewGaugeInt64
NewGaugeInt64 creates a int64 Gauge. Can be used as a go-metric client side gauge or counter
metric/gauge.go:76
Function
NewIOActivityTimeoutDialer
NewIOActivityTimeoutDialer wraps a *net.Dialer with potential IOActivityTimeout monitoring. - only enabled by default if requested.
netutil/reaper/dialer.go:24
Function
NewIOActivityTimeoutListener
NewIOActivityTimeoutListener wraps net.Listener with IOActivityTimeout functionality, so the accepted connections can use IOActivityTimeout() to enabl
netutil/reaper/listener.go:23
Function
NewJSONFormatter
NewJSONFormatter creates a new formatting Handler writing log events as JSON to the supplied Writer.
log/json.go:50
Function
NewRoundRobinUpstream
NewRoundRobinUpstream returns a Round Robin VirtualUpstream configured with the provided options.
http/vtransport/upstream/rr/rrupstream.go:241
Function
NewStdlibAdapter
NewStdlibAdapter returns a new StdlibAdapter wrapper around the passed logger. It's designed to be passed to the standard library's log.SetOutput()
log/stdgw.go:66
Method
NextTarget
NextTarget implements the VirtualUpstream interface.
http/vtransport/upstream/rr/rrupstream.go:340
Function
NotifyStatus
NotifyStatus sends systemd the service status over the notify socket.
sd/notify.go:87
Function
Output
--- std logger stuff Output compatible with the standard library
log/root.go:165
Function
Output
Output sets an general io.Writer as output instead of a UDPConn.
metric/sink/statsd/statsd.go:64
Method
Output
Output compatible with the standard lib logger
log/compat.go:19
Function
Panic
Panic - Compatible with the standard library
log/root.go:229
Method
Panic
Panic compatible with the standard lib logger
log/compat.go:48
Method
Panic
(v ...interface{})
log/interfaces.go:29
Function
Panicf
Panicf - Compatible with the standard library
log/root.go:240
Method
Panicf
Panicf compatible with the standard lib logger
log/compat.go:56
Method
Panicf
(format string, v ...interface{})
log/interfaces.go:30
Function
Panicln
Panicln - Compatible with the standard library
log/root.go:251
Method
Panicln
Panicln compatible with the standard lib logger
log/compat.go:64
← previous
next →
501–600 of 816, ranked by callers