Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client pushes and pops messages in the shadowfax messaging system.
func NewClient ¶
func NewClient(keyPair *sf.KeyPair, serverURL string, serverKey *sf.PublicKey, client *http.Client) *Client
NewClient returns a new shadowfax client.
func (*Client) Pop ¶
func (c *Client) Pop() ([]*PopMessage, error)
Pop retrieves messages addressed to the client.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles HTTP requests as a shadowfax server.
func NewHandler ¶
NewHandler returns a new Handler with public key pair and service backend.
func (*Handler) Register ¶
func (h *Handler) Register(r *httprouter.Router)
Register sets up endpoint routing for a shadowfax server.
type PopMessage ¶
PopMessage contains a message received.
Click to show internal directories.
Click to hide internal directories.