Documentation
¶
Index ¶
- type Server
- func (s Server) HandlerDownload(w http.ResponseWriter, r *http.Request)
- func (s Server) HandlerForgetFile(w http.ResponseWriter, r *http.Request)
- func (s Server) HandlerUpload(w http.ResponseWriter, r *http.Request)
- func (s Server) RegisterHandlers()
- func (s Server) ScheduleForgetFile(ctx context.Context, fileUUID string) (*taskspb.Task, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
GCPProjectID string
BackendBaseURL string
FirestoreClient *firestore.Client
TasksClient *cloudtasks.Client
StorageFileTTL time.Duration
CloudTasksQueuePath string
}
Server encapsulates the Hot Maze backend.
func (Server) HandlerDownload ¶
func (s Server) HandlerDownload(w http.ResponseWriter, r *http.Request)
HandlerDownload reads file data from Firestore and writes it to w.
func (Server) HandlerForgetFile ¶
func (s Server) HandlerForgetFile(w http.ResponseWriter, r *http.Request)
func (Server) HandlerUpload ¶
func (s Server) HandlerUpload(w http.ResponseWriter, r *http.Request)
func (Server) RegisterHandlers ¶
func (s Server) RegisterHandlers()
RegisterHandlers registers the handlers
Click to show internal directories.
Click to hide internal directories.