Documentation
¶
Overview ¶
Package dbfiledirpathprovider is a package for providing db file directory path.
Index ¶
Constants ¶
View Source
const ( // jrp environment variable saving the directory of wnjpn.db JRP_ENV_WNJPN_DB_FILE_DIR = "JRP_WNJPN_DB_FILE_DIR" // jrp environment variable saving the directory of jrp.db JRP_ENV_JRP_DB_FILE_DIR = "JRP_DB_FILE_DIR" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBFileDirPathProvidable ¶
type DBFileDirPathProvidable interface { GetJrpDBFileDirPath() (string, error) GetWNJpnDBFileDirPath() (string, error) }
DBFileDirPathProvidable is an interface for DBFileDirPathProvider.
type DBFileDirPathProvider ¶
type DBFileDirPathProvider struct { FilepathProxy filepathproxy.FilePath OsProxy osproxy.Os UserProxy userproxy.User }
DBFileDirPathProvider is a struct that implements DBFileDirPathProvidable.
func New ¶
func New( filepath filepathproxy.FilePath, os osproxy.Os, user userproxy.User, ) *DBFileDirPathProvider
New is a constructor for DBFileDirPathProvider.
func (*DBFileDirPathProvider) GetJrpDBFileDirPath ¶
func (d *DBFileDirPathProvider) GetJrpDBFileDirPath() (string, error)
GetJrpDBFileDirPath provides db file directory path for jrp db file.
func (*DBFileDirPathProvider) GetWNJpnDBFileDirPath ¶
func (d *DBFileDirPathProvider) GetWNJpnDBFileDirPath() (string, error)
GetWNJpnDBFileDirPath provides db file directory path for wnjpn db file.
Click to show internal directories.
Click to hide internal directories.