event

package
v0.0.0-...-9c67b44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LibraryEventAggregations

type LibraryEventAggregations struct {
	Branch         common.Aggregation `json:"branch,omitempty"`
	ServiceForm    common.Aggregation `json:"serviceForm,omitempty"`
	TargetAudience common.Aggregation `json:"targetAudience,omitempty"`
}

type LibraryEventHits

type LibraryEventHits struct {
	TotalHits    int                      `json:"totalHits,omitempty"`
	Hits         []map[string]interface{} `json:"hits,omitempty"`
	Aggregations LibraryEventAggregations `json:"aggregations,omitempty"`
}

type Params

type Params struct {
	FromDate                         time.Time
	ToDate                           time.Time
	FromStartTime                    time.Time
	ToStartTime                      time.Time
	FromEndTime                      time.Time
	ToEndTime                        time.Time
	From                             int
	Size                             int
	Sort                             string
	ExcludeDrafts                    bool
	ExcludeReported                  bool
	ExcludeCancelled                 bool
	MinutesToIncludeRecentlyReported int
}

type SearchLibraryEventClient

type SearchLibraryEventClient interface {
	SearchLibraryEvent(query string, searchFields map[string]interface{}, params Params) (LibraryEventHits, error)
}

func NewSearchLibraryEventClient

func NewSearchLibraryEventClient(esUrl *url.URL) (SearchLibraryEventClient, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL