Documentation ¶
Overview ¶
Package ethvlans 用于描述以太网交换机端口的 VLAN 范围
Index ¶
- type EthVLANs
- func (v EthVLANs) Add(vlans ...int)
- func (v EthVLANs) AddFromParse(s string) error
- func (v EthVLANs) IsExist(vlan int) bool
- func (v EthVLANs) Len() int
- func (v EthVLANs) MarshalJSON() ([]byte, error)
- func (v EthVLANs) Slice() []int
- func (v EthVLANs) String() string
- func (v EthVLANs) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthVLANs ¶
EthVLANs
func (EthVLANs) AddFromParse ¶
AddFromParse 从字符串中添加 VLAN
func (EthVLANs) MarshalJSON ¶
MarshalJSON implements the interface MarshalJSON for json.Marshal.
func (EthVLANs) UnmarshalJSON ¶
UnmarshalJSON implements the interface UnmarshalJSON for json.Unmarshal.
Click to show internal directories.
Click to hide internal directories.