config

package
v0.0.0-...-56aa9b5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	LogLevel() string
	DatabaseFile() string
	DataSource() string
	BaseUrl() string
	MailFromAddress() string
	MailToAddress() string
	MailSmtpHost() string
	MailSmtpPort() string
	MailUsername() string
	MailPassword() string
}

func New

func New(homeDir string) Config

type MockConfig

type MockConfig struct {
	mock.Mock
}

MockConfig is an autogenerated mock type for the Config type

func NewMockConfig

func NewMockConfig(t mockConstructorTestingTNewMockConfig) *MockConfig

NewMockConfig creates a new instance of MockConfig. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockConfig) BaseUrl

func (_m *MockConfig) BaseUrl() string

BaseUrl provides a mock function with given fields:

func (*MockConfig) DataSource

func (_m *MockConfig) DataSource() string

DataSource provides a mock function with given fields:

func (*MockConfig) DatabaseFile

func (_m *MockConfig) DatabaseFile() string

DatabaseFile provides a mock function with given fields:

func (*MockConfig) LogLevel

func (_m *MockConfig) LogLevel() string

LogLevel provides a mock function with given fields:

func (*MockConfig) MailFromAddress

func (_m *MockConfig) MailFromAddress() string

MailFromAddress provides a mock function with given fields:

func (*MockConfig) MailPassword

func (_m *MockConfig) MailPassword() string

MailPassword provides a mock function with given fields:

func (*MockConfig) MailSmtpHost

func (_m *MockConfig) MailSmtpHost() string

MailSmtpHost provides a mock function with given fields:

func (*MockConfig) MailSmtpPort

func (_m *MockConfig) MailSmtpPort() string

MailSmtpPort provides a mock function with given fields:

func (*MockConfig) MailToAddress

func (_m *MockConfig) MailToAddress() string

MailToAddress provides a mock function with given fields:

func (*MockConfig) MailUsername

func (_m *MockConfig) MailUsername() string

MailUsername provides a mock function with given fields:

Jump to

Keyboard shortcuts

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