prysm-pulse/vendor/github.com/aristanetworks/goarista
Raul Jordan da20785685 Merge branch 'master' into gitter-badge-1
Former-commit-id: 23f542f43b4b493e38f5aa4c29788ed93a63b43b [formerly 71b23a6a28eb045fcfeab6329de69f1e5455486b]
Former-commit-id: d12b3a6decc876f010a71f98e11df7387c1aaf2a
2018-01-13 17:31:28 -05:00
..
monotime Merge branch 'master' into gitter-badge-1 2018-01-13 17:31:28 -05:00
.travis.yml Merge branch 'master' into gitter-badge-1 2018-01-13 17:31:28 -05:00
AUTHORS Merge branch 'master' into gitter-badge-1 2018-01-13 17:31:28 -05:00
check_line_len.awk Merge branch 'master' into gitter-badge-1 2018-01-13 17:31:28 -05:00
COPYING Merge branch 'master' into gitter-badge-1 2018-01-13 17:31:28 -05:00
Dockerfile Merge branch 'master' into gitter-badge-1 2018-01-13 17:31:28 -05:00
iptables.sh Merge branch 'master' into gitter-badge-1 2018-01-13 17:31:28 -05:00
Makefile Merge branch 'master' into gitter-badge-1 2018-01-13 17:31:28 -05:00
README.md Merge branch 'master' into gitter-badge-1 2018-01-13 17:31:28 -05:00
rpmbuild.sh Merge branch 'master' into gitter-badge-1 2018-01-13 17:31:28 -05:00

Arista Go library Build Status codecov.io GoDoc Go Report Card

areflect

Helper functions to work with the reflect package. Contains ForceExport(), which bypasses the check in reflect.Value that prevents accessing unexported attributes.

monotime

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().

cmd

See the cmd directory.

dscp

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.

key

Provides a common type used across various Arista projects, named key.Key, which 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.

lanz

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.

monitor

A library to help expose monitoring metrics on top of the expvar infrastructure.

netns

netns.Do(namespace, cb) provides a handy mechanism to execute the given callback cb in the given network namespace.

pathmap

A datastructure for mapping keys of type string slice to values. It allows for some fuzzy matching.

test

This is a Go library to help in writing unit tests.

Examples

TBD