// Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: // binapi-generator: v0.3.5-56-gc0da1f2-dirty // VPP: 21.06-release // source: /usr/share/vpp/api/plugins/mss_clamp.api.json // Package mss_clamp contains generated bindings for API file mss_clamp.api. // // Contents: // 1 enum // 5 messages // package mss_clamp import ( "strconv" api "git.fd.io/govpp.git/api" interface_types "git.fd.io/govpp.git/binapi/interface_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 = "mss_clamp" APIVersion = "1.0.0" VersionCrc = 0xea8186c0 ) // MssClampDir defines enum 'mss_clamp_dir'. type MssClampDir uint8 const ( MSS_CLAMP_DIR_NONE MssClampDir = 0 MSS_CLAMP_DIR_RX MssClampDir = 1 MSS_CLAMP_DIR_TX MssClampDir = 2 ) var ( MssClampDir_name = map[uint8]string{ 0: "MSS_CLAMP_DIR_NONE", 1: "MSS_CLAMP_DIR_RX", 2: "MSS_CLAMP_DIR_TX", } MssClampDir_value = map[string]uint8{ "MSS_CLAMP_DIR_NONE": 0, "MSS_CLAMP_DIR_RX": 1, "MSS_CLAMP_DIR_TX": 2, } ) func (x MssClampDir) String() string { s, ok := MssClampDir_name[uint8(x)] if ok { return s } str := func(n uint8) string { s, ok := MssClampDir_name[uint8(n)] if ok { return s } return "MssClampDir(" + strconv.Itoa(int(n)) + ")" } for i := uint8(0); i <= 8; i++ { val := uint8(x) if val&(1<