http

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSource

func NewSource(opts ...source.Option) source.Source

func WithConfig

func WithConfig(data []byte) []source.Option

func WithHTTPConfig

func WithHTTPConfig(httpCfg httpConfig) source.Option

func WithNamespace added in v1.1.3

func WithNamespace(namespace string) source.Option

func WithService

func WithService(service string) source.Option

func WithVersion

func WithVersion(version string) source.Option

Types

type Config added in v1.1.3

type Config struct {
	Namespace     string        `config:"namespace" desc:"default is global namespace"`
	Service       string        `config:"service" desc:"default is global service"`
	Version       string        `config:"version" desc:"default is global version"`
	Url           string        `config:"url"`
	Authorization authorization `json:"authorization"`
}

Jump to

Keyboard shortcuts

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