Documentation ¶
Index ¶
- func New(configJSON json.RawMessage) (adapter dataprovider.DataAdapter, err error)
- type RenesasSimulatorAdapter
- func (adapter *RenesasSimulatorAdapter) Close()
- func (adapter *RenesasSimulatorAdapter) GetData(pathList []string) (data map[string]interface{}, err error)
- func (adapter *RenesasSimulatorAdapter) GetName() (name string)
- func (adapter *RenesasSimulatorAdapter) GetPathList() (pathList []string, err error)
- func (adapter *RenesasSimulatorAdapter) GetSubscribeChannel() (channel <-chan map[string]interface{})
- func (adapter *RenesasSimulatorAdapter) IsPathPublic(path string) (result bool, err error)
- func (adapter *RenesasSimulatorAdapter) SetData(data map[string]interface{}) (err error)
- func (adapter *RenesasSimulatorAdapter) Subscribe(pathList []string) (err error)
- func (adapter *RenesasSimulatorAdapter) Unsubscribe(pathList []string) (err error)
- func (adapter *RenesasSimulatorAdapter) UnsubscribeAll() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(configJSON json.RawMessage) (adapter dataprovider.DataAdapter, err error)
New creates adapter instance.
Types ¶
type RenesasSimulatorAdapter ¶
type RenesasSimulatorAdapter struct {
// contains filtered or unexported fields
}
RenesasSimulatorAdapter Renesas simulator adapter.
func (*RenesasSimulatorAdapter) Close ¶
func (adapter *RenesasSimulatorAdapter) Close()
Close closes adapter.
func (*RenesasSimulatorAdapter) GetData ¶
func (adapter *RenesasSimulatorAdapter) GetData(pathList []string) (data map[string]interface{}, err error)
GetData returns data by path.
func (*RenesasSimulatorAdapter) GetName ¶
func (adapter *RenesasSimulatorAdapter) GetName() (name string)
GetName returns adapter name.
func (*RenesasSimulatorAdapter) GetPathList ¶
func (adapter *RenesasSimulatorAdapter) GetPathList() (pathList []string, err error)
GetPathList returns list of all pathes for this adapter.
func (*RenesasSimulatorAdapter) GetSubscribeChannel ¶
func (adapter *RenesasSimulatorAdapter) GetSubscribeChannel() (channel <-chan map[string]interface{})
GetSubscribeChannel returns channel on which data changes will be sent.
func (*RenesasSimulatorAdapter) IsPathPublic ¶
func (adapter *RenesasSimulatorAdapter) IsPathPublic(path string) (result bool, err error)
IsPathPublic returns true if requested data accessible without authorization.
func (*RenesasSimulatorAdapter) SetData ¶
func (adapter *RenesasSimulatorAdapter) SetData(data map[string]interface{}) (err error)
SetData sets data by pathes.
func (*RenesasSimulatorAdapter) Subscribe ¶
func (adapter *RenesasSimulatorAdapter) Subscribe(pathList []string) (err error)
Subscribe subscribes for data changes.
func (*RenesasSimulatorAdapter) Unsubscribe ¶
func (adapter *RenesasSimulatorAdapter) Unsubscribe(pathList []string) (err error)
Unsubscribe unsubscribes from data changes.
func (*RenesasSimulatorAdapter) UnsubscribeAll ¶
func (adapter *RenesasSimulatorAdapter) UnsubscribeAll() (err error)
UnsubscribeAll unsubscribes from all data changes.
Click to show internal directories.
Click to hide internal directories.