Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) AddIOSPushToken(ctx context.Context, token string) error
- func (c *Client) Close()
- func (c *Client) CloseWithoutReconnect()
- func (c *Client) Connect(ctx context.Context) error
- func (c *Client) DeauthAll(ctx context.Context) error
- func (c *Client) DeleteIOSPushToken(ctx context.Context, token string) error
- func (c *Client) ExtendSendToken(ctx context.Context, token []byte, addedSeconds int) (time.Time, error)
- func (c *Client) ListIOSPushTokens(ctx context.Context) ([]*PushToken, error)
- func (c *Client) ListTokens(ctx context.Context) ([]*Token, error)
- func (c *Client) MakeSendToken(ctx context.Context, startTime time.Time, endTime time.Time) ([]byte, error)
- func (c *Client) Notifications() chan interface{}
- func (c *Client) Ping(ctx context.Context) error
- func (c *Client) RegisterIncoming(ctx context.Context, tokenHex string) (*RegisterIncomingResponse, error)
- func (c *Client) RevokeSendToken(ctx context.Context, token []byte) error
- func (c *Client) Send(ctx context.Context, sendToken, body []byte) error
- func (c *Client) Trim(ctx context.Context, token []byte, seq uint64) (uint64, error)
- func (c *Client) Want(ctx context.Context, token []byte, seq uint64) (*Message, error)
- type Config
- type DoneIntro
- type Message
- type Notification
- type PushToken
- type RegisterIncomingResponse
- type StateRecv
- type Token
Constants ¶
View Source
const ( Open = iota Closing Closed Reconnecting DefaultPort = 8337 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { PrivateKeyPKCS1 []byte Certificate []byte Host string Port int Version uint64 State int // contains filtered or unexported fields }
func NewClientFromKey ¶
func (*Client) AddIOSPushToken ¶
func (*Client) CloseWithoutReconnect ¶
func (c *Client) CloseWithoutReconnect()
func (*Client) DeleteIOSPushToken ¶
func (*Client) ExtendSendToken ¶
func (*Client) ListIOSPushTokens ¶
func (*Client) MakeSendToken ¶
func (*Client) Notifications ¶
func (c *Client) Notifications() chan interface{}
func (*Client) RegisterIncoming ¶
func (*Client) RevokeSendToken ¶
type Notification ¶
type RegisterIncomingResponse ¶
type RegisterIncomingResponse struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.