Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetOptions ¶
func SetOptions(options *DSOptions)
SetOptions sets dashboard configuration options
Types ¶
type DSTopic ¶
type DSTopic interface { // GetTopic gets topic id GetTopic() string // Listen listens for event change, any change should be pushed to DSEventQ Listen(q DSEventQ) error // React reacts for event change, and returns processed data to push to frontend React(event TopicEvent) (string, error) }
DSTopic defines dashboard topic interface
type MockDSTopic ¶
func (*MockDSTopic) GetTopic ¶
func (m *MockDSTopic) GetTopic() string
func (*MockDSTopic) Listen ¶
func (m *MockDSTopic) Listen(q DSEventQ) error
func (*MockDSTopic) React ¶
func (m *MockDSTopic) React(event TopicEvent) (string, error)
Click to show internal directories.
Click to hide internal directories.