view

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const VIEWTEST_NOTE1 = "Notification1"
View Source
const VIEWTEST_NOTE2 = "Notification2"
View Source
const VIEWTEST_NOTE3 = "Notification3"
View Source
const VIEWTEST_NOTE4 = "Notification4"
View Source
const VIEWTEST_NOTE5 = "Notification5"
View Source
const VIEWTEST_NOTE6 = "Notification6"
View Source
const ViewTestMediator2_NAME = "viewTestMediator2"
View Source
const ViewTestMediator3_NAME = "viewTestMediator3"
View Source
const ViewTestMediator4_NAME = "ViewTestMediator4"
View Source
const ViewTestMediator5_NAME = "viewTestMediator5"
View Source
const ViewTestMediator6_NAME = "ViewTestMediator6" // The Mediator base name
View Source
const ViewTestMediator_NAME = "ViewTestMediator"
View Source
const ViewTestNote_NAME string = "ViewTestNote"

Variables

View Source
var ViewTestVar int

A test variable that proves the viewTestMethod was invoked by the View.

Functions

func NotifyTestMethod

func NotifyTestMethod(note interfaces.INotification)

func ViewTestNoteNew

func ViewTestNoteNew(body interface{}) interfaces.INotification

Types

type Data

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

type ISuper

type ISuper interface{}

func NewSub

func NewSub(name string) ISuper

func NewSuper

func NewSuper(name string) ISuper

type ObserverTest

type ObserverTest struct {
	NotifyMethod func(note interfaces.INotification)
}

type Sub

type Sub struct {
	Super
}

type Super

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

type ViewTestMediator

type ViewTestMediator struct {
	mediator.Mediator
}

A Mediator class used by ViewTest.

func (*ViewTestMediator) ListNotificationInterests

func (viewTestMediator *ViewTestMediator) ListNotificationInterests() []string

type ViewTestMediator2

type ViewTestMediator2 struct {
	mediator.Mediator
}

A Mediator class used by ViewTest.

func (*ViewTestMediator2) HandleNotification

func (mediator *ViewTestMediator2) HandleNotification(notification interfaces.INotification)

func (*ViewTestMediator2) ListNotificationInterests

func (mediator *ViewTestMediator2) ListNotificationInterests() []string

type ViewTestMediator3

type ViewTestMediator3 struct {
	mediator.Mediator
}

A Mediator class used by ViewTest.

func (*ViewTestMediator3) HandleNotification

func (mediator *ViewTestMediator3) HandleNotification(notification interfaces.INotification)

func (*ViewTestMediator3) ListNotificationInterests

func (mediator *ViewTestMediator3) ListNotificationInterests() []string

be sure that the mediator has some Observers created in order to test removeMediator

type ViewTestMediator4

type ViewTestMediator4 struct {
	mediator.Mediator
}

A Mediator class used by ViewTest.

func (*ViewTestMediator4) OnRegister

func (mediator *ViewTestMediator4) OnRegister()

func (*ViewTestMediator4) OnRemove

func (mediator *ViewTestMediator4) OnRemove()

type ViewTestMediator5

type ViewTestMediator5 struct {
	mediator.Mediator
}

A Mediator class used by ViewTest.

func (*ViewTestMediator5) HandleNotification

func (mediator *ViewTestMediator5) HandleNotification(notification interfaces.INotification)

func (*ViewTestMediator5) ListNotificationInterests

func (mediator *ViewTestMediator5) ListNotificationInterests() []string

type ViewTestMediator6

type ViewTestMediator6 struct {
	mediator.Mediator
}

A Mediator class used by ViewTest.

func (*ViewTestMediator6) HandleNotification

func (mediator *ViewTestMediator6) HandleNotification(notification interfaces.INotification)

func (*ViewTestMediator6) ListNotificationInterests

func (mediator *ViewTestMediator6) ListNotificationInterests() []string

func (*ViewTestMediator6) OnRemove

func (mediator *ViewTestMediator6) OnRemove()

type ViewTestNote

type ViewTestNote struct {
}

Jump to

Keyboard shortcuts

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