Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookService ¶
type BookService interface { BookDB }
func NewBookService ¶
func NewBookService(db *sql.DB) BookService
type Service ¶
type Service struct { Book BookService // contains filtered or unexported fields }
func NewService ¶
func NewService(cfgs ...ServiceConfig) (*Service, error)
type ServiceConfig ¶
func WithBook ¶
func WithBook() ServiceConfig
func WithDB ¶
func WithDB(name, dsn string) ServiceConfig
Click to show internal directories.
Click to hide internal directories.