// Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: // binapi-generator: v0.4.0 // VPP: 21.06-release // source: /usr/share/vpp/api/plugins/wireguard.api.json // Package wireguard contains generated bindings for API file wireguard.api. // // Contents: // 1 enum // 2 structs // 12 messages // package wireguard import ( "strconv" api "git.fd.io/govpp.git/api" interface_types "git.fd.io/govpp.git/binapi/interface_types" ip_types "git.fd.io/govpp.git/binapi/ip_types" codec "git.fd.io/govpp.git/codec" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the GoVPP api package it is being compiled against. // A compilation error at this line likely means your copy of the // GoVPP api package needs to be updated. const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "wireguard" APIVersion = "0.1.0" VersionCrc = 0x1e1d4252 ) // WireguardPeerFlags defines enum 'wireguard_peer_flags'. type WireguardPeerFlags uint8 const ( WIREGUARD_PEER_STATUS_DEAD WireguardPeerFlags = 1 ) var ( WireguardPeerFlags_name = map[uint8]string{ 1: "WIREGUARD_PEER_STATUS_DEAD", } WireguardPeerFlags_value = map[string]uint8{ "WIREGUARD_PEER_STATUS_DEAD": 1, } ) func (x WireguardPeerFlags) String() string { s, ok := WireguardPeerFlags_name[uint8(x)] if ok { return s } str := func(n uint8) string { s, ok := WireguardPeerFlags_name[uint8(n)] if ok { return s } return "WireguardPeerFlags(" + strconv.Itoa(int(n)) + ")" } for i := uint8(0); i <= 8; i++ { val := uint8(x) if val&(1<