ctxu

package
v0.0.0-...-c12cb85 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(cmd types.ICommand) (types.Config, error)

func GetConfigReader

func GetConfigReader(cmd types.ICommand) types.IConfig

func GetHttpClient

func GetHttpClient(cmd types.ICommand) http.Client

func GetLibraries

func GetLibraries(cmd types.ICommand) (map[types.LibraryType]types.ILibrary, error)

func GetSource

func GetSource(cmd types.ICommand, sourceType types.SourceType) (types.ISource, error)

func GetSourceSetting

func GetSourceSetting(cmd types.ICommand, sourceType types.SourceType) (types.ISourceConfig, error)

func GetWikiGetter

func GetWikiGetter(cmd types.ICommand) client.TableGetter

func SetConfig

func SetConfig(cmd types.ICommand, cfg types.Config)

func SetLibraries

func SetLibraries(cmd types.ICommand, libraries map[types.LibraryType]types.ILibrary)

func SetSources

func SetSources(cmd types.ICommand, sources map[types.SourceType]types.ISource)

Types

type ContextKey

type ContextKey string

type ContextMock

type ContextMock struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL