Documentation ¶
Overview ¶
Package httpsink sends event to the machine server via HTTP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPSink ¶
type HTTPSink struct {
// contains filtered or unexported fields
}
HTTPSink implements event.Sink.
All the HTTP requests to the server include an Authorization: Bearer token header that is populated from Default Application Credentials.
func NewFromClient ¶
NewFromClient returns an instance of HTTPSink.
serverURL is the scheme, host, and optionally the port of the server to send requests to as a string, for example: "https://machines.skia.org".
The client must be configured to make all the HTTP requests to the server include an Authorization: Bearer token header, which is authorized as an Editor of machineserver.
Click to show internal directories.
Click to hide internal directories.