Documentation ¶
Overview ¶
Package cloudevents provides cloudevents client and server implementations.
Package cloudevents provides cloudevents client and server implementations.
Package cloudevents provides cloudevents client and server implementations.
Package cloudevents provides cloudevents client and server implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var NewEvent = v2.NewEvent
Functions ¶
Types ¶
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
Result is the result of event delivery.
func NewHTTPResult ¶
NewResult creates and returns a result.
ex) result := cloudevents.NewHTTPResult(http.StatusOK, "")
func (*Result) GetHttpStatusCode ¶
GetHttpStatusCode returns the status code if the result is http.
ex) statusCode, err := result.GetHttpStatusCode()
func (*Result) IsACK ¶
IsACK returns whether the recipient acknowledged the event.
ex) isACK := result.IsACK()
func (*Result) IsNACK ¶
IsNACK returns whether the recipient did not acknowledge the event.
ex) isNACK := result.IsNACK()
func (*Result) IsUndelivered ¶
IsUndelivered returns whether it was delivered or not.
ex) isUndelivered := result.IsUndelivered()
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a struct that provides server related methods.