Documentation
¶
Index ¶
- type CreateUserRequest
- type Handler
- func (h *Handler) Activate(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Create(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Delete(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Get(w http.ResponseWriter, r *http.Request)
- func (h *Handler) List(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Routes() chi.Router
- func (h *Handler) Suspend(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Update(w http.ResponseWriter, r *http.Request)
- type ListParams
- type Service
- func (s *Service) Activate(ctx context.Context, id string) error
- func (s *Service) Create(ctx context.Context, req CreateUserRequest) (*User, error)
- func (s *Service) Delete(ctx context.Context, id string) error
- func (s *Service) GetByID(ctx context.Context, id string) (*User, error)
- func (s *Service) List(ctx context.Context, params ListParams) ([]User, int64, error)
- func (s *Service) Suspend(ctx context.Context, id string) error
- func (s *Service) Update(ctx context.Context, id string, req UpdateUserRequest) (*User, error)
- type UpdateUserRequest
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUserRequest ¶
type ListParams ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
type UpdateUserRequest ¶
type User ¶
type User struct {
ID string `json:"id"`
Email string `json:"email"`
EmailVerified bool `json:"email_verified"`
DisplayName string `json:"display_name"`
AvatarURL string `json:"avatar_url"`
Status string `json:"status"`
Metadata map[string]interface{} `json:"metadata"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Click to show internal directories.
Click to hide internal directories.