Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(NewRepository), fx.Invoke(Register), )
Module for fx.
Functions ¶
Types ¶
type FSRepository ¶
type FSRepository struct {
// contains filtered or unexported fields
}
FSRepository has books in a file.
type Repository ¶
type Repository interface { // GetBooks from storage. GetBooks() *Model }
Repository for books.
func NewRepository ¶
func NewRepository(filesystem fs.FS, enc *yaml.Encoder) Repository
NewRepository for books.
Click to show internal directories.
Click to hide internal directories.