Documentation ¶
Index ¶
- type Manager
- type Router
- func (r *Router) Admin(c chi.Router)
- func (r *Router) GetUser(ctx context.Context, w http.ResponseWriter, req *http.Request)
- func (r *Router) GetUsers(ctx context.Context, w http.ResponseWriter, req *http.Request)
- func (r *Router) LoginUser(ctx context.Context, w http.ResponseWriter, req *http.Request)
- func (r *Router) Private(c chi.Router)
- func (r *Router) Public(c chi.Router)
- func (r *Router) RefreshUser(ctx context.Context, w http.ResponseWriter, req *http.Request)
- func (r *Router) RegisterUser(ctx context.Context, w http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { RegisterUser(ctx context.Context, registerUser user.RegisterUser) error LoginUser(ctx context.Context, loginUser user.LoginUser) (*user.AuthTokens, error) RefreshUser(ctx context.Context, refreshUser user.RefreshUser) (*user.AuthTokens, error) GetUser(ctx context.Context) (*user.GetUser, error) GetUsers(ctx context.Context) ([]*user.GetUser, error) }
Click to show internal directories.
Click to hide internal directories.