app

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"
	APP_EVENT_COLLECTION = "APP_EVENT"
	DB_URL               = "127.0.0.1:27017"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppEvent

type AppEvent struct {
	ID         string `bson:"_id,omitempty"`
	Subscriber []string
	Nodes      []string
}

type Command

type Command interface {
	AddEvent(id string, subscriberId string, nodeId []string) error
	GetEvent(id string) (map[string]interface{}, error)
	DeleteEvent(id string) error
	UnRegisterEvent(id string, subscriberId string) error
}

type Executor

type Executor struct {
}

func (Executor) AddEvent

func (Executor) AddEvent(id string, subscriberId string, nodeId []string) error

func (Executor) DeleteEvent

func (Executor) DeleteEvent(id string) error

func (Executor) GetEvent

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

func (Executor) UnRegisterEvent

func (Executor) UnRegisterEvent(id string, subscriberId string) error

Directories

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

Jump to

Keyboard shortcuts

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