MCPcopy Index your code
hub / github.com/aristanetworks/goarista

github.com/aristanetworks/goarista @ockafka-v0.0.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release ockafka-v0.0.5 ↗ · + Follow
1,100 symbols 3,067 edges 137 files 367 documented · 33% 4 cross-repo links updated 7mo agoockafka-v0.0.5 · 2020-05-12★ 23012 open issues

Browse by type

Functions 923 Types & classes 177
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 468
Function 455
Struct 116
TypeAlias 34
Interface 21
FuncType 6

Languages

Go100%

Modules by API surface

key/key.go124 symbols
lanz/proto/lanz.pb.go108 symbols
gnmireverse/gnmireverse.pb.go34 symbols
key/map.go22 symbols
cmd/test2influxdb/main.go22 symbols
path/path_test.go21 symbols
gnmi/operation.go21 symbols
monitor/stats/histogram.go19 symbols
key/key_test.go18 symbols
gnmireverse/client/main.go17 symbols
path/map_test.go16 symbols
kafka/producer/producer_test.go16 symbols

For agents

$ claude mcp add goarista \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page