dbfiledirpathprovider

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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