Documentation ¶
Overview ¶
Copyright (C) 2017-2019 Daniele Rondina <geaaru@sabayonlinux.org>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright (C) 2017-2019 Daniele Rondina <geaaru@sabayonlinux.org>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
- Constants
- func AbsPathFromBase(basepath, resourcepath string) (string, error)
- func CheckErr(err error)
- func GetResource(url, apiKey string, opts HttpClientOpts) ([]byte, error)
- func InitConcurrency()
- func InitLogging() *os.File
- func SanitizeDuplicate(i []string) (o []string)
- type ChannelResp
- type HttpClientOpts
Constants ¶
const PKGS_CHECKER_EMPTY_PKGHASH = "00000000000000000000000000000000"
const PKGS_CHECKER_VERSION = "0.8.4"
Variables ¶
This section is empty.
Functions ¶
func AbsPathFromBase ¶
func GetResource ¶
func GetResource(url, apiKey string, opts HttpClientOpts) ([]byte, error)
func InitConcurrency ¶
func InitConcurrency()
func InitLogging ¶
func SanitizeDuplicate ¶
Types ¶
type ChannelResp ¶
func NewChannelResp ¶
func NewChannelResp(s string, e error) ChannelResp
type HttpClientOpts ¶
type HttpClientOpts struct { InsecureSkipVerify bool MaxIdleConns int IdleConnTimeout int ConnTimeout int }
func NewHttpClientDefaultOpts ¶
func NewHttpClientDefaultOpts() HttpClientOpts