Documentation ¶
Index ¶
- type Application
- func (application *Application) Action(resource string, action string, payload any)
- func (application *Application) Read(resource string) (any, error)
- func (application *Application) Start()
- func (application *Application) Stop()
- func (application *Application) SubscribeAction(resource string, action string, listener chan any)
- func (application *Application) SubscribeChanges(resource string, listener chan any)
- func (application *Application) UnsubscribeAction(resource string, action string, listener chan<- any)
- func (application *Application) UnsubscribeChanges(resource string, listener chan<- any)
- func (application *Application) Write(resource string, value any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶
func NewApplication(storage *storage.Storage, events *event.Events) *Application
func (*Application) Action ¶ added in v0.5.0
func (application *Application) Action(resource string, action string, payload any)
func (*Application) Read ¶ added in v0.2.0
func (application *Application) Read(resource string) (any, error)
func (*Application) Start ¶
func (application *Application) Start()
func (*Application) Stop ¶
func (application *Application) Stop()
func (*Application) SubscribeAction ¶ added in v0.7.0
func (application *Application) SubscribeAction(resource string, action string, listener chan any)
func (*Application) SubscribeChanges ¶ added in v0.7.0
func (application *Application) SubscribeChanges(resource string, listener chan any)
func (*Application) UnsubscribeAction ¶ added in v0.7.0
func (application *Application) UnsubscribeAction(resource string, action string, listener chan<- any)
func (*Application) UnsubscribeChanges ¶ added in v0.7.0
func (application *Application) UnsubscribeChanges(resource string, listener chan<- any)
Click to show internal directories.
Click to hide internal directories.