Documentation
¶
Index ¶
Constants ¶
View Source
const (
// Version string
Version = "0.1"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPSourceClient ¶
type HTTPSourceClient struct {
UserAgent string
// contains filtered or unexported fields
}
HTTPSourceClient send to Resource HTTP
func NewHTTPSourceClient ¶
func NewHTTPSourceClient(url *url.URL, opts ...HTTPSourceClientOptFunc) (*HTTPSourceClient, error)
NewHTTPSourceClient create HTTPSourceClient object
type HTTPSourceClientOptFunc ¶
type HTTPSourceClientOptFunc func(*HTTPSourceClient) error
HTTPSourceClientOptFunc set some values to client
func SetXSumoCategoryHeader ¶
func SetXSumoCategoryHeader(category string) HTTPSourceClientOptFunc
SetXSumoCategoryHeader set X-Sumo-Category's value to header
func SetXSumoHostHeader ¶
func SetXSumoHostHeader(host string) HTTPSourceClientOptFunc
SetXSumoHostHeader set X-Sumo-Host's value to header
func SetXSumoNameHeader ¶
func SetXSumoNameHeader(name string) HTTPSourceClientOptFunc
SetXSumoNameHeader set X-Sumo-Name's value to header
Click to show internal directories.
Click to hide internal directories.