aboutsummaryrefslogtreecommitdiffstats
path: root/examples/bin_api/stats/stats.ba.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bin_api/stats/stats.ba.go')
-rw-r--r--examples/bin_api/stats/stats.ba.go180
1 files changed, 6 insertions, 174 deletions
diff --git a/examples/bin_api/stats/stats.ba.go b/examples/bin_api/stats/stats.ba.go
index b66a077..58c178f 100644
--- a/examples/bin_api/stats/stats.ba.go
+++ b/examples/bin_api/stats/stats.ba.go
@@ -1,16 +1,14 @@
// Code generated by GoVPP binapi-generator. DO NOT EDIT.
-// source: stats.api.json
+// source: stats.api.json
/*
-Package stats is a generated VPP binary API of the 'stats' VPP module.
+ Package stats is a generated from VPP binary API module 'stats'.
-It is generated from this file:
- stats.api.json
+ It contains following objects:
+ 39 messages
+ 10 types
+ 14 services
-It contains these VPP binary API objects:
- 39 messages
- 10 types
- 14 services
*/
package stats
@@ -26,7 +24,6 @@ var _ = bytes.NewBuffer
/* Types */
// VlibCounter represents the VPP binary API type 'vlib_counter'.
-// Generated from 'stats.api.json', line 1004:
//
// "vlib_counter",
// [
@@ -54,7 +51,6 @@ func (*VlibCounter) GetCrcString() string {
}
// VnetCombinedCounter represents the VPP binary API type 'vnet_combined_counter'.
-// Generated from 'stats.api.json', line 1018:
//
// "vnet_combined_counter",
// [
@@ -157,7 +153,6 @@ func (*VnetCombinedCounter) GetCrcString() string {
}
// VnetSimpleCounter represents the VPP binary API type 'vnet_simple_counter'.
-// Generated from 'stats.api.json', line 1092:
//
// "vnet_simple_counter",
// [
@@ -225,7 +220,6 @@ func (*VnetSimpleCounter) GetCrcString() string {
}
// IP4FibCounter represents the VPP binary API type 'ip4_fib_counter'.
-// Generated from 'stats.api.json', line 1138:
//
// "ip4_fib_counter",
// [
@@ -263,7 +257,6 @@ func (*IP4FibCounter) GetCrcString() string {
}
// IP4MfibCounter represents the VPP binary API type 'ip4_mfib_counter'.
-// Generated from 'stats.api.json', line 1160:
//
// "ip4_mfib_counter",
// [
@@ -308,7 +301,6 @@ func (*IP4MfibCounter) GetCrcString() string {
}
// IP4NbrCounter represents the VPP binary API type 'ip4_nbr_counter'.
-// Generated from 'stats.api.json', line 1188:
//
// "ip4_nbr_counter",
// [
@@ -346,7 +338,6 @@ func (*IP4NbrCounter) GetCrcString() string {
}
// IP6FibCounter represents the VPP binary API type 'ip6_fib_counter'.
-// Generated from 'stats.api.json', line 1210:
//
// "ip6_fib_counter",
// [
@@ -385,7 +376,6 @@ func (*IP6FibCounter) GetCrcString() string {
}
// IP6MfibCounter represents the VPP binary API type 'ip6_mfib_counter'.
-// Generated from 'stats.api.json', line 1233:
//
// "ip6_mfib_counter",
// [
@@ -430,7 +420,6 @@ func (*IP6MfibCounter) GetCrcString() string {
}
// IP6NbrCounter represents the VPP binary API type 'ip6_nbr_counter'.
-// Generated from 'stats.api.json', line 1261:
//
// "ip6_nbr_counter",
// [
@@ -469,7 +458,6 @@ func (*IP6NbrCounter) GetCrcString() string {
}
// UDPEncapCounter represents the VPP binary API type 'udp_encap_counter'.
-// Generated from 'stats.api.json', line 1284:
//
// "udp_encap_counter",
// [
@@ -504,7 +492,6 @@ func (*UDPEncapCounter) GetCrcString() string {
/* Messages */
// WantStats represents the VPP binary API message 'want_stats'.
-// Generated from 'stats.api.json', line 4:
//
// "want_stats",
// [
@@ -545,12 +532,8 @@ func (*WantStats) GetCrcString() string {
func (*WantStats) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewWantStats() api.Message {
- return &WantStats{}
-}
// WantStatsReply represents the VPP binary API message 'want_stats_reply'.
-// Generated from 'stats.api.json', line 30:
//
// "want_stats_reply",
// [
@@ -582,12 +565,8 @@ func (*WantStatsReply) GetCrcString() string {
func (*WantStatsReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewWantStatsReply() api.Message {
- return &WantStatsReply{}
-}
// WantInterfaceSimpleStats represents the VPP binary API message 'want_interface_simple_stats'.
-// Generated from 'stats.api.json', line 48:
//
// "want_interface_simple_stats",
// [
@@ -628,12 +607,8 @@ func (*WantInterfaceSimpleStats) GetCrcString() string {
func (*WantInterfaceSimpleStats) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewWantInterfaceSimpleStats() api.Message {
- return &WantInterfaceSimpleStats{}
-}
// WantInterfaceSimpleStatsReply represents the VPP binary API message 'want_interface_simple_stats_reply'.
-// Generated from 'stats.api.json', line 74:
//
// "want_interface_simple_stats_reply",
// [
@@ -665,12 +640,8 @@ func (*WantInterfaceSimpleStatsReply) GetCrcString() string {
func (*WantInterfaceSimpleStatsReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewWantInterfaceSimpleStatsReply() api.Message {
- return &WantInterfaceSimpleStatsReply{}
-}
// WantPerInterfaceSimpleStats represents the VPP binary API message 'want_per_interface_simple_stats'.
-// Generated from 'stats.api.json', line 92:
//
// "want_per_interface_simple_stats",
// [
@@ -723,12 +694,8 @@ func (*WantPerInterfaceSimpleStats) GetCrcString() string {
func (*WantPerInterfaceSimpleStats) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewWantPerInterfaceSimpleStats() api.Message {
- return &WantPerInterfaceSimpleStats{}
-}
// WantPerInterfaceSimpleStatsReply represents the VPP binary API message 'want_per_interface_simple_stats_reply'.
-// Generated from 'stats.api.json', line 128:
//
// "want_per_interface_simple_stats_reply",
// [
@@ -760,12 +727,8 @@ func (*WantPerInterfaceSimpleStatsReply) GetCrcString() string {
func (*WantPerInterfaceSimpleStatsReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewWantPerInterfaceSimpleStatsReply() api.Message {
- return &WantPerInterfaceSimpleStatsReply{}
-}
// WantInterfaceCombinedStats represents the VPP binary API message 'want_interface_combined_stats'.
-// Generated from 'stats.api.json', line 146:
//
// "want_interface_combined_stats",
// [
@@ -806,12 +769,8 @@ func (*WantInterfaceCombinedStats) GetCrcString() string {
func (*WantInterfaceCombinedStats) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewWantInterfaceCombinedStats() api.Message {
- return &WantInterfaceCombinedStats{}
-}
// WantInterfaceCombinedStatsReply represents the VPP binary API message 'want_interface_combined_stats_reply'.
-// Generated from 'stats.api.json', line 172:
//
// "want_interface_combined_stats_reply",
// [
@@ -843,12 +802,8 @@ func (*WantInterfaceCombinedStatsReply) GetCrcString() string {
func (*WantInterfaceCombinedStatsReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewWantInterfaceCombinedStatsReply() api.Message {
- return &WantInterfaceCombinedStatsReply{}
-}
// WantPerInterfaceCombinedStats represents the VPP binary API message 'want_per_interface_combined_stats'.
-// Generated from 'stats.api.json', line 190:
//
// "want_per_interface_combined_stats",
// [
@@ -901,12 +856,8 @@ func (*WantPerInterfaceCombinedStats) GetCrcString() string {
func (*WantPerInterfaceCombinedStats) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewWantPerInterfaceCombinedStats() api.Message {
- return &WantPerInterfaceCombinedStats{}
-}
// WantPerInterfaceCombinedStatsReply represents the VPP binary API message 'want_per_interface_combined_stats_reply'.
-// Generated from 'stats.api.json', line 226:
//
// "want_per_interface_combined_stats_reply",
// [
@@ -938,12 +889,8 @@ func (*WantPerInterfaceCombinedStatsReply) GetCrcString() string {
func (*WantPerInterfaceCombinedStatsReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewWantPerInterfaceCombinedStatsReply() api.Message {
- return &WantPerInterfaceCombinedStatsReply{}
-}
// WantIP4FibStats represents the VPP binary API message 'want_ip4_fib_stats'.
-// Generated from 'stats.api.json', line 244:
//
// "want_ip4_fib_stats",
// [
@@ -984,12 +931,8 @@ func (*WantIP4FibStats) GetCrcString() string {
func (*WantIP4FibStats) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewWantIP4FibStats() api.Message {
- return &WantIP4FibStats{}
-}
// WantIP4FibStatsReply represents the VPP binary API message 'want_ip4_fib_stats_reply'.
-// Generated from 'stats.api.json', line 270:
//
// "want_ip4_fib_stats_reply",
// [
@@ -1021,12 +964,8 @@ func (*WantIP4FibStatsReply) GetCrcString() string {
func (*WantIP4FibStatsReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewWantIP4FibStatsReply() api.Message {
- return &WantIP4FibStatsReply{}
-}
// WantIP6FibStats represents the VPP binary API message 'want_ip6_fib_stats'.
-// Generated from 'stats.api.json', line 288:
//
// "want_ip6_fib_stats",
// [
@@ -1067,12 +1006,8 @@ func (*WantIP6FibStats) GetCrcString() string {
func (*WantIP6FibStats) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewWantIP6FibStats() api.Message {
- return &WantIP6FibStats{}
-}
// WantIP6FibStatsReply represents the VPP binary API message 'want_ip6_fib_stats_reply'.
-// Generated from 'stats.api.json', line 314:
//
// "want_ip6_fib_stats_reply",
// [
@@ -1104,12 +1039,8 @@ func (*WantIP6FibStatsReply) GetCrcString() string {
func (*WantIP6FibStatsReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewWantIP6FibStatsReply() api.Message {
- return &WantIP6FibStatsReply{}
-}
// WantIP4MfibStats represents the VPP binary API message 'want_ip4_mfib_stats'.
-// Generated from 'stats.api.json', line 332:
//
// "want_ip4_mfib_stats",
// [
@@ -1150,12 +1081,8 @@ func (*WantIP4MfibStats) GetCrcString() string {
func (*WantIP4MfibStats) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewWantIP4MfibStats() api.Message {
- return &WantIP4MfibStats{}
-}
// WantIP4MfibStatsReply represents the VPP binary API message 'want_ip4_mfib_stats_reply'.
-// Generated from 'stats.api.json', line 358:
//
// "want_ip4_mfib_stats_reply",
// [
@@ -1187,12 +1114,8 @@ func (*WantIP4MfibStatsReply) GetCrcString() string {
func (*WantIP4MfibStatsReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewWantIP4MfibStatsReply() api.Message {
- return &WantIP4MfibStatsReply{}
-}
// WantIP6MfibStats represents the VPP binary API message 'want_ip6_mfib_stats'.
-// Generated from 'stats.api.json', line 376:
//
// "want_ip6_mfib_stats",
// [
@@ -1233,12 +1156,8 @@ func (*WantIP6MfibStats) GetCrcString() string {
func (*WantIP6MfibStats) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewWantIP6MfibStats() api.Message {
- return &WantIP6MfibStats{}
-}
// WantIP6MfibStatsReply represents the VPP binary API message 'want_ip6_mfib_stats_reply'.
-// Generated from 'stats.api.json', line 402:
//
// "want_ip6_mfib_stats_reply",
// [
@@ -1270,12 +1189,8 @@ func (*WantIP6MfibStatsReply) GetCrcString() string {
func (*WantIP6MfibStatsReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewWantIP6MfibStatsReply() api.Message {
- return &WantIP6MfibStatsReply{}
-}
// WantIP4NbrStats represents the VPP binary API message 'want_ip4_nbr_stats'.
-// Generated from 'stats.api.json', line 420:
//
// "want_ip4_nbr_stats",
// [
@@ -1316,12 +1231,8 @@ func (*WantIP4NbrStats) GetCrcString() string {
func (*WantIP4NbrStats) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewWantIP4NbrStats() api.Message {
- return &WantIP4NbrStats{}
-}
// WantIP4NbrStatsReply represents the VPP binary API message 'want_ip4_nbr_stats_reply'.
-// Generated from 'stats.api.json', line 446:
//
// "want_ip4_nbr_stats_reply",
// [
@@ -1353,12 +1264,8 @@ func (*WantIP4NbrStatsReply) GetCrcString() string {
func (*WantIP4NbrStatsReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewWantIP4NbrStatsReply() api.Message {
- return &WantIP4NbrStatsReply{}
-}
// WantIP6NbrStats represents the VPP binary API message 'want_ip6_nbr_stats'.
-// Generated from 'stats.api.json', line 464:
//
// "want_ip6_nbr_stats",
// [
@@ -1399,12 +1306,8 @@ func (*WantIP6NbrStats) GetCrcString() string {
func (*WantIP6NbrStats) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewWantIP6NbrStats() api.Message {
- return &WantIP6NbrStats{}
-}
// WantIP6NbrStatsReply represents the VPP binary API message 'want_ip6_nbr_stats_reply'.
-// Generated from 'stats.api.json', line 490:
//
// "want_ip6_nbr_stats_reply",
// [
@@ -1436,12 +1339,8 @@ func (*WantIP6NbrStatsReply) GetCrcString() string {
func (*WantIP6NbrStatsReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewWantIP6NbrStatsReply() api.Message {
- return &WantIP6NbrStatsReply{}
-}
// VnetIP4FibCounters represents the VPP binary API message 'vnet_ip4_fib_counters'.
-// Generated from 'stats.api.json', line 508:
//
// "vnet_ip4_fib_counters",
// [
@@ -1481,12 +1380,8 @@ func (*VnetIP4FibCounters) GetCrcString() string {
func (*VnetIP4FibCounters) GetMessageType() api.MessageType {
return api.OtherMessage
}
-func NewVnetIP4FibCounters() api.Message {
- return &VnetIP4FibCounters{}
-}
// VnetIP4MfibCounters represents the VPP binary API message 'vnet_ip4_mfib_counters'.
-// Generated from 'stats.api.json', line 532:
//
// "vnet_ip4_mfib_counters",
// [
@@ -1526,12 +1421,8 @@ func (*VnetIP4MfibCounters) GetCrcString() string {
func (*VnetIP4MfibCounters) GetMessageType() api.MessageType {
return api.OtherMessage
}
-func NewVnetIP4MfibCounters() api.Message {
- return &VnetIP4MfibCounters{}
-}
// VnetIP4NbrCounters represents the VPP binary API message 'vnet_ip4_nbr_counters'.
-// Generated from 'stats.api.json', line 556:
//
// "vnet_ip4_nbr_counters",
// [
@@ -1576,12 +1467,8 @@ func (*VnetIP4NbrCounters) GetCrcString() string {
func (*VnetIP4NbrCounters) GetMessageType() api.MessageType {
return api.OtherMessage
}
-func NewVnetIP4NbrCounters() api.Message {
- return &VnetIP4NbrCounters{}
-}
// VnetIP6FibCounters represents the VPP binary API message 'vnet_ip6_fib_counters'.
-// Generated from 'stats.api.json', line 584:
//
// "vnet_ip6_fib_counters",
// [
@@ -1621,12 +1508,8 @@ func (*VnetIP6FibCounters) GetCrcString() string {
func (*VnetIP6FibCounters) GetMessageType() api.MessageType {
return api.OtherMessage
}
-func NewVnetIP6FibCounters() api.Message {
- return &VnetIP6FibCounters{}
-}
// VnetIP6MfibCounters represents the VPP binary API message 'vnet_ip6_mfib_counters'.
-// Generated from 'stats.api.json', line 608:
//
// "vnet_ip6_mfib_counters",
// [
@@ -1666,12 +1549,8 @@ func (*VnetIP6MfibCounters) GetCrcString() string {
func (*VnetIP6MfibCounters) GetMessageType() api.MessageType {
return api.OtherMessage
}
-func NewVnetIP6MfibCounters() api.Message {
- return &VnetIP6MfibCounters{}
-}
// VnetIP6NbrCounters represents the VPP binary API message 'vnet_ip6_nbr_counters'.
-// Generated from 'stats.api.json', line 632:
//
// "vnet_ip6_nbr_counters",
// [
@@ -1716,12 +1595,8 @@ func (*VnetIP6NbrCounters) GetCrcString() string {
func (*VnetIP6NbrCounters) GetMessageType() api.MessageType {
return api.OtherMessage
}
-func NewVnetIP6NbrCounters() api.Message {
- return &VnetIP6NbrCounters{}
-}
// VnetInterfaceSimpleCounters represents the VPP binary API message 'vnet_interface_simple_counters'.
-// Generated from 'stats.api.json', line 660:
//
// "vnet_interface_simple_counters",
// [
@@ -1766,12 +1641,8 @@ func (*VnetInterfaceSimpleCounters) GetCrcString() string {
func (*VnetInterfaceSimpleCounters) GetMessageType() api.MessageType {
return api.OtherMessage
}
-func NewVnetInterfaceSimpleCounters() api.Message {
- return &VnetInterfaceSimpleCounters{}
-}
// VnetInterfaceCombinedCounters represents the VPP binary API message 'vnet_interface_combined_counters'.
-// Generated from 'stats.api.json', line 688:
//
// "vnet_interface_combined_counters",
// [
@@ -1816,12 +1687,8 @@ func (*VnetInterfaceCombinedCounters) GetCrcString() string {
func (*VnetInterfaceCombinedCounters) GetMessageType() api.MessageType {
return api.OtherMessage
}
-func NewVnetInterfaceCombinedCounters() api.Message {
- return &VnetInterfaceCombinedCounters{}
-}
// VnetPerInterfaceSimpleCounters represents the VPP binary API message 'vnet_per_interface_simple_counters'.
-// Generated from 'stats.api.json', line 716:
//
// "vnet_per_interface_simple_counters",
// [
@@ -1861,12 +1728,8 @@ func (*VnetPerInterfaceSimpleCounters) GetCrcString() string {
func (*VnetPerInterfaceSimpleCounters) GetMessageType() api.MessageType {
return api.OtherMessage
}
-func NewVnetPerInterfaceSimpleCounters() api.Message {
- return &VnetPerInterfaceSimpleCounters{}
-}
// VnetPerInterfaceCombinedCounters represents the VPP binary API message 'vnet_per_interface_combined_counters'.
-// Generated from 'stats.api.json', line 740:
//
// "vnet_per_interface_combined_counters",
// [
@@ -1906,12 +1769,8 @@ func (*VnetPerInterfaceCombinedCounters) GetCrcString() string {
func (*VnetPerInterfaceCombinedCounters) GetMessageType() api.MessageType {
return api.OtherMessage
}
-func NewVnetPerInterfaceCombinedCounters() api.Message {
- return &VnetPerInterfaceCombinedCounters{}
-}
// VnetGetSummaryStats represents the VPP binary API message 'vnet_get_summary_stats'.
-// Generated from 'stats.api.json', line 764:
//
// "vnet_get_summary_stats",
// [
@@ -1941,12 +1800,8 @@ func (*VnetGetSummaryStats) GetCrcString() string {
func (*VnetGetSummaryStats) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewVnetGetSummaryStats() api.Message {
- return &VnetGetSummaryStats{}
-}
// VnetGetSummaryStatsReply represents the VPP binary API message 'vnet_get_summary_stats_reply'.
-// Generated from 'stats.api.json', line 782:
//
// "vnet_get_summary_stats_reply",
// [
@@ -1995,12 +1850,8 @@ func (*VnetGetSummaryStatsReply) GetCrcString() string {
func (*VnetGetSummaryStatsReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewVnetGetSummaryStatsReply() api.Message {
- return &VnetGetSummaryStatsReply{}
-}
// StatsGetPollerDelay represents the VPP binary API message 'stats_get_poller_delay'.
-// Generated from 'stats.api.json', line 814:
//
// "stats_get_poller_delay",
// [
@@ -2030,12 +1881,8 @@ func (*StatsGetPollerDelay) GetCrcString() string {
func (*StatsGetPollerDelay) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewStatsGetPollerDelay() api.Message {
- return &StatsGetPollerDelay{}
-}
// StatsGetPollerDelayReply represents the VPP binary API message 'stats_get_poller_delay_reply'.
-// Generated from 'stats.api.json', line 832:
//
// "stats_get_poller_delay_reply",
// [
@@ -2072,12 +1919,8 @@ func (*StatsGetPollerDelayReply) GetCrcString() string {
func (*StatsGetPollerDelayReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewStatsGetPollerDelayReply() api.Message {
- return &StatsGetPollerDelayReply{}
-}
// WantUDPEncapStats represents the VPP binary API message 'want_udp_encap_stats'.
-// Generated from 'stats.api.json', line 854:
//
// "want_udp_encap_stats",
// [
@@ -2118,12 +1961,8 @@ func (*WantUDPEncapStats) GetCrcString() string {
func (*WantUDPEncapStats) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewWantUDPEncapStats() api.Message {
- return &WantUDPEncapStats{}
-}
// WantUDPEncapStatsReply represents the VPP binary API message 'want_udp_encap_stats_reply'.
-// Generated from 'stats.api.json', line 880:
//
// "want_udp_encap_stats_reply",
// [
@@ -2155,12 +1994,8 @@ func (*WantUDPEncapStatsReply) GetCrcString() string {
func (*WantUDPEncapStatsReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewWantUDPEncapStatsReply() api.Message {
- return &WantUDPEncapStatsReply{}
-}
// VnetUDPEncapCounters represents the VPP binary API message 'vnet_udp_encap_counters'.
-// Generated from 'stats.api.json', line 898:
//
// "vnet_udp_encap_counters",
// [
@@ -2200,9 +2035,6 @@ func (*VnetUDPEncapCounters) GetCrcString() string {
func (*VnetUDPEncapCounters) GetMessageType() api.MessageType {
return api.OtherMessage
}
-func NewVnetUDPEncapCounters() api.Message {
- return &VnetUDPEncapCounters{}
-}
/* Services */