go-tsviewer/features/channel/channel.go

15 lines
394 B
Go
Raw Normal View History

2019-01-14 20:07:11 +00:00
package channel
type Service interface {
Channel(id int) (*Channel, error)
Channels() ([]*Channel, error)
}
type Channel struct {
ID int `json:"id"`
Subchannels []Channel `json:"subchannel"`
Name string `json:"name"`
TotalClients int `json:"totalClients"`
NeededSubscribePower int `json:"neededSubscribePower"`
}