Documentation ¶
Index ¶
- func LinearActivity(p *Pusher, brk brokers.Broker, store stores.Store) error
- type HTTPSender
- type Manager
- func (mgr *Manager) Add(projectUUID string, subName string) error
- func (mgr *Manager) Get(psub string) (*Pusher, error)
- func (mgr *Manager) Launch(project string, sub string) error
- func (mgr *Manager) LoadPushSubs()
- func (mgr *Manager) PrintAll()
- func (mgr *Manager) Refresh(projectUUID string, sub string) error
- func (mgr *Manager) Remove(project string, sub string) error
- func (mgr *Manager) RemoveProjectAll(projectUUID string) error
- func (mgr *Manager) Restart(project string, sub string) error
- func (mgr *Manager) StartAll()
- func (mgr *Manager) Stop(project string, sub string) error
- func (mgr *Manager) StopAll() error
- type MockSender
- type Pusher
- type Sender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPSender ¶
HTTPSender sends msgs through http
func NewHTTPSender ¶
func NewHTTPSender(timeoutSec int) *HTTPSender
NewHTTPSender creates a new HTTPSender. Specify timeout in seconds
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages all pusher routines
func NewManager ¶
NewManager creates a new manager object for managing push routines
func (*Manager) LoadPushSubs ¶
func (mgr *Manager) LoadPushSubs()
LoadPushSubs is called during API initialization to retrieve available push configured subs and activate them
func (*Manager) RemoveProjectAll ¶
RemoveProjectAll stops and removes all pushers related to a project
type MockSender ¶
MockSender mocks sending messages to remote endpoints
func NewMockSender ¶
func NewMockSender(fail bool) *MockSender
NewMockSender creates a new Mock sender
Click to show internal directories.
Click to hide internal directories.