Versions in this module Expand all Collapse all v2 v2.1.1 Jun 1, 2024 v2.1.0 May 19, 2024 v2.0.2 May 18, 2024 v2.0.1 Aug 23, 2023 v2.0.0 Aug 21, 2023 Changes in this version + const ExitCodeGenericFailure + const ExitCodeSuccess + const ExitCodeTimeoutFailure + func GetCancellationError(ctx context.Context) error + func GetExitCode(ctx context.Context) int + func Raise(ctx context.Context, e Event) + func RegisterEventListener(ctx context.Context, f SetEventChanFunc) + func SetExitCode(ctx context.Context, code int) + func Stop(ctx context.Context) + func Succeeded(ctx context.Context) bool + func Success(ctx context.Context) + func WithEvents(ctx context.Context) context.Context + type ClientDisconnected struct + Err error + func (c ClientDisconnected) Error() string + type Event interface + type File struct + Content any + MIME string + Name string + Path string + Size int64 + TransferDuration time.Duration + TransferEndTime time.Time + TransferRate int64 + TransferSize int64 + TransferStartTime time.Time + func (f *File) ComputeTransferFields() + type HTTPRequest struct + Body any + Header map[string][]string + Host string + Method string + Path string + Protocol string + Query map[string][]string + RemoteAddr string + RequestURI string + Trailer map[string][]string + func NewHTTPRequest(r *http.Request) *HTTPRequest + func NewHTTPRequest_WithBody(r *http.Request) *HTTPRequest + func (hr *HTTPRequest) ReadBody() error + type HTTPRequestBody func() ([]byte, error) + type HTTPResponse struct + Body any + Header http.Header + StatusCode int + func (hr *HTTPResponse) ReadBody() error + type SetEventChanFunc func(context.Context, chan Event) v2.0.0-beta3 Aug 2, 2023