14 lines
405 B
Go
Executable file
14 lines
405 B
Go
Executable file
package channel
|
|
|
|
type Service interface {
|
|
Channel(id int) (*Channel, error)
|
|
Channels() ([]*Channel, error)
|
|
}
|
|
|
|
type Channel struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
Subchannels []Channel `json:"subchannels,omitempty"`
|
|
TotalClients int `json:"totalClients"`
|
|
NeededSubscribePower int `json:"neededSubscribePower"`
|
|
}
|