car

package
v0.0.0-...-c7f360f Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventsList = events{
	CarStartedEvent: "car-started-event",
	CarStoppedEvent: "car-stopped-event",
}

Functions

This section is empty.

Types

type Car

type Car struct {
	Name   string
	Color  string
	Year   string
	Engine string
	// contains filtered or unexported fields
}

func NewCar

func NewCar(name string, color string, year string, engine string, evb t.IEventBus) *Car

func (*Car) RegisterEvent

func (c *Car) RegisterEvent(event t.EventType, key string, f t.EventHandlerFcn)

func (*Car) Start

func (c *Car) Start()

func (*Car) Stop

func (c *Car) Stop()

func (*Car) UnregisterEvent

func (c *Car) UnregisterEvent(event t.EventType, key string)

type CarExample

type CarExample struct{}

func NewCarExample

func NewCarExample() *CarExample

func (*CarExample) Init

func (ce *CarExample) Init()

func (*CarExample) Run

func (ce *CarExample) Run()

Jump to

Keyboard shortcuts

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