Documentation ¶
Index ¶
- type Config
- type DefaultConfig
- func (c *DefaultConfig) Clock() clockwork.Clock
- func (c *DefaultConfig) DB() *sql.DB
- func (c *DefaultConfig) PasswordHasher() crypto.Hasher
- func (c *DefaultConfig) Setting() Setting
- func (c *DefaultConfig) SmsV1Client() smsv1.SmsServiceClient
- func (c *DefaultConfig) UserTokenService() service.UserTokenService
- type Setting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultConfig ¶
type DefaultConfig struct {
// contains filtered or unexported fields
}
func New ¶
func New( setting Setting, clock clockwork.Clock, db *sql.DB, passwordHasher crypto.Hasher, smsv1Cli smsv1.SmsServiceClient, userTokenService service.UserTokenService, ) *DefaultConfig
func (*DefaultConfig) Clock ¶
func (c *DefaultConfig) Clock() clockwork.Clock
func (*DefaultConfig) DB ¶
func (c *DefaultConfig) DB() *sql.DB
func (*DefaultConfig) PasswordHasher ¶
func (c *DefaultConfig) PasswordHasher() crypto.Hasher
func (*DefaultConfig) Setting ¶
func (c *DefaultConfig) Setting() Setting
func (*DefaultConfig) SmsV1Client ¶
func (c *DefaultConfig) SmsV1Client() smsv1.SmsServiceClient
func (*DefaultConfig) UserTokenService ¶
func (c *DefaultConfig) UserTokenService() service.UserTokenService
Click to show internal directories.
Click to hide internal directories.