Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrNilChan will be returned by Notify if it is passed a nil channel ErrNilChan = fmt.Errorf("nil channel given") //Client is the default client used for requests. Client = &http.Client{} //Logger is used to log debug messages. By default logging is disabled; //to enable, use SetOutput() or overwrite this instance. Logger = log.New(ioutil.Discard, "", log.LstdFlags) )
View Source
var GetReq = func(ctx context.Context, verb, uri string) (*http.Request, error) { return http.NewRequestWithContext(ctx, verb, uri, nil) }
GetReq is a function to return a single request. It will be used by notify to get a request and can be replaces if additional configuration is desired on the request. The "Accept" header will necessarily be overwritten.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.