module Server

Defined in:

server.cr

Constant Summary

FORWARD_DL_PATH = "/adl/%s"
GAPI_URI = "https://www.googleapis.com"
GD_APIDL = GAPI_URI + GD_APIDL_PATH
GD_APIDL_PATH = "/drive/v3/files/%s?alt=media&key=%s"
GD_UCDL = "https://drive.google.com/uc?export=download&id=%s"

Class Method Summary

Class Method Detail

def self.auto_directlink(fid, forward = false) #

[View source]
def self.check_cache(fid, data_proc, valid_proc) #

[View source]
def self.gapi_cli #

[View source]
def self.gd_filesize(fid) #

[View source]
def self.get_apidirectlink(fid) #

[View source]
def self.handle_request(context) #

[View source]
def self.init_cache #

[View source]
def self.insert_cache(fid, filesize) #

[View source]
def self.load_config(yaml = File.read("./config.yml")) #

[View source]
def self.start_server(host = "", port = -1) #

[View source]