Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/One-com/gone
/ types & classes
Types & classes
173 in github.com/One-com/gone
⨍
Functions
816
◇
Types & classes
173
↓ 8 callers
FuncType
RunOption
RunOption change the behaviour of Run()
daemon/run.go:65
↓ 7 callers
FuncType
RROption
RROption is an option function configuring a Round Robin VirtualUpstream
http/vtransport/upstream/rr/rrupstream.go:84
↓ 4 callers
FuncType
Option
Option is the type of configuration options for the statsd sink factory.
metric/sink/statsd/statsd.go:16
↓ 4 callers
FuncType
optionFunc
func(h *Hugorm)
hugorm/hugorm.go:164
↓ 1 callers
FuncType
MOption
MOption is a function manipulating configuration state for a metrics Client.
metric/moptions.go:14
↓ 1 callers
FuncType
RetryPolicy
RetryPolicy is a function deciding whether the request should be retried after a non-nil error from a call to the underlying RoundTripper
http/vtransport/vtransport.go:44
↓ 1 callers
FuncType
evWriterFunc
---
log/writers.go:40
↓ 1 callers
FuncType
handlerFunc
---
log/handler.go:25
↓ 1 callers
TypeAlias
stringValue
func initTOML() { Reset() SetConfigType("toml") r := bytes.NewReader(tomlExample) unmarshalReader(r, v.config) } make directories for testing fun
hugorm/hugorm_test.go:250
↓ 1 callers
FuncType
writerFunc
Note - The std lib alread had io.MultiWriter ---
log/writers.go:28
FuncType
Action
Action is a function called when an OS signal is received.
signals/signals.go:15
Struct
App2Config
--------------------- DefaultSubConfig -------------------------
jconf/subconfig_test.go:355
Struct
AppConfig
jconf/subconfig_test.go:19
Struct
AppConfigOpt
jconf/subconfig_test.go:24
FuncType
AuditFunction
AuditFunction is a function which will be called by a DynamicLogHandler after a HTTP request has been processed. It can be used for metrics by inspect
http/handlers/accesslog/loghandler.go:39
Interface
Cache
Cache is the interface needed to allow the RR upstream to remember where to send successful request for a period of time, (based on a cache key) to av
http/vtransport/upstream/rr/rrupstream.go:39
FuncType
CleanupFunc
CleanupFunc is a function to call after a srv.Server is fully exited. A slice of CleanupFunc will be called after all servers are completely done. The
daemon/run.go:19
Struct
Client
Client is the main object the applications holds to do metrics. It can be used directly for ad-hoc events, or be used to create persistent gauge/conte
metric/client.go:13
Interface
CloneableHandler
First some interfaces to test on what can be done with Handlers CloneableHandler is a Handler which can clone itself for modification with the purpose
log/swapper.go:24
Interface
Command
Command is the interface of a specific command
daemon/ctrl/ctrl.go:22
FuncType
ConfigFunc
ConfigFunc is a function returning Servers and Cleanups for Run() to run. Run() will call this every time it needs to configure it self on start and o
daemon/run.go:31
Interface
ConfigLoader
ConfigLoader is a ConfigSource which needs explicit loading to refresh it's values
hugorm/hugorm.go:78
Struct
ConfigMarshalError
ConfigMarshalError happens when failing to marshal the configuration.
hugorm/hugorm.go:42
Struct
ConfigParseError
ConfigParseError denotes failing to parse configuration file.
hugorm/configfile.go:15
Interface
ConfigSource
ConfigSource is a case sensitive recursive store of config key/value (values can be maps)
hugorm/hugorm.go:73
FuncType
ConfigureFunc
ConfigureFunc is a function returning srv.Server to run and the CleanupFuncs to call when they have completely shut down. This function is deprecated.
daemon/run.go:26
Struct
Counter
Counter is different from a GaugeInt64 in that it is reset to zero every time its flushed - and thus being server-side maintained.
metric/counter.go:10
FuncType
DecoderConfigOption
A DecoderConfigOption can be passed to hugorm.Unmarshal to configure mapstructure.DecoderConfig options
hugorm/unmarshal.go:19
Interface
Descripter
Descripter - A Server implementing the Descriptor interface will use that description in any logging
daemon/srv/server.go:54
Struct
Dialer
Dialer implements Dial* functions for connections which can be monitored by a IOActivityTimeout reaper
netutil/reaper/dialer.go:13
Struct
DurConfig
jconf/duration_test.go:10
Struct
Duration
Duration allows you to have nice durations in your json config, like "10s"
jconf/duration.go:10
Interface
DynamicLogHandler
temporary byte array for creating log lines. DynamicLogHandler is the interface of a logging http.Handler capable of turning on/off access log writing
http/handlers/accesslog/loghandler.go:26
Interface
EvWriter
EvWriter is a Writer which wants to know the original event of the []byte buffer (for filtering) Is has to also be a io.Writer, else it can't be used
log/writers.go:20
Struct
Event
Event reports named event with the upstream pool via a callback function. Currently named events: "quarantine", "retrying"
http/vtransport/upstream/rr/rrupstream.go:77
Struct
Event
Event is the basic log event type. Exported to be able to implement Handler interface for external packages.
log/event.go:12
Struct
EventKeyNames
EventKeyNames holds keynames for fixed event fields, when needed (such as in JSON)
log/event.go:58
Struct
ExtraConfig
jconf/subconfig_test.go:366
FuncType
Factory
Factory is a function to create new connections.
netutil/pool/channel.go:27
Struct
File
-----
hugorm/configfile.go:35
FuncType
FileTest
* * Providing tests like * https://www.freedesktop.org/software/systemd/man/sd_is_socket.html * */ FileTest is a function returning whether an *os.Fi
sd/filetests.go:22
Struct
FullConfig
jconf/subconfig_test.go:11
Struct
FurtherConfig
jconf/config_test.go:15
Struct
GaugeFloat64
GaugeFloat64 is a float64 gauge which stores its value as a uint64 to implement FlushReading() fast (saving an interface allocation)
metric/gauge.go:27
Struct
GaugeInt64
GaugeInt64 is a gauge using an int64 - meaning it can be decremented to negaive values
metric/gauge.go:20
Struct
GaugeUint64
A client maintained gauge which is only sampled regularly without information loss wrt. the absolute value. Can be used as a client side maintained co
metric/gauge.go:14
Interface
Handler
Handler is the interface needed to be a part of the Handler chain. Events are sent from a logger down a chain of Handlers. The final Handler (which d
log/handler.go:20
FuncType
HandlerOption
HandlerOption is an option-function provided by the package of a Handler
log/swapper.go:30
Struct
Histogram
Histogram is a series of int64 events all sent to the server
metric/histotimer.go:9
Struct
Hugorm
Hugorm is a prioritized configuration registry. It maintains a set of configuration sources, fetches values to populate those, and provides them accor
hugorm/hugorm.go:108
TypeAlias
KV
KV is a map of key/value pairs to pass to a Logger context or to a log function for structured logging. Value can be any stringable object, or a Value
log/kv.go:6
TypeAlias
KeyValues
KeyValues is a slice of interfaces alternating between key and value for data to be logged. Keys are at even numbered indexes and must be string. Valu
log/kv.go:12
FuncType
Lazy
Lazy evaluation of values to log returns stringable objects
log/lazy.go:9
Interface
LevelLogger
LevelLogger makes available methods compatible with the stdlib logger and an extended API for leveled logging. LevelLogger is implemented by *log.Logg
log/interfaces.go:11
Interface
LingeringServer
LingeringServer is a Server which potentially has background activity even after Serve() has exited. This could be connections still open and processi
daemon/server.go:31
Interface
Listener
Listener - Servers implementing the Listener interface will be called upon to Listen() before being asked to Serve()
daemon/srv/server.go:49
TypeAlias
ListenerGroup
ListenerGroup implement a gone/daemon/listen interface using the gone/sd library.
daemon/listen.go:45
Struct
ListenerSpec
ListenerSpec describes the properties of a listener so it can be instantiated either via the "sd" library or directly from stdlib package "net"
daemon/listen.go:17
Interface
ListeningServer
ListeningServer is a Server which wished to have its Listen() method called before Serve()
daemon/server.go:21
FuncType
LogFunc
LogFunc is the type of the function returned by *ok() methods, which will log at the level queried about if called.
log/interfaces.go:40
Interface
Logable
Logable is the interface needed for an object to be provided as a value to a nil key and then being allowed to generate it's k/v log values it self by
log/kv.go:17
Struct
Logger
Logger implements a stdlib *log.Logger source code compatible interface and extra methods for supporting leveled, structured and context logging. Don
log/gonelog.go:61
FuncType
LoggerFunc
A LoggerFunc can be set to make the daemon internal events log to a custom log library
daemon/log.go:22
FuncType
LoggerFunc
A LoggerFunc can be set to make the library log to a custom log library
daemon/srv/server.go:23
Struct
MConfig
MConfig holds configuration state for metric clients. This is an internal type.
metric/moptions.go:9
TypeAlias
MandatorySubConfig
MandatorySubConfig implements the SubConfig interface which will return ErrEmptySubConfig if there is no JSON config. This can help catch mistakes in
jconf/subconfig.go:33
TypeAlias
Mappings
Mappings map OS signals to functions
signals/signals.go:18
Interface
MaybeTtyWriter
some implementors of io.Writer for use in Formatters MaybeTtyWriter is a writer which know whether the underlying writer is a TTY
log/writers.go:13
Interface
Meter
Meter is a measurement instrument - a named metric. It measures stuff and can be registered with a client to be periodically reported to the Sink. Thi
metric/meter.go:23
Struct
Module2Config
jconf/subconfig_test.go:361
Struct
ModuleConfig
jconf/subconfig_test.go:29
Struct
MultiServer
MultiServer manages a slice of servers implementing the Serve interface (and possibly Listener/Waiter) The servers are started by calling Serve() and
daemon/srv/server.go:70
Struct
MyConfig
jconf/config_test.go:10
Struct
MyObj
log/logable_test.go:9
Struct
NotReadyError
NotReadyError is returned from a Serve() call if the server is already running, or during shutdown.
http/graceful/graceful.go:57
Struct
Numeric64
Numeric64 is an internal datatype used to generalize an eventStream to hold any 64 bit numeric value. This is a performance optimation. An interface{}
metric/num64/numeric64.go:17
Interface
Option
---------------------------------- OPTIONS ------------------------------
hugorm/hugorm.go:160
TypeAlias
OptionalSubConfig
OptionalSubConfig implements the SubConfig interface and silently ignores being passed nil JSON values. Users of OptionalSubConfig will have to check
jconf/subconfig.go:28
Interface
PacketListener
PacketListener - an object which can create a slice of PacketConn listeners when invoked
netutil/listen.go:14
FuncType
PinKeyFunc
PinKeyFunc is a function which, based on a request, returns a string as a routing key for the request, to allow the Round Robin upstream to cache the
http/vtransport/upstream/rr/rrupstream.go:56
Interface
Pool
Pool interface describes a pool implementation. A pool should have maximum capacity. An ideal pool is threadsafe and easy to use.
netutil/pool/pool.go:15
Struct
PoolConn
PoolConn is a wrapper around net.Conn to modify the the behavior of net.Conn's Close() method.
netutil/pool/conn.go:7
TypeAlias
Priority
Priority is the std library syslog.Priority type
log/syslog/syslog.go:9
Interface
RecordingResponseWriter
RecordingResponseWriter is the interface of the recorder.
http/rrwriter/responselogger.go:40
Interface
RoundTripContext
RoundTripContext is an object maintained by the virtual upstream implementation which is opaque to the VirtualTransport apart from the methods specifi
http/vtransport/vtransport.go:15
Interface
Server
Server is the interface of objects daemon.Run() will manage. These objects will be single-use only with a lifetime: Listen, Serve, Shutdown, - and pos
daemon/server.go:14
Interface
Server
Server is an server started by the master MultiServer, by calling Serve() which is expected to block until the server is signaled to stop by an invoca
daemon/srv/server.go:43
Struct
Server
Server wraps around gone/http/graceful HTTP server implementing gone/the daemon/srv.Server interface If ErrorLog is set, errors will be logged to it.
http/server.go:17
Struct
Server
*heavily* inspired from https://github.com/tylerb/graceful But without the os.Signal stuff - KISS Server implements an extended http.Server with a Shu
http/graceful/graceful.go:19
Struct
Server
Server wraps around gone/http/graceful HTTP server implementing gone/the daemon/srv.Server interface If ErrorLog is set, errors will be logged to it.
http/gonesrv/server.go:18
Struct
Server
Server implements a server accepting connections on a UNIX domain socket on which registered commands can be invoked. The client connections to this s
daemon/ctrl/ctrl.go:65
Struct
Server
----------------- The actual HTTP server ---------------------- maintaining a simple string as state. Server is an example server which can be manipul
daemon/ctrl/example/server.go:34
Struct
Set
Set is a not too efficient implementation of that statsd "set" concept. The client will send set membership notifications. Statsd will periodically fu
metric/set.go:13
Interface
Sink
Sink is a sink for metrics data which methods need to be go-routine safe
metric/sink.go:6
Struct
Sink
Sink is a go-routine safe version of a Statsd sink. Call UnlockedSink() to get a faster, but not go-routine safe Sink.
metric/sink/statsd/statsd.go:28
Interface
StdFormatter
--- StdFormatter allows quering a formatting handler for flags and prefix compatible with the stdlib log library
log/interfaces.go:46
Interface
StdLogger
StdLogger is the interface used by the standard lib *log.Logger This is the API for actually logging stuff.
log/interfaces.go:24
Interface
StdLoggerFull
StdLoggerFull is mostly for documentation purposes. This is the full set of methods supported by the standard logger. You would only use the extra met
log/interfaces.go:64
Interface
StdMutableFormatter
StdMutableFormatter is the interface for a Logger which directly can change the stdlib flags, prefix and output io.Writer attributes in a synchronized
log/interfaces.go:54
Struct
StdlibAdapter
--- StdlibAdapter wraps a Logger and allows it to be passed to the stdlib logger's SetOutput. It will extract date/timestamps, filenames, and messages
log/stdgw.go:32
next →
1–100 of 173, ranked by callers