Documentation ¶
Index ¶
- func GetConfig(cmd types.ICommand) (types.Config, error)
- func GetConfigReader(cmd types.ICommand) types.IConfig
- func GetHttpClient(cmd types.ICommand) http.Client
- func GetLibraries(cmd types.ICommand) (map[types.LibraryType]types.ILibrary, error)
- func GetSource(cmd types.ICommand, sourceType types.SourceType) (types.ISource, error)
- func GetSourceSetting(cmd types.ICommand, sourceType types.SourceType) (types.ISourceConfig, error)
- func GetWikiGetter(cmd types.ICommand) client.TableGetter
- func SetConfig(cmd types.ICommand, cfg types.Config)
- func SetLibraries(cmd types.ICommand, libraries map[types.LibraryType]types.ILibrary)
- func SetSources(cmd types.ICommand, sources map[types.SourceType]types.ISource)
- type ContextKey
- type ContextMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLibraries ¶
func GetSourceSetting ¶
func GetSourceSetting(cmd types.ICommand, sourceType types.SourceType) (types.ISourceConfig, error)
func GetWikiGetter ¶
func GetWikiGetter(cmd types.ICommand) client.TableGetter
func SetLibraries ¶
func SetSources ¶
Types ¶
type ContextKey ¶
type ContextKey string
type ContextMock ¶
ContextMock is an autogenerated mock type for the Context type
func NewContextMock ¶
func NewContextMock(t interface { mock.TestingT Cleanup(func()) }) *ContextMock
NewContextMock creates a new instance of ContextMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ContextMock) Deadline ¶
func (_m *ContextMock) Deadline() (time.Time, bool)
Deadline provides a mock function with given fields:
func (*ContextMock) Done ¶
func (_m *ContextMock) Done() <-chan struct{}
Done provides a mock function with given fields:
func (*ContextMock) Err ¶
func (_m *ContextMock) Err() error
Err provides a mock function with given fields:
func (*ContextMock) Value ¶
func (_m *ContextMock) Value(key interface{}) interface{}
Value provides a mock function with given fields: key
Click to show internal directories.
Click to hide internal directories.