Documentation ¶
Overview ¶
Package repository is a package for providing wnjpn repository.
Index ¶
Constants ¶
View Source
const (
// WordNet Japan sqlite database file name
WNJPN_DB_FILE_NAME = "wnjpn.db"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WNJpnRepository ¶
type WNJpnRepository struct {
SqlProxy sqlproxy.Sql
}
WNJpnRepository is a struct that implements WNJpnRepositoryInterface.
func New ¶
func New( sqlProxy sqlproxy.Sql, ) *WNJpnRepository
New is a constructor for WNJpnRepository.
func (*WNJpnRepository) GetAllAVNWords ¶
func (w *WNJpnRepository) GetAllAVNWords(wnJpnDBFilePath string) ([]model.Word, error)
GetAllAVNWords gets all AVN words.
func (*WNJpnRepository) GetAllAVWords ¶
func (w *WNJpnRepository) GetAllAVWords(wnJpnDBFilePath string) ([]model.Word, error)
GetAllAVWords gets all AV words.
func (*WNJpnRepository) GetAllNWords ¶
func (w *WNJpnRepository) GetAllNWords(wnJpnDBFilePath string) ([]model.Word, error)
GetAllNWords gets all N words.
type WNJpnRepositoryInterface ¶
type WNJpnRepositoryInterface interface { GetAllAVNWords(wnJpnDBFilePath string) ([]model.Word, error) GetAllNWords(wnJpnDBFilePath string) ([]model.Word, error) GetAllAVWords(wnJpnDBFilePath string) ([]model.Word, error) }
WNJpnRepositoryInterface is an interface for WNJpnRepository.
Click to show internal directories.
Click to hide internal directories.