Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataConnector ¶
type DataConnector struct { Name string URL string ReadOnly bool Schema string User ValueHolder Password ValueHolder }
DataConnector holds a name (alias) and a URI to a database.
type DataPingerFactory ¶
type DataPingerFactory interface {
New(url string) DataPinger
}
DataPingerFactory create a DataPing for the given `url`
type Error ¶
type Error struct {
Description string
}
Error is the error type returned by the domain
func Add ¶
func Add(s Storage, m *DataConnector) *Error
Add an alias to the storage, if it does not exist
type MockDataPinger ¶
MockDataPinger is an autogenerated mock type for the DataPinger type
func (*MockDataPinger) Ping ¶
func (_m *MockDataPinger) Ping() *Error
Ping provides a mock function with given fields:
type MockDataPingerFactory ¶
MockDataPingerFactory is an autogenerated mock type for the DataPingerFactory type
func (*MockDataPingerFactory) New ¶
func (_m *MockDataPingerFactory) New(url string) DataPinger
New provides a mock function with given fields: url
type MockStorage ¶
MockStorage is an autogenerated mock type for the Storage type
func (*MockStorage) List ¶
func (_m *MockStorage) List() ([]DataConnector, *Error)
List provides a mock function with given fields:
func (*MockStorage) Store ¶
func (_m *MockStorage) Store(_a0 *DataConnector) *Error
Store provides a mock function with given fields: _a0
type Storage ¶
type Storage interface { List() ([]DataConnector, *Error) Store(*DataConnector) *Error }
Storage allows to store and retrieve DataConnector objects.