Fairly general building blocks used in Arista Go code and open-sourced for the benefit of all (Evacuated from NSA/Microsoft Github)
anonymous 00fb388f27 ugh where does redis v.4 come from | 5 éve | |
---|---|---|
areflect | 7 éve | |
cmd | 6 éve | |
debian | 5 éve | |
dscp | 6 éve | |
elasticsearch | 7 éve | |
gnmi | 6 éve | |
kafka | 6 éve | |
key | 6 éve | |
lanz | 6 éve | |
monitor | 6 éve | |
monotime | 6 éve | |
netns | 6 éve | |
openconfig | 6 éve | |
path | 6 éve | |
sizeof | 6 éve | |
test | 6 éve | |
value | 7 éve | |
.travis.yml | 6 éve | |
AUTHORS | 9 éve | |
COPYING | 9 éve | |
DEPENDENCIES | 6 éve | |
Dockerfile | 6 éve | |
Makefile | 6 éve | |
README.md | 6 éve | |
check_copyright_notice.sh | 7 éve | |
check_line_len.awk | 7 éve | |
rpmbuild.sh | 7 éve | |
test.go | 6 éve |
Helper functions to work with the reflect
package. Contains
ForceExport()
, which bypasses the check in reflect.Value
that
prevents accessing unexported attributes.
Provides access to a fast monotonic clock source, to fill in the gap in the
Go standard library, which lacks one.
Don't use time.Now()
in code that needs to time things or otherwise assume
that time passes at a constant rate, instead use monotime.Now()
.
See the cmd directory.
Provides ListenTCPWithTOS()
, which is a replacement for net.ListenTCP()
that allows specifying the ToS (Type of Service), to specify DSCP / ECN /
class of service flags to use for incoming connections. Requires go1.9
.
Provides common types used across various Arista projects. The type key.Key
is used to work around the fact that Go can't let one use a non-hashable type
as a key to a map
, and we sometimes need to use a map[string]interface{}
(or something containing one) as a key to maps. As a result, we frequently use
map[key.Key]interface{}
instead of just map[interface{}]interface{}
when we
need a generic key-value collection. The type key.Path
is the representation
of a path broken down into individual elements, where each element is a key.Key
.
The type key.Pointer
represents a pointer to a key.Path
.
Provides functions that can be used to manipulate key.Path
objects. The type
path.Map
may be used for mapping paths to values. It allows for some fuzzy
matching for paths containing path.Wildcard
keys.
A client for LANZ streaming servers. It connects to a LANZ streaming server, listens for notifications, decodes them and sends the LANZ protobuf on the provided channel.
A library to help expose monitoring metrics on top of the
expvar
infrastructure.
netns.Do(namespace, cb)
provides a handy mechanism to execute the given
callback cb
in the given network namespace.
This is a Go library to help in writing unit tests.
TBD