Documentation ¶
Index ¶
- func LoadConfig() error
- type AuthService
- func (s *AuthService) CheckAuth(next http.Handler) http.Handler
- func (s *AuthService) GetUserInfo(w http.ResponseWriter, r *http.Request)
- func (s *AuthService) GetUsersEmailList(w http.ResponseWriter, r *http.Request)
- func (s *AuthService) Login(w http.ResponseWriter, r *http.Request)
- func (s *AuthService) Logout(w http.ResponseWriter, r *http.Request)
- func (s *AuthService) RefreshToken(w http.ResponseWriter, r *http.Request)
- func (s *AuthService) Register(w http.ResponseWriter, r *http.Request)
- func (s *AuthService) UpdateUserInfo(w http.ResponseWriter, r *http.Request)
- type Server
- type StoreService
- func (s *StoreService) CheckFileOwner(next http.Handler) http.Handler
- func (s *StoreService) CheckFilePermission(next http.Handler) http.Handler
- func (s *StoreService) Delete(w http.ResponseWriter, r *http.Request)
- func (s *StoreService) Download(w http.ResponseWriter, r *http.Request)
- func (s *StoreService) GetPermittedUsersEmails(w http.ResponseWriter, r *http.Request)
- func (s *StoreService) GetUserFiles(w http.ResponseWriter, r *http.Request)
- func (s *StoreService) PermitUsers(w http.ResponseWriter, r *http.Request)
- func (s *StoreService) Upload(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig() error
Types ¶
type AuthService ¶
type AuthService struct { DBCon *sql.DB RedisRefreshTokenDB *redis.Client RedisClientIDDB *redis.Client RedisPasswordTokenDB *redis.Client }
func (*AuthService) GetUserInfo ¶
func (s *AuthService) GetUserInfo(w http.ResponseWriter, r *http.Request)
func (*AuthService) GetUsersEmailList ¶
func (s *AuthService) GetUsersEmailList(w http.ResponseWriter, r *http.Request)
func (*AuthService) Login ¶
func (s *AuthService) Login(w http.ResponseWriter, r *http.Request)
func (*AuthService) Logout ¶
func (s *AuthService) Logout(w http.ResponseWriter, r *http.Request)
func (*AuthService) RefreshToken ¶
func (s *AuthService) RefreshToken(w http.ResponseWriter, r *http.Request)
func (*AuthService) Register ¶
func (s *AuthService) Register(w http.ResponseWriter, r *http.Request)
func (*AuthService) UpdateUserInfo ¶
func (s *AuthService) UpdateUserInfo(w http.ResponseWriter, r *http.Request)
type StoreService ¶
func (*StoreService) CheckFileOwner ¶
func (s *StoreService) CheckFileOwner(next http.Handler) http.Handler
func (*StoreService) CheckFilePermission ¶
func (s *StoreService) CheckFilePermission(next http.Handler) http.Handler
func (*StoreService) Delete ¶
func (s *StoreService) Delete(w http.ResponseWriter, r *http.Request)
func (*StoreService) Download ¶
func (s *StoreService) Download(w http.ResponseWriter, r *http.Request)
func (*StoreService) GetPermittedUsersEmails ¶
func (s *StoreService) GetPermittedUsersEmails(w http.ResponseWriter, r *http.Request)
func (*StoreService) GetUserFiles ¶
func (s *StoreService) GetUserFiles(w http.ResponseWriter, r *http.Request)
func (*StoreService) PermitUsers ¶
func (s *StoreService) PermitUsers(w http.ResponseWriter, r *http.Request)
func (*StoreService) Upload ¶
func (s *StoreService) Upload(w http.ResponseWriter, r *http.Request)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.