Documentation ¶
Overview ¶
Package queuesender implements asynchronous http.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender sends JSON requests asynchronously
func New ¶
New returns a new sender. endpoint is the common base of all endpoints. size is the size of the queue. name is the name of queue. Used strictly for logging. logger is the logger to receive the logs.
func (*Sender) ErrorCount ¶
func (*Sender) Register ¶
Register registers metrics for this instance with tricorder. Metrics registered under "/asyncWriters/<name>"
func (*Sender) Send ¶
Send sends given json to the given endpoint. Send will block if queue if full because of encountered errors.
func (*Sender) SuccessCount ¶
Click to show internal directories.
Click to hide internal directories.