Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FSTransport ¶
FSTransport writes a formatted report to the filesystem. If Filename is empty, it defaults to "report" + the formatter's file extension.
func NewFSTransport ¶
func NewFSTransport(dir string) *FSTransport
NewFSTransport creates an FSTransport that writes to dir.
type HTTPTransport ¶
HTTPTransport POSTs a formatted report to a URL (webhook). The Content-Type header is set from the formatter's MediaType. Additional headers (e.g. Authorization) can be provided via Headers. If Client is nil, http.DefaultClient is used.
func NewHTTPTransport ¶
func NewHTTPTransport(url string) *HTTPTransport
NewHTTPTransport creates an HTTPTransport that POSTs to url.
Click to show internal directories.
Click to hide internal directories.