Documentation
¶
Overview ¶
Copyright © 2020 Bisoncorps
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Bisoncorps ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Bisoncorps ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Bisoncorps ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Bisoncorps ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Bisoncorps ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- Variables
- func DocHandler(w http.ResponseWriter, r *http.Request)
- func EngineHandler(w http.ResponseWriter, r *http.Request)
- func Execute()
- func ListHandler(w http.ResponseWriter, r *http.Request)
- func ProcessFetchTask(fn fetchFunc) engine.SearchResult
- func SearchHandler(w http.ResponseWriter, r *http.Request)
- func SelectOpts(title string, options []string) (int, string)
Constants ¶
const DEFAULT_PLAYER = "browser"
const Version = "0.3.6"
Variables ¶
var ResumeCmd = &cobra.Command{ Use: "resume", Short: "resume downloads for previously stopped movies", Long: `Resume Gophie makes use of the annie downloader to resume previous downloads It stores the list of the downloads and gives you the option to remove or resume download `, Args: cobra.MinimumNArgs(0), Run: func(cmd *cobra.Command, args []string) { var resume []downloader.Downloader var titles []string file, err := os.Open(path.Join(viper.GetString("gophie_cache"), "downloadList.json")) if err != nil { log.Debug(err) return } err = json.NewDecoder(file).Decode(&resume) if err != nil { log.Fatal(err) return } file.Close() for _, i := range resume { titles = append(titles, i.Name) } prompt := promptui.Select{ Label: "Resume List", Items: titles, } choiceIndex, _, err := prompt.Run() if err != nil { log.Fatalf("Prompt failed: %v\n", err) } selectedDownloader := resume[choiceIndex] selectedDownloader.DownloadFile() }, }
ResumeCmd represents the resume command
var ( // WhiteListedHosts a list of hosts that can access api WhiteListedHosts []string )
Functions ¶
func DocHandler ¶
func DocHandler(w http.ResponseWriter, r *http.Request)
DocHandler : renders iframe pointing to hosted docs
func EngineHandler ¶
func EngineHandler(w http.ResponseWriter, r *http.Request)
EngineHandler : handles Engine Listing
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func ListHandler ¶
func ListHandler(w http.ResponseWriter, r *http.Request)
ListHandler : handles List Requests
func ProcessFetchTask ¶
func ProcessFetchTask(fn fetchFunc) engine.SearchResult
ProcessFetchTask : Process a task in the Terminal and show processing
func SearchHandler ¶
func SearchHandler(w http.ResponseWriter, r *http.Request)
SearchHandler : handles search requests
Types ¶
This section is empty.