Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataListener ¶
type DataManager ¶
type DataManager struct {
// contains filtered or unexported fields
}
func NewDataManager ¶
func NewDataManager() *DataManager
func (*DataManager) AddDataProvider ¶
func (m *DataManager) AddDataProvider(name string, p *DataProvider)
func (*DataManager) GetDataProvider ¶
func (m *DataManager) GetDataProvider(name string) *DataProvider
type DataProvider ¶
type DataProvider struct {
// contains filtered or unexported fields
}
func NewDataProvider ¶
func NewDataProvider(lg *zap.Logger, cfg *DataProviderConfig) (*DataProvider, error)
func (*DataProvider) Close ¶
func (ds *DataProvider) Close()
func (*DataProvider) GetData ¶
func (ds *DataProvider) GetData() ([]byte, error)
func (*DataProvider) LoadAndAddListener ¶
func (ds *DataProvider) LoadAndAddListener(l DataListener) error
LoadAndAddListener loads the DataListener, returns any error that occurs, and add this DataListener to this DataProvider.
type DataProviderConfig ¶
Click to show internal directories.
Click to hide internal directories.