view

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 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 ObserverTest

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

type ViewTestMediator

type ViewTestMediator struct {
	mediator.Mediator
}

ViewTestMediator A Mediator class used by ViewTest.

func (*ViewTestMediator) ListNotificationInterests

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

type ViewTestMediator2

type ViewTestMediator2 struct {
	mediator.Mediator
}

ViewTestMediator2 A Mediator class used by ViewTest.

func (*ViewTestMediator2) HandleNotification

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

func (*ViewTestMediator2) ListNotificationInterests

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

type ViewTestMediator3

type ViewTestMediator3 struct {
	mediator.Mediator
}

ViewTestMediator3 A Mediator class used by ViewTest.

func (*ViewTestMediator3) HandleNotification

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

func (*ViewTestMediator3) ListNotificationInterests

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

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

type ViewTestMediator4

type ViewTestMediator4 struct {
	mediator.Mediator
}

ViewTestMediator4 A Mediator class used by ViewTest.

func (*ViewTestMediator4) OnRegister

func (self *ViewTestMediator4) OnRegister()

func (*ViewTestMediator4) OnRemove

func (self *ViewTestMediator4) OnRemove()

type ViewTestMediator5

type ViewTestMediator5 struct {
	mediator.Mediator
}

ViewTestMediator5 A Mediator class used by ViewTest.

func (*ViewTestMediator5) HandleNotification

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

func (*ViewTestMediator5) ListNotificationInterests

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

type ViewTestMediator6

type ViewTestMediator6 struct {
	mediator.Mediator
}

ViewTestMediator6 A Mediator class used by ViewTest.

func (*ViewTestMediator6) HandleNotification

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

func (*ViewTestMediator6) ListNotificationInterests

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

func (*ViewTestMediator6) OnRemove

func (self *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