Versions in this module Expand all Collapse all v0 v0.4.0 Jan 17, 2022 Changes in this version + const APIFile + const APIVersion + const VersionCrc + var IfStatusFlags_name = map[uint32]string + var IfStatusFlags_value = map[string]uint32 + var IfType_name = map[uint32]string + var IfType_value = map[string]uint32 + var LinkDuplex_name = map[uint32]string + var LinkDuplex_value = map[string]uint32 + var MtuProto_name = map[uint32]string + var MtuProto_value = map[string]uint32 + var RxMode_name = map[uint32]string + var RxMode_value = map[string]uint32 + var SubIfFlags_name = map[uint32]string + var SubIfFlags_value = map[string]uint32 + func AllMessages() []api.Message + type IfStatusFlags uint32 + const IF_STATUS_API_FLAG_ADMIN_UP + const IF_STATUS_API_FLAG_LINK_UP + func (x IfStatusFlags) String() string + type IfType uint32 + const IF_API_TYPE_HARDWARE + const IF_API_TYPE_P2P + const IF_API_TYPE_PIPE + const IF_API_TYPE_SUB + func (x IfType) String() string + type InterfaceIndex uint32 + type LinkDuplex uint32 + const LINK_DUPLEX_API_FULL + const LINK_DUPLEX_API_HALF + const LINK_DUPLEX_API_UNKNOWN + func (x LinkDuplex) String() string + type MacAddress [6]uint8 + func ParseMacAddress(s string) (MacAddress, error) + func (x *MacAddress) MarshalText() ([]byte, error) + func (x *MacAddress) UnmarshalText(text []byte) error + func (x MacAddress) String() string + func (x MacAddress) ToMAC() net.HardwareAddr + type MactimeAddDelRange struct + Allow bool + AllowQuota uint8 + Count uint32 + DataQuota uint64 + DeviceName string + Drop bool + IsAdd bool + MacAddress MacAddress + NoUDP10001 bool + Ranges []TimeRange + func (*MactimeAddDelRange) GetCrcString() string + func (*MactimeAddDelRange) GetMessageName() string + func (*MactimeAddDelRange) GetMessageType() api.MessageType + func (m *MactimeAddDelRange) Marshal(b []byte) ([]byte, error) + func (m *MactimeAddDelRange) Reset() + func (m *MactimeAddDelRange) Size() (size int) + func (m *MactimeAddDelRange) Unmarshal(b []byte) error + type MactimeAddDelRangeReply struct + Retval int32 + func (*MactimeAddDelRangeReply) GetCrcString() string + func (*MactimeAddDelRangeReply) GetMessageName() string + func (*MactimeAddDelRangeReply) GetMessageType() api.MessageType + func (m *MactimeAddDelRangeReply) Marshal(b []byte) ([]byte, error) + func (m *MactimeAddDelRangeReply) Reset() + func (m *MactimeAddDelRangeReply) Size() (size int) + func (m *MactimeAddDelRangeReply) Unmarshal(b []byte) error + type MactimeDetails struct + DataQuota uint64 + DataUsedInRange uint64 + DeviceName string + Flags uint32 + MacAddress MacAddress + Nranges uint32 + PoolIndex uint32 + Ranges []MactimeTimeRange + func (*MactimeDetails) GetCrcString() string + func (*MactimeDetails) GetMessageName() string + func (*MactimeDetails) GetMessageType() api.MessageType + func (m *MactimeDetails) Marshal(b []byte) ([]byte, error) + func (m *MactimeDetails) Reset() + func (m *MactimeDetails) Size() (size int) + func (m *MactimeDetails) Unmarshal(b []byte) error + type MactimeDump struct + MyTableEpoch uint32 + func (*MactimeDump) GetCrcString() string + func (*MactimeDump) GetMessageName() string + func (*MactimeDump) GetMessageType() api.MessageType + func (m *MactimeDump) Marshal(b []byte) ([]byte, error) + func (m *MactimeDump) Reset() + func (m *MactimeDump) Size() (size int) + func (m *MactimeDump) Unmarshal(b []byte) error + type MactimeDumpReply struct + Retval int32 + TableEpoch uint32 + func (*MactimeDumpReply) GetCrcString() string + func (*MactimeDumpReply) GetMessageName() string + func (*MactimeDumpReply) GetMessageType() api.MessageType + func (m *MactimeDumpReply) Marshal(b []byte) ([]byte, error) + func (m *MactimeDumpReply) Reset() + func (m *MactimeDumpReply) Size() (size int) + func (m *MactimeDumpReply) Unmarshal(b []byte) error + type MactimeEnableDisable struct + EnableDisable bool + SwIfIndex InterfaceIndex + func (*MactimeEnableDisable) GetCrcString() string + func (*MactimeEnableDisable) GetMessageName() string + func (*MactimeEnableDisable) GetMessageType() api.MessageType + func (m *MactimeEnableDisable) Marshal(b []byte) ([]byte, error) + func (m *MactimeEnableDisable) Reset() + func (m *MactimeEnableDisable) Size() (size int) + func (m *MactimeEnableDisable) Unmarshal(b []byte) error + type MactimeEnableDisableReply struct + Retval int32 + func (*MactimeEnableDisableReply) GetCrcString() string + func (*MactimeEnableDisableReply) GetMessageName() string + func (*MactimeEnableDisableReply) GetMessageType() api.MessageType + func (m *MactimeEnableDisableReply) Marshal(b []byte) ([]byte, error) + func (m *MactimeEnableDisableReply) Reset() + func (m *MactimeEnableDisableReply) Size() (size int) + func (m *MactimeEnableDisableReply) Unmarshal(b []byte) error + type MactimeTimeRange struct + End float64 + Start float64 + type MtuProto uint32 + const MTU_PROTO_API_IP4 + const MTU_PROTO_API_IP6 + const MTU_PROTO_API_L3 + const MTU_PROTO_API_MPLS + const MTU_PROTO_API_N + func (x MtuProto) String() string + type RPCService interface + MactimeAddDelRange func(ctx context.Context, in *MactimeAddDelRange) (*MactimeAddDelRangeReply, error) + MactimeDump func(ctx context.Context, in *MactimeDump) (RPCService_MactimeDumpClient, error) + MactimeEnableDisable func(ctx context.Context, in *MactimeEnableDisable) (*MactimeEnableDisableReply, error) + func NewServiceClient(conn api.Connection) RPCService + type RPCService_MactimeDumpClient interface + Recv func() (*MactimeDetails, error) + type RxMode uint32 + const RX_MODE_API_ADAPTIVE + const RX_MODE_API_DEFAULT + const RX_MODE_API_INTERRUPT + const RX_MODE_API_POLLING + const RX_MODE_API_UNKNOWN + func (x RxMode) String() string + type SubIfFlags uint32 + const SUB_IF_API_FLAG_DEFAULT + const SUB_IF_API_FLAG_DOT1AD + const SUB_IF_API_FLAG_DOT1AH + const SUB_IF_API_FLAG_EXACT_MATCH + const SUB_IF_API_FLAG_INNER_VLAN_ID_ANY + const SUB_IF_API_FLAG_MASK_VNET + const SUB_IF_API_FLAG_NO_TAGS + const SUB_IF_API_FLAG_ONE_TAG + const SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY + const SUB_IF_API_FLAG_TWO_TAGS + func (x SubIfFlags) String() string + type TimeRange struct + End float64 + Start float64