Documentation ¶
Overview ¶
Defines package responsible for performing the actual sending and receiving of messages to URLs.
Index ¶
- Constants
- type Manager
- func (m *Manager) CreateTransport(authToken, host string, port int) error
- func (m *Manager) Ping(_ context.Context, host string, port int) error
- func (m *Manager) ReportGroup(id ids.ID) error
- func (m *Manager) Send(from, to string, body []byte) error
- func (m *Manager) SetIOSPushTokens(tokens []string) error
- func (m *Manager) Shutdown() error
- func (m *Manager) Start() error
- func (m *Manager) URLsForGroup(id ids.ID) ([]string, error)
- func (m *Manager) Updates() chan interface{}
- func (m *Manager) WaitForPending()
- type MessageImpl
- type MessageProcessor
- type ParsedURL
- type StateUpdate
Constants ¶
View Source
const ( StateNew = 0 StateUnassigned = 1 StateAssigned = 2 HeyaScheme = "heya" DefaultPort = heya_client.DefaultPort )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) CreateTransport ¶
func (*Manager) SetIOSPushTokens ¶
func (*Manager) WaitForPending ¶
func (m *Manager) WaitForPending()
type MessageImpl ¶
type MessageImpl struct {
// contains filtered or unexported fields
}
func (*MessageImpl) Body ¶
func (m *MessageImpl) Body() []byte
func (*MessageImpl) From ¶
func (m *MessageImpl) From() string
type MessageProcessor ¶
type MessageProcessor func([]*MessageImpl) error
type StateUpdate ¶
Click to show internal directories.
Click to hide internal directories.