MCPcopy Create free account

hub / github.com/One-com/gone / types & classes

Types & classes173 in github.com/One-com/gone

↓ 8 callersFuncTypeRunOption
RunOption change the behaviour of Run()
daemon/run.go:65
↓ 7 callersFuncTypeRROption
RROption is an option function configuring a Round Robin VirtualUpstream
http/vtransport/upstream/rr/rrupstream.go:84
↓ 4 callersFuncTypeOption
Option is the type of configuration options for the statsd sink factory.
metric/sink/statsd/statsd.go:16
↓ 4 callersFuncTypeoptionFunc
func(h *Hugorm)
hugorm/hugorm.go:164
↓ 1 callersFuncTypeMOption
MOption is a function manipulating configuration state for a metrics Client.
metric/moptions.go:14
↓ 1 callersFuncTypeRetryPolicy
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 callersFuncTypeevWriterFunc
---
log/writers.go:40
↓ 1 callersFuncTypehandlerFunc
---
log/handler.go:25
↓ 1 callersTypeAliasstringValue
func initTOML() { Reset() SetConfigType("toml") r := bytes.NewReader(tomlExample) unmarshalReader(r, v.config) } make directories for testing fun
hugorm/hugorm_test.go:250
↓ 1 callersFuncTypewriterFunc
Note - The std lib alread had io.MultiWriter ---
log/writers.go:28
FuncTypeAction
Action is a function called when an OS signal is received.
signals/signals.go:15
StructApp2Config
--------------------- DefaultSubConfig -------------------------
jconf/subconfig_test.go:355
StructAppConfig
jconf/subconfig_test.go:19
StructAppConfigOpt
jconf/subconfig_test.go:24
FuncTypeAuditFunction
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
InterfaceCache
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
FuncTypeCleanupFunc
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
StructClient
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
InterfaceCloneableHandler
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
InterfaceCommand
Command is the interface of a specific command
daemon/ctrl/ctrl.go:22
FuncTypeConfigFunc
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
InterfaceConfigLoader
ConfigLoader is a ConfigSource which needs explicit loading to refresh it's values
hugorm/hugorm.go:78
StructConfigMarshalError
ConfigMarshalError happens when failing to marshal the configuration.
hugorm/hugorm.go:42
StructConfigParseError
ConfigParseError denotes failing to parse configuration file.
hugorm/configfile.go:15
InterfaceConfigSource
ConfigSource is a case sensitive recursive store of config key/value (values can be maps)
hugorm/hugorm.go:73
FuncTypeConfigureFunc
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
StructCounter
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
FuncTypeDecoderConfigOption
A DecoderConfigOption can be passed to hugorm.Unmarshal to configure mapstructure.DecoderConfig options
hugorm/unmarshal.go:19
InterfaceDescripter
Descripter - A Server implementing the Descriptor interface will use that description in any logging
daemon/srv/server.go:54
StructDialer
Dialer implements Dial* functions for connections which can be monitored by a IOActivityTimeout reaper
netutil/reaper/dialer.go:13
StructDurConfig
jconf/duration_test.go:10
StructDuration
Duration allows you to have nice durations in your json config, like "10s"
jconf/duration.go:10
InterfaceDynamicLogHandler
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
InterfaceEvWriter
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
StructEvent
Event reports named event with the upstream pool via a callback function. Currently named events: "quarantine", "retrying"
http/vtransport/upstream/rr/rrupstream.go:77
StructEvent
Event is the basic log event type. Exported to be able to implement Handler interface for external packages.
log/event.go:12
StructEventKeyNames
EventKeyNames holds keynames for fixed event fields, when needed (such as in JSON)
log/event.go:58
StructExtraConfig
jconf/subconfig_test.go:366
FuncTypeFactory
Factory is a function to create new connections.
netutil/pool/channel.go:27
StructFile
-----
hugorm/configfile.go:35
FuncTypeFileTest
* * 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
StructFullConfig
jconf/subconfig_test.go:11
StructFurtherConfig
jconf/config_test.go:15
StructGaugeFloat64
GaugeFloat64 is a float64 gauge which stores its value as a uint64 to implement FlushReading() fast (saving an interface allocation)
metric/gauge.go:27
StructGaugeInt64
GaugeInt64 is a gauge using an int64 - meaning it can be decremented to negaive values
metric/gauge.go:20
StructGaugeUint64
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
InterfaceHandler
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
FuncTypeHandlerOption
HandlerOption is an option-function provided by the package of a Handler
log/swapper.go:30
StructHistogram
Histogram is a series of int64 events all sent to the server
metric/histotimer.go:9
StructHugorm
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
TypeAliasKV
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
TypeAliasKeyValues
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
FuncTypeLazy
Lazy evaluation of values to log returns stringable objects
log/lazy.go:9
InterfaceLevelLogger
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
InterfaceLingeringServer
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
InterfaceListener
Listener - Servers implementing the Listener interface will be called upon to Listen() before being asked to Serve()
daemon/srv/server.go:49
TypeAliasListenerGroup
ListenerGroup implement a gone/daemon/listen interface using the gone/sd library.
daemon/listen.go:45
StructListenerSpec
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
InterfaceListeningServer
ListeningServer is a Server which wished to have its Listen() method called before Serve()
daemon/server.go:21
FuncTypeLogFunc
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
InterfaceLogable
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
StructLogger
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
FuncTypeLoggerFunc
A LoggerFunc can be set to make the daemon internal events log to a custom log library
daemon/log.go:22
FuncTypeLoggerFunc
A LoggerFunc can be set to make the library log to a custom log library
daemon/srv/server.go:23
StructMConfig
MConfig holds configuration state for metric clients. This is an internal type.
metric/moptions.go:9
TypeAliasMandatorySubConfig
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
TypeAliasMappings
Mappings map OS signals to functions
signals/signals.go:18
InterfaceMaybeTtyWriter
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
InterfaceMeter
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
StructModule2Config
jconf/subconfig_test.go:361
StructModuleConfig
jconf/subconfig_test.go:29
StructMultiServer
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
StructMyConfig
jconf/config_test.go:10
StructMyObj
log/logable_test.go:9
StructNotReadyError
NotReadyError is returned from a Serve() call if the server is already running, or during shutdown.
http/graceful/graceful.go:57
StructNumeric64
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
InterfaceOption
---------------------------------- OPTIONS ------------------------------
hugorm/hugorm.go:160
TypeAliasOptionalSubConfig
OptionalSubConfig implements the SubConfig interface and silently ignores being passed nil JSON values. Users of OptionalSubConfig will have to check
jconf/subconfig.go:28
InterfacePacketListener
PacketListener - an object which can create a slice of PacketConn listeners when invoked
netutil/listen.go:14
FuncTypePinKeyFunc
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
InterfacePool
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
StructPoolConn
PoolConn is a wrapper around net.Conn to modify the the behavior of net.Conn's Close() method.
netutil/pool/conn.go:7
TypeAliasPriority
Priority is the std library syslog.Priority type
log/syslog/syslog.go:9
InterfaceRecordingResponseWriter
RecordingResponseWriter is the interface of the recorder.
http/rrwriter/responselogger.go:40
InterfaceRoundTripContext
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
InterfaceServer
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
InterfaceServer
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
StructServer
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
StructServer
*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
StructServer
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
StructServer
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
StructServer
----------------- 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
StructSet
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
InterfaceSink
Sink is a sink for metrics data which methods need to be go-routine safe
metric/sink.go:6
StructSink
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
InterfaceStdFormatter
--- StdFormatter allows quering a formatting handler for flags and prefix compatible with the stdlib log library
log/interfaces.go:46
InterfaceStdLogger
StdLogger is the interface used by the standard lib *log.Logger This is the API for actually logging stuff.
log/interfaces.go:24
InterfaceStdLoggerFull
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
InterfaceStdMutableFormatter
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
StructStdlibAdapter
--- 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