Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
Core manages the set of APIs for book access. Notes: Core does not maintain any state, we should use value semantic. Core is responsible for validating book data. Core is responsible for persisting book data.
func NewCore ¶
func NewCore(sqlDB *sqlx.DB, logger *zap.SugaredLogger) Core
NewCore constructs a Core for book api access.
type FieldError ¶
type FieldError struct {
// contains filtered or unexported fields
}
func (FieldError) Error ¶
func (fe FieldError) Error() string
Click to show internal directories.
Click to hide internal directories.