commons

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

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

View Source
const PKGS_CHECKER_EMPTY_PKGHASH = "00000000000000000000000000000000"
View Source
const PKGS_CHECKER_VERSION = "0.10.3"

Variables

This section is empty.

Functions

func AbsPathFromBase

func AbsPathFromBase(basepath, resourcepath string) (string, error)

func CheckErr

func CheckErr(err error)

func GetResource

func GetResource(url, apiKey string, opts HttpClientOpts) ([]byte, error)

func InitConcurrency

func InitConcurrency()

func InitLogging

func InitLogging() *os.File

func SanitizeDuplicate

func SanitizeDuplicate(i []string) (o []string)

Types

type ChannelResp

type ChannelResp struct {
	Result string
	Error  error
}

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

Jump to

Keyboard shortcuts

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