Arista Go library

在 Arista Go 代码中使用了相当通用的构建模块,并为所有人的利益开源。「Fairly general building blocks used in Arista Go code and open-sourced for the benefit of all.」

Github星跟踪图

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. Requires go1.9.

key

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. Because we
often use a map[string]interface{} (or other non-hashable type) as a key to a map, the type
key.Map is used to represent a map that can store both natively hashable and non-hashable types
alike. To do this, a non-hashable type must have a custom Hash() method defined. 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.

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.

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.

influxlib

This is a influxdb library that provides easy methods of connecting to, writing to,
and reading from the service.

test

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

Examples

TBD

主要指标

概览
名称与所有者aristanetworks/goarista
主编程语言Go
编程语言Makefile (语言数: 7)
平台
许可证Apache License 2.0
所有者活动
创建于2015-11-03 09:18:43
推送于2025-06-04 12:14:54
最后一次提交2025-06-01 01:38:10
发布数7
最新版本名称ockafka-v0.0.5 (发布于 )
第一版名称ockafka-v0.0.1 (发布于 )
用户参与
星数220
关注者数26
派生数70
提交数826
已启用问题?
问题数50
打开的问题数12
拉请求数9
打开的拉请求数6
关闭的拉请求数24
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?