nbc

package module
v0.0.0-...-3fdd555 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2022 License: GPL-3.0 Imports: 31 Imported by: 0

README

nimbus-cloud

Documentation

Index

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) CheckAuth

func (s *AuthService) CheckAuth(next http.Handler) http.Handler

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 Server

type Server struct {
	Port   string
	Router *chi.Mux
}

func (*Server) ServeHTTP

func (s *Server) ServeHTTP()

type StoreService

type StoreService struct {
	DBCon *sql.DB
}

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)

Directories

Path Synopsis
internal
req

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL