subscriber

package
v0.0.0-...-b0339d0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DB_NAME               = "DeploymentManagerDB"
	SUBSCRIBER_COLLECTION = "SUBSCRIBER"
	DB_URL                = "127.0.0.1:27017"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	// AddSubscriber insert new Subscriber.
	AddSubscriber(id, eventType, url string, status, eventId []string, queries map[string][]string) error
	GetSubscribers() ([]map[string]interface{}, error)
	GetSubscriber(id string) (map[string]interface{}, error)
	DeleteSubscriber(id string) error
}

type Executor

type Executor struct {
}

func (Executor) AddSubscriber

func (Executor) AddSubscriber(id, eventType, url string, status, eventId []string, queries map[string][]string) error

func (Executor) DeleteSubscriber

func (Executor) DeleteSubscriber(id string) error

func (Executor) GetSubscriber

func (Executor) GetSubscriber(id string) (map[string]interface{}, error)

func (Executor) GetSubscribers

func (Executor) GetSubscribers() ([]map[string]interface{}, error)

type Subscriber

type Subscriber struct {
	ID      string
	Type    string
	URL     string
	Status  []string
	EventId []string
	Query   map[string][]string
}

Directories

Path Synopsis
Package mock_subscriber is a generated GoMock package.
Package mock_subscriber is a generated GoMock package.

Jump to

Keyboard shortcuts

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