Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { Name() string Poll(result chan ServiceUpdate) WebhookRoute() *WebhookRoute }
type ServiceManager ¶
type ServiceManager struct { Services []Service Updates chan ServiceUpdate }
func (*ServiceManager) Init ¶
func (m *ServiceManager) Init()
func (*ServiceManager) PollAll ¶
func (m *ServiceManager) PollAll()
func (*ServiceManager) RegisterService ¶
func (m *ServiceManager) RegisterService(service Service)
type ServiceUpdate ¶
type TwitchData ¶
type TwitchData struct {
Status string
}
type TwitchService ¶
type TwitchService struct{}
func (*TwitchService) Name ¶
func (s *TwitchService) Name() string
func (*TwitchService) Poll ¶
func (s *TwitchService) Poll(result chan ServiceUpdate)
func (*TwitchService) WebhookRoute ¶
func (s *TwitchService) WebhookRoute() *WebhookRoute
type WebhookRoute ¶
type WebhookRoute struct {
Handler func(ctx *context.Context, result chan ServiceUpdate)
}
Click to show internal directories.
Click to hide internal directories.