Documentation
¶
Index ¶
- Variables
- func EnsureDisplayName(usr *repo.User)
- func Timing(ctx context.Context, name string, fn func() error) error
- type Service
- func (svc *Service) AddEmailAddressToUser(ctx context.Context, mailModel repo.UserEmail) (*repo.UserEmail, []repo.UserEmail, error)
- func (svc *Service) AddUserAddress(ctx context.Context, model repo.UserAddress) ([]repo.UserAddress, error)
- func (svc *Service) DeleteEmailAddressFromUser(ctx context.Context, userID string, mailID string) ([]repo.UserEmail, error)
- func (svc *Service) DeleteUserAddress(ctx context.Context, userID string, addressID string) ([]repo.UserAddress, error)
- func (c *Service) GeneratePasswordResetToken(ctx context.Context, userID string) (string, string, error)
- func (svc *Service) MarkEmailAsPrimary(ctx context.Context, userID string, mailID string) error
- func (svc *Service) UpdateUserAddress(ctx context.Context, updateModel repo.UserAddress, paths []string) ([]repo.UserAddress, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFeatureDisabled = connect.NewError(connect.CodeUnavailable, fmt.Errorf("the requested feature has been disabled by an administrator"))
)
Functions ¶
func EnsureDisplayName ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AddEmailAddressToUser ¶
func (*Service) AddUserAddress ¶
func (svc *Service) AddUserAddress(ctx context.Context, model repo.UserAddress) ([]repo.UserAddress, error)
func (*Service) DeleteEmailAddressFromUser ¶
func (*Service) DeleteUserAddress ¶
func (*Service) GeneratePasswordResetToken ¶
func (*Service) MarkEmailAsPrimary ¶
func (*Service) UpdateUserAddress ¶
func (svc *Service) UpdateUserAddress(ctx context.Context, updateModel repo.UserAddress, paths []string) ([]repo.UserAddress, error)
Click to show internal directories.
Click to hide internal directories.