Skip to content

API reference ​

The links below open the Go reference for v2.0.1. Import SDK packages under github.com/zhh2001/p4runtime-go-controller/v2.

PackagePurpose
clientConnections, arbitration, pipeline RPCs, reads, writes and stream callbacks.
pipelineLoading P4Info and device configuration, resource lookup and copied definitions.
tableentryDirect-action table entry and key builders.
codecInteger and address encoding helpers.
packetioPacketIn and PacketOut with named metadata.
digestNamed subscriptions and digest acknowledgements.
counterIndirect counter reads and writes.
meterIndirect meter reads, configuration and reset.
registerRegister reads and validated P4Data writes.
preMulticast groups and clone sessions.
errorsError sentinels and per-update write results.
metricsReserved package for planned metrics support. It has no collector API.

Start with the quickstart for a complete program. Resource guides cover pipeline ownership, counters, meters, registers and packet replication.

Released under the Apache License 2.0.