Documentation ¶
Index ¶
- Variables
- type Connector
- type MysqlPersister
- func (mp *MysqlPersister) Close()
- func (mp *MysqlPersister) ConfigChangedWatcher() <-chan struct{}
- func (mp *MysqlPersister) PersistAndNotify(_ string, c *qsc.ServiceConfig) error
- func (mp *MysqlPersister) ReadHistoricalConfigs() ([]*qsc.ServiceConfig, error)
- func (mp *MysqlPersister) ReadPersistedConfig() (*qsc.ServiceConfig, error)
- type UnsafeConnector
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDuplicateConfig = errors.New("config with provided version number already exists")
Functions ¶
This section is empty.
Types ¶
type MysqlPersister ¶
type MysqlPersister struct {
// contains filtered or unexported fields
}
func (*MysqlPersister) Close ¶
func (mp *MysqlPersister) Close()
Close closes the notification channel and the connection to MySQL.
func (*MysqlPersister) ConfigChangedWatcher ¶
func (mp *MysqlPersister) ConfigChangedWatcher() <-chan struct{}
ConfigChangedWatcher returns a channel that is notified whenever a new config is available.
func (*MysqlPersister) PersistAndNotify ¶
func (mp *MysqlPersister) PersistAndNotify(_ string, c *qsc.ServiceConfig) error
PersistAndNotify persists a marshalled configuration passed in.
func (*MysqlPersister) ReadHistoricalConfigs ¶
func (mp *MysqlPersister) ReadHistoricalConfigs() ([]*qsc.ServiceConfig, error)
ReadHistoricalConfigs returns an array of previously persisted configs
func (*MysqlPersister) ReadPersistedConfig ¶
func (mp *MysqlPersister) ReadPersistedConfig() (*qsc.ServiceConfig, error)
ReadPersistedConfig provides a config previously persisted.
type UnsafeConnector ¶
type UnsafeConnector struct {
// contains filtered or unexported fields
}
func NewUnsafeConnector ¶
func NewUnsafeConnector(dbUser, dbPass, dbHost string, dbPort int, dbName string) *UnsafeConnector
Click to show internal directories.
Click to hide internal directories.