Documentation ¶
Index ¶
- func NetworkEqual(o *Network, n *Network) bool
- func NewLinkSchema(l *Link) schema.Link
- func NewNeighborSchema(n *Neighbor) schema.Neighbor
- func NewNetworkSchema(n *Network) schema.Network
- func NewOnLineSchema(l *Line) schema.OnLine
- func NewOutputSchema(o *Output) schema.Output
- func NewPointSchema(p *Point) schema.Point
- func NewUserSchema(u *User) schema.User
- type Line
- type Link
- type MultiPath
- type Neighbor
- type Network
- type Output
- type Point
- type Route
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NetworkEqual ¶
func NewLinkSchema ¶
func NewNeighborSchema ¶
func NewNetworkSchema ¶
func NewOnLineSchema ¶
func NewOutputSchema ¶
func NewPointSchema ¶
func NewUserSchema ¶
Types ¶
type Line ¶
type Neighbor ¶
type Neighbor struct { Network string `json:"network"` Device string `json:"device"` Client string `json:"client"` HwAddr net.HardwareAddr `json:"hwAddr"` IpAddr net.IP `json:"ipAddr"` NewTime int64 `json:"newTime"` HitTime int64 `json:"hitTime"` }
func NewNeighbor ¶
func NewNeighbor(hwAddr net.HardwareAddr, ipAddr net.IP, client libol.SocketClient) (e *Neighbor)
func (*Neighbor) Update ¶
func (e *Neighbor) Update(client libol.SocketClient)
type Network ¶
type Network struct { Name string `json:"name"` Tenant string `json:"tenant,omitempty"` IfAddr string `json:"ifAddr"` IpStart string `json:"ipStart"` IpEnd string `json:"ipEnd"` Netmask string `json:"netmask"` Routes []*Route `json:"routes"` Config interface{} `json:"config"` }
func NewNetwork ¶
type Output ¶
type Point ¶
type Point struct { UUID string `json:"uuid"` Alias string `json:"alias"` Network string `json:"network"` User string `json:"user"` Protocol string `json:"protocol"` Server string `json:"server"` Uptime int64 `json:"uptime"` Status string `json:"status"` IfName string `json:"device"` Client libol.SocketClient `json:"-"` Device network.Taper `json:"-"` System string `json:"system"` }
type Route ¶
type User ¶
type User struct { Alias string `json:"alias"` Name string `json:"name"` Network string `json:"network"` Password string `json:"password"` UUID string `json:"uuid"` System string `json:"system"` Role string `json:"type"` // admin , guest or ldap Last libol.SocketClient `json:"last"` // lastly accessed by this. Lease time.Time `json:"leastTime"` UpdateAt int64 }
func SchemaToUserModel ¶
Click to show internal directories.
Click to hide internal directories.