mirror of https://github.com/edouardparis/lntop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
303 B
Go
20 lines
303 B
Go
package models
|
|
|
|
import "github.com/edouardparis/lntop/network/models"
|
|
|
|
type Channels struct {
|
|
Items []*models.Channel
|
|
}
|
|
|
|
func (c *Channels) Get(index int) *models.Channel {
|
|
if index < 0 || index > len(c.Items) {
|
|
return nil
|
|
}
|
|
|
|
return c.Items[index]
|
|
}
|
|
|
|
type Channel struct {
|
|
Item *models.Channel
|
|
}
|