config

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 2 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 struct {
	Host             string
	Scheme           string
	Port             int
	PemPath, KeyPath string
	StorePath        string
	FileName         string
	Verbose          bool
	ForceSave        bool
	DynamoFileName   bool
	URL              *url.URL

	// This option provides deleting records which weren't requested during tests.
	SessionMode bool

	//If NoUseDomain is true proxy don't use domain name and port for storing data.
	//So you may use it for test with different servers.
	NoUseDomain bool

	// If NoUseUserData is true proxy don't use user's name for storing data.
	// So you may use it for test with different user.
	NoUseUserData bool

	// Saver and reader
	Keeper plugins.IPlugin

	// SetLogger switches the plugin to debug mode and the plugin should print the filename and key.
	// Returns error if this mode is not supported.
	Logger plugins.ILogger
}

func (*Config) Init

func (cfg *Config) Init() (err error)

func (*Config) SetKeeper added in v0.1.11

func (cfg *Config) SetKeeper(keeper plugins.IPlugin)

func (*Config) SetLogger added in v0.1.12

func (cfg *Config) SetLogger(logger plugins.ILogger)

Jump to

Keyboard shortcuts

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