Help us shape the future of Go! Take the 2026 Go Developer Survey

subscriptions

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 24 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityHandler

type EntityHandler struct {
	// contains filtered or unexported fields
}

EntityHandler handles Subscription entity operations

func NewEntityHandler

func NewEntityHandler(store entitystore.EntityStore, manager Manager) *EntityHandler

NewEntityHandler returns new instance of EntityHandler

func (*EntityHandler) Add

func (h *EntityHandler) Add(obj entitystore.Entity) (err error)

Add handles adding new subscription entity

func (*EntityHandler) Delete

func (h *EntityHandler) Delete(obj entitystore.Entity) error

Delete handles subscription entity deletion

func (*EntityHandler) Error

func (h *EntityHandler) Error(obj entitystore.Entity) error

Error handles error state

func (*EntityHandler) Sync

func (h *EntityHandler) Sync(organizationID string, resyncPeriod time.Duration) ([]entitystore.Entity, error)

Sync is responsible for syncing the state of active subscriptions and their entities

func (*EntityHandler) Type

func (h *EntityHandler) Type() reflect.Type

Type returns entity handler type

func (*EntityHandler) Update

func (h *EntityHandler) Update(obj entitystore.Entity) (err error)

Update handles subscription entity update

type Handlers

type Handlers struct {
	// contains filtered or unexported fields
}

Handlers is a base struct for event manager API handlers.

func NewHandlers

func NewHandlers(store entitystore.EntityStore, watcher controller.Watcher, orgID string) *Handlers

NewHandlers Creates new instance of subscription handlers

func (*Handlers) ConfigureHandlers

func (h *Handlers) ConfigureHandlers(api middleware.RoutableAPI)

ConfigureHandlers configures API handlers for Subscription endpoints

type Manager

Manager defines the subscription manager interface

func NewManager

func NewManager(mq events.Transport, fnClient client.FunctionsClient) (Manager, error)

NewManager creates a new subscription manager

Directories

Path Synopsis
Package mocks generated by mockery v1.0.0
Package mocks generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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