Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventLoader ¶
Types ¶
type Event ¶
type Event struct { // passed from client ID string `json:"id"` Action string `json:"action"` CreatedAt time.Time `json:"created_at"` Params string `json:"params"` // fill on backend UserID string `json:"user_id,omitempty"` UserAgent string `json:"user_agent"` Device string `json:"devise"` IPAddress string `json:"ip"` }
type EventLoader ¶
type NoopEventLoader ¶
type NoopEventLoader struct {
LoadedEvents []*Event
}
NoopEventLoader can be used for local env / test
type SearchIDManager ¶
type SearchIDManager struct {
// contains filtered or unexported fields
}
func NewSearchIDManager ¶
func NewSearchIDManager(isDeployed bool) *SearchIDManager
func (*SearchIDManager) GetSearchID ¶
func (s *SearchIDManager) GetSearchID(ctx context.Context) string
func (*SearchIDManager) Middleware ¶
func (s *SearchIDManager) Middleware() func(next http.Handler) http.Handler
Click to show internal directories.
Click to hide internal directories.