tsviewer/service/channel.go

25 lines
381 B
Go
Raw Normal View History

2019-01-14 20:07:11 +00:00
package service
import (
"log"
"git.cliffbreak.de/haveachin/go-tsviewer/features/channel"
)
func (s Service) Channel(id int) (*channel.Channel, error) {
return nil, nil
}
func (s Service) Channels() ([]*channel.Channel, error) {
cc, err := s.Client.Server.ClientList()
if err != nil {
return nil, err
}
for _, c := range cc {
log.Println(*c)
}
return nil, nil
}