This repository has been archived by the owner on Jul 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
License
google/go-circuits
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
An Event driven Component framework for Golang based on Circuits (http://github.com/circuits/circuits). DISCLAIMER: This is not an official Google product. Basic Usage import ( "fmt" "go-circuits" ) type MyComponent struct { go-circuits.Component } func (mc *MyComponent) HelloWorldEventHandler(_ go-circuits.Event) { fmt.Println("Hello World!") } func NewMyComponent() *MyComponent { mc := MyComponent{} mc.RegisterEventHandler(go-circuits.NewEventHandler( "hello_world", mc.HelloWorldEventHandler )) return &mc } func main() { mc := NewMyComponent() mc.Fire(go-circuits.BaseEvent{"hello_world"}) mc.Run() }
About
No description, website, or topics provided.
Resources
License
Code of conduct
Security policy
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published