1
0
Fork 0
golang-forgejo-f3-gof3/options/http/interface.go

21 lines
468 B
Go
Raw Permalink Normal View History

// Copyright Earl Warren <contact@earl-warren.org>
// Copyright Loïc Dachary <loic@dachary.org>
// SPDX-License-Identifier: MIT
package http
import (
"net/http"
)
type NewMigrationHTTPClientFun func() *http.Client
type Interface interface {
GetNewMigrationHTTPClient() NewMigrationHTTPClientFun
SetNewMigrationHTTPClient(fun NewMigrationHTTPClientFun)
GetSkipTLSVerify() bool
SetSkipTLSVerify(skipTLSVerify bool)
GetProxy() string
SetProxy(proxy string)
}