Documentation
¶
Index ¶
- func NewFromCLI(c *cli.Context, tracer opentracing.Tracer) (eventsources.EventSource, error)
- func NewSource(tracer opentracing.Tracer) (eventsources.EventSource, error)
- func PostEvent(payload []byte, eventType string, u *url.URL, client *http.Client) (*http.Response, error)
- type IssuesEvent
- func (ie IssuesEvent) IsError() (bool, error)
- func (ie IssuesEvent) OperationName() string
- func (ie IssuesEvent) ParentSpanID() (*string, error)
- func (ie IssuesEvent) SpanID() (string, error)
- func (ie IssuesEvent) State(prev *eventsources.EventState) (eventsources.SpanState, error)
- func (ie IssuesEvent) Tags() (map[string]interface{}, error)
- func (ie IssuesEvent) Timings() (eventsources.EventTimings, error)
- type PREvent
- func (pr PREvent) BranchRef() *string
- func (pr PREvent) IsError() (bool, error)
- func (pr PREvent) OperationName() string
- func (pr PREvent) ParentSpanID() (*string, error)
- func (pr PREvent) SpanID() (string, error)
- func (pr PREvent) State(prev *eventsources.EventState) (eventsources.SpanState, error)
- func (pr PREvent) Tags() (map[string]interface{}, error)
- func (pr PREvent) Timings() (eventsources.EventTimings, error)
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFromCLI ¶
func NewFromCLI(c *cli.Context, tracer opentracing.Tracer) (eventsources.EventSource, error)
func NewSource ¶
func NewSource(tracer opentracing.Tracer) (eventsources.EventSource, error)
Types ¶
type IssuesEvent ¶
type IssuesEvent struct {
*github.IssuesEvent
}
func (IssuesEvent) IsError ¶
func (ie IssuesEvent) IsError() (bool, error)
func (IssuesEvent) OperationName ¶
func (ie IssuesEvent) OperationName() string
func (IssuesEvent) ParentSpanID ¶
func (ie IssuesEvent) ParentSpanID() (*string, error)
TODO - Issues can reference other issues inside their body to model 'epics' or issues of issues
func (IssuesEvent) SpanID ¶
func (ie IssuesEvent) SpanID() (string, error)
ID identifies the issue event by its github Issue.ID
func (IssuesEvent) State ¶
func (ie IssuesEvent) State(prev *eventsources.EventState) (eventsources.SpanState, error)
func (IssuesEvent) Tags ¶
func (ie IssuesEvent) Tags() (map[string]interface{}, error)
func (IssuesEvent) Timings ¶ added in v0.3.0
func (ie IssuesEvent) Timings() (eventsources.EventTimings, error)
Timings parses github event data for start time, end time and calculates the duration.
type PREvent ¶
type PREvent struct {
*github.PullRequestEvent
}
func (PREvent) OperationName ¶
func (PREvent) ParentSpanID ¶
ParentSpanID inspects the PullRequestEvent payload for any references to a parent trace
func (PREvent) State ¶
func (pr PREvent) State(prev *eventsources.EventState) (eventsources.SpanState, error)
func (PREvent) Timings ¶ added in v0.3.0
func (pr PREvent) Timings() (eventsources.EventTimings, error)
Click to show internal directories.
Click to hide internal directories.