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 user access. Notes: Core does not maintain any state, we should use value semantic. Core is responsible for validating user data. Core is responsible for persisting user data.
func NewCore ¶
func NewCore(sqlDB *sqlx.DB, logger *zap.SugaredLogger) Core
NewCore constructs a Core for user api access.
func (Core) Authenticate ¶
Click to show internal directories.
Click to hide internal directories.