config

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package config is a generated GoMock package.

Index

Constants

View Source
const (
	ConfigFileName       = ".gotouch"
	PropertiesUrlAddress = "https://raw.githubusercontent.com/denizgursoy/go-touch-projects/main/package.yaml"
)
View Source
const (
	URL = "url"
)

Variables

View Source
var ConfigurableSettings = []string{URL}

Functions

func GetFileName

func GetFileName() (string, error)

Types

type Config

type Config struct {
	DefaultPath *string `json:"default_path"`
}

type ConfigManager

type ConfigManager interface {
	SetValueOf(key, value string) error
	UnsetValuesOf(key string) error
	GetDefaultPath() (string, error)
}

func NewConfigManager

func NewConfigManager(logger logger.Logger) ConfigManager

type MockConfigManager

type MockConfigManager struct {
	// contains filtered or unexported fields
}

MockConfigManager is a mock of ConfigManager interface.

func NewMockConfigManager

func NewMockConfigManager(ctrl *gomock.Controller) *MockConfigManager

NewMockConfigManager creates a new mock instance.

func (*MockConfigManager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConfigManager) GetDefaultPath

func (m *MockConfigManager) GetDefaultPath() (string, error)

GetDefaultPath mocks base method.

func (*MockConfigManager) SetValueOf

func (m *MockConfigManager) SetValueOf(key, value string) error

SetValueOf mocks base method.

func (*MockConfigManager) UnsetValuesOf

func (m *MockConfigManager) UnsetValuesOf(key string) error

UnsetValuesOf mocks base method.

type MockConfigManagerMockRecorder

type MockConfigManagerMockRecorder struct {
	// contains filtered or unexported fields
}

MockConfigManagerMockRecorder is the mock recorder for MockConfigManager.

func (*MockConfigManagerMockRecorder) GetDefaultPath

func (mr *MockConfigManagerMockRecorder) GetDefaultPath() *gomock.Call

GetDefaultPath indicates an expected call of GetDefaultPath.

func (*MockConfigManagerMockRecorder) SetValueOf

func (mr *MockConfigManagerMockRecorder) SetValueOf(key, value interface{}) *gomock.Call

SetValueOf indicates an expected call of SetValueOf.

func (*MockConfigManagerMockRecorder) UnsetValuesOf

func (mr *MockConfigManagerMockRecorder) UnsetValuesOf(key interface{}) *gomock.Call

UnsetValuesOf indicates an expected call of UnsetValuesOf.

Jump to

Keyboard shortcuts

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