Documentation ¶
Overview ¶
Package ginger supports integration with the Driebit Ginger platform
Via a PostHook function during the Bulking Index process data that is ingested can also be stored in ginger. It currently synchronizes indexing and disabling all records for a dataset.
Index ¶
- func GetRoutes() chi.Router
- type AuthKey
- type Hit
- type PostHook
- func (ph *PostHook) DropDataset(dataset string, revision int) (resp *http.Response, err error)
- func (ph *PostHook) Name() string
- func (ph *PostHook) OrgID() string
- func (ph *PostHook) Publish(items ...*domain.PostHookItem) error
- func (ph *PostHook) Run(datasetID string) error
- func (ph *PostHook) Valid(datasetID string) bool
- type PostHookCounter
- type PostHookGauge
- type PostHookJob
- type Source
- type System
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PostHook ¶
type PostHook struct {
// contains filtered or unexported fields
}
func NewPostHook ¶
func (*PostHook) DropDataset ¶
type PostHookCounter ¶
type PostHookGauge ¶
type PostHookGauge struct { Created time.Time `json:"created"` QueueSize int `json:"queueSize"` ActiveDatasets int `json:"activeDatasets"` Counters map[string]*PostHookCounter `json:"counters"` sync.Mutex }
func (*PostHookGauge) Done ¶
func (phg *PostHookGauge) Done(ph *PostHookJob) error
func (*PostHookGauge) Error ¶
func (phg *PostHookGauge) Error(ph *PostHookJob) error
func (*PostHookGauge) Queue ¶
func (phg *PostHookGauge) Queue(ph *PostHookJob) error
func (*PostHookGauge) SetActive ¶
func (phg *PostHookGauge) SetActive(counter *PostHookCounter)
type PostHookJob ¶
type PostHookJob struct { Graph string // contains filtered or unexported fields }
PostHookJob holds the info for building a crea
func NewPostHookJob ¶
func NewPostHookJob(item *domain.PostHookItem) (*PostHookJob, error)
NewPostHookJob creates a new PostHookJob and populates the rdf2go Graph
Click to show internal directories.
Click to hide internal directories.