Documentation
¶
Index ¶
- func BindChannels[T any](source <-chan T, dest chan<- T, wg *sync.WaitGroup)
- func BindFlags(cmd *cobra.Command, v *viper.Viper, envPrefix string) error
- func CreateBasicAuthCredentials(credentials ICredentials) string
- func CreateLogger(minimumLevel zerolog.Level) zerolog.Logger
- func HttpRequest(method, url string, authorization IAuthorizationHeader, retry RetrySettings) ([]byte, *http.Response, error)
- func LoadConfig(v *viper.Viper, configFilePath string) error
- func NormalizeReportData(data interface{}) (interface{}, error)
- type IAuthorizationHeader
- type ICredentials
- type RetrySettings
- type SpecificLevelWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindChannels ¶
func CreateBasicAuthCredentials ¶
func CreateBasicAuthCredentials(credentials ICredentials) string
func HttpRequest ¶
func HttpRequest(method, url string, authorization IAuthorizationHeader, retry RetrySettings) ([]byte, *http.Response, error)
func NormalizeReportData ¶
func NormalizeReportData(data interface{}) (interface{}, error)
normalizeReportData recursively traverses the report data and removes any carriage return characters.
Types ¶
type IAuthorizationHeader ¶
type IAuthorizationHeader interface {
GetAuthorizationHeader() string
}
type ICredentials ¶
type RetrySettings ¶
type SpecificLevelWriter ¶
func (SpecificLevelWriter) WriteLevel ¶
Click to show internal directories.
Click to hide internal directories.