event

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EVENT_TYPE_MESOS_SUBSCRIBED = "mesos_subscribed"
	EVENT_TYPE_MESOS_HEARTBEAT  = "mesos_heartbeat"
	EVENT_TYPE_MESOS_OFFERS     = "mesos_offers"
	EVENT_TYPE_MESOS_RESCIND    = "mesos_recind"
	EVENT_TYPE_MESOS_UPDATE     = "mesos_update"
	EVENT_TYPE_MESOS_FAILURE    = "mesos_failure"
	EVENT_TYPE_MESOS_MESSAGE    = "mesos_message"
	EVENT_TYPE_MESOS_ERROR      = "mesos_error"

	EVENT_TYPE_USER_INVALID_APPS = "user_invalidapps"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	GetEventType() string
	GetEvent() interface{}
}

type MesosEvent

type MesosEvent struct {
	EventType sched.Event_Type
	Event     *sched.Event
}

func (*MesosEvent) GetEvent

func (me *MesosEvent) GetEvent() interface{}

func (*MesosEvent) GetEventType

func (me *MesosEvent) GetEventType() string

type UserEvent

type UserEvent struct {
	Type  string
	Param interface{}
}

func (*UserEvent) GetEvent

func (ue *UserEvent) GetEvent() interface{}

func (*UserEvent) GetEventType

func (ue *UserEvent) GetEventType() string

Jump to

Keyboard shortcuts

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