MCPcopy Create free account

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

Functions816 in github.com/One-com/gone

MethodGet
(key string)
http/vtransport/vtransport_test.go:55
MethodGet
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
MethodGet
(key string)
hugorm/hugorm.go:449
FunctionGetGlobal
GetGlobal gets the global Hugorm instance.
hugorm/hugorm.go:55
FunctionGetLogger
GetLogger creates a new Logger or returns an already existing with the given name.
log/manager.go:47
MethodGetTimeStamp
()
http/rrwriter/responselogger.go:45
MethodGetTimeStamp
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
MethodHeader
Header implements http.ResponseWriter
http/rrwriter/responselogger.go:59
FunctionHealthCheck
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
MethodHijack
()
http/rrwriter/responselogger.go:119
FunctionINFO
INFO - Requests the default logger to create a log event
log/root.go:93
FunctionINFOok
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
MethodInc
Inc will increment the gauge value
metric/gauge.go:66
MethodInc
Inc increments the counter by the given amount.
metric/gauge.go:109
FunctionIncLevel
--- IncLevel - Increase the log level of the default Logger
log/root.go:134
FunctionInstantiateServers
InstantiateServers gives Run() a ConfigureFunc. This is the only mandatory RunOption
daemon/run.go:77
MethodInvoke
(ctx context.Context, w io.Writer, cmd string, args []string)
example.go:196
MethodInvoke
(ctx context.Context, w io.Writer, cmd string, args []string)
daemon/ctrl/example/server.go:95
MethodInvoke
(ctx context.Context, w io.Writer, cmd string, args []string)
daemon/ctrl/example/accesslog.go:45
MethodInvoke
(ctx context.Context, w io.Writer, cmd string, args []string)
daemon/ctrl/example/main.go:151
FunctionIsFifo
------------------------------------------------------------------------------- IsFifo tests whether the *os.File is a FIFO at the given path
sd/filetests.go:85
FunctionIsListening
IsListening FileTest to determine whether a file descriptor is a listening socket or not.
sd/filetests.go:356
FunctionIsSoReusePort
IsSoReusePort - Test if SO_REUSEPORT is set on the socket
sd/filetests.go:368
FunctionIsSocket
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
FunctionIsSocketInet
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
FunctionIsTty
IsTty returns true if the given file descriptor is a terminal.
log/term/term.go:16
MethodIsTty
()
log/writers.go:73
FunctionIsUDPListener
IsUDPListener is like IsTCPListener, but for UDP
sd/filetests.go:325
FunctionKeyDelimiter
KeyDelimiter sets the delimiter used for determining key parts. By default it's value is ".".
hugorm/hugorm.go:172
FunctionKeyNamesOpt
KeyNamesOpt is a JSON Formatter Option to set flags
log/json.go:32
MethodKvData
KvData returns the structured list of key/value data
log/event.go:87
FunctionLevel
Level returns the default Logger's log level.
log/root.go:158
MethodLevel
Level returns the current log level
log/gonelog.go:310
FunctionLevelFilterWriter
and finally: LevelFilterWriter creates a filtering EventWriter which writes whats below (or equal) max level to The underlying io.Writer
log/writers.go:153
FunctionLevelPrefixOpt
LevelPrefixOpt - Standard Formatter option to set LevelPrefixes
log/format.go:211
FunctionListen
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
MethodListen
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
MethodListen
Listen implement the gone/daemon/src.Listener interface and pick an already open listener FD or create one.
http/gonesrv/server.go:63
MethodListen
()
netutil/listen.go:15
MethodListen
()
daemon/server.go:53
MethodListen
()
daemon/legacy.go:20
MethodListen
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
FunctionListenFdsWithNames
ListenFdsWithNames return the number of inherited filedescriptors and their names, along with any error occurring while inheriting them. Calling Reset
sd/file.go:484
FunctionListenPacket
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
MethodLoad
()
hugorm/configfile.go:45
FunctionLoadConfig
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
FunctionLog
Log is the simplest Logger method. Provide the log level (syslog.LOG_*) your self.
log/root.go:289
MethodLog
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
MethodLog
(e Event)
log/handler.go:31
MethodLog
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
MethodLog
*********************************************************************/
log/format.go:240
MethodLog
Log implements the Handler interface for the JSON formatter.
log/json.go:61
MethodLogFromCaller
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
MethodLogValues
LogValues implment Logable for KV
log/kv.go:59
MethodLogValues
()
log/logable_test.go:14
MethodLoggerName
LoggerName returns the name of the logger logging the event.
log/event.go:92
FunctionLvlFilterHandler
LvlFilterHandler discards events with a level above maxLvl
log/handler.go:49
FunctionMakeRecorder
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
FunctionMark
Mark - send a ad-hoc zero histogram event at the default client. - see Client.Mark()
metric/client.go:367
FunctionMarshal
Marshal (alias for WriteConfigTo)
hugorm/hugorm.go:345
MethodMarshalJSON
()
jconf/subconfig.go:86
MethodMarshalJSON
MarshalJSON allows the subconfig to be serialized
jconf/subconfig.go:95
MethodMarshalJSON
MarshalJSON allows the subconfig to be serialized
jconf/subconfig.go:100
MethodMarshalJSON
MarshalJSON implements the stdlib encoding/json.Marshaler interface for Duration
jconf/duration.go:33
FunctionMaxFails
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
MethodMessage
Message returns the log message of the event
log/event.go:82
FunctionMessageKey
MessageKey sets the key for the actual log message. By default, it's "msg".
log/stdgw.go:55
FunctionMinimal
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
FunctionMultiEventWriter
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
FunctionMultiHandler
MultiHandler distributes the event to several Handlers if an error happen the last error is returned.
log/handler.go:57
FunctionNOTICE
NOTICE - Requests the default logger to create a log event
log/root.go:84
FunctionNOTICEok
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
MethodName
Name returns the name of the Set
metric/set.go:38
MethodName
()
metric/event.go:81
MethodName
Name returns the name of the counter
metric/counter.go:36
MethodName
Name to implement Meter interface
metric/gauge.go:51
MethodName
Name returns the name of the gauge.
metric/gauge.go:89
MethodName
Name returns the name of the gauge
metric/gauge.go:120
FunctionNew
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
FunctionNewChannelPool
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
FunctionNewGaugeFloat64
NewGaugeFloat64 creates a gauge holding a Float64 value.
metric/gauge.go:114
FunctionNewGaugeInt64
NewGaugeInt64 creates a int64 Gauge. Can be used as a go-metric client side gauge or counter
metric/gauge.go:76
FunctionNewIOActivityTimeoutDialer
NewIOActivityTimeoutDialer wraps a *net.Dialer with potential IOActivityTimeout monitoring. - only enabled by default if requested.
netutil/reaper/dialer.go:24
FunctionNewIOActivityTimeoutListener
NewIOActivityTimeoutListener wraps net.Listener with IOActivityTimeout functionality, so the accepted connections can use IOActivityTimeout() to enabl
netutil/reaper/listener.go:23
FunctionNewJSONFormatter
NewJSONFormatter creates a new formatting Handler writing log events as JSON to the supplied Writer.
log/json.go:50
FunctionNewRoundRobinUpstream
NewRoundRobinUpstream returns a Round Robin VirtualUpstream configured with the provided options.
http/vtransport/upstream/rr/rrupstream.go:241
FunctionNewStdlibAdapter
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
MethodNextTarget
NextTarget implements the VirtualUpstream interface.
http/vtransport/upstream/rr/rrupstream.go:340
FunctionNotifyStatus
NotifyStatus sends systemd the service status over the notify socket.
sd/notify.go:87
FunctionOutput
--- std logger stuff Output compatible with the standard library
log/root.go:165
FunctionOutput
Output sets an general io.Writer as output instead of a UDPConn.
metric/sink/statsd/statsd.go:64
MethodOutput
Output compatible with the standard lib logger
log/compat.go:19
FunctionPanic
Panic - Compatible with the standard library
log/root.go:229
MethodPanic
Panic compatible with the standard lib logger
log/compat.go:48
MethodPanic
(v ...interface{})
log/interfaces.go:29
FunctionPanicf
Panicf - Compatible with the standard library
log/root.go:240
MethodPanicf
Panicf compatible with the standard lib logger
log/compat.go:56
MethodPanicf
(format string, v ...interface{})
log/interfaces.go:30
FunctionPanicln
Panicln - Compatible with the standard library
log/root.go:251
MethodPanicln
Panicln compatible with the standard lib logger
log/compat.go:64
← previousnext →501–600 of 816, ranked by callers