Documentation ¶
Overview ¶
Package beego_keenio implements a middleware to KeenIO from the beego framework.
Index ¶
Constants ¶
View Source
const (
KEENIO_QUEUE_KEY = "keenio_queue"
)
KEENIO_QUEUE_KEY constant to identify the context key in the request
Variables ¶
This section is empty.
Functions ¶
func InitKeenioFilter ¶
func InitKeenioFilter()
InitKeenioFilter initializes the keengo sender in a go-routine
func InitKeenioQueue ¶
InitKeenioQueue initialize the queue structure for this request
func ProcessKeenioQueue ¶
ProcessKeenioQueue iterates the queue structure for this request
Types ¶
type KeenioQueue ¶
type KeenioQueue struct {
// contains filtered or unexported fields
}
KeenioQueue is FIFO data stucture
func (*KeenioQueue) Len ¶
func (q *KeenioQueue) Len() int
Len returns the number of events in the queue
func (*KeenioQueue) Pop ¶
func (q *KeenioQueue) Pop() (string, interface{})
Pop returns event from the top of the queue
func (*KeenioQueue) Push ¶
func (q *KeenioQueue) Push(collection string, item interface{})
Push adds event to the end of the queue
Click to show internal directories.
Click to hide internal directories.