Documentation ¶
Index ¶
- type EventListener
- func (el *EventListener) GetEventName() string
- func (el *EventListener) GetEventSourceName() string
- func (el *EventListener) GetEventSourceType() apicommon.EventSourceType
- func (el *EventListener) StartListening(ctx context.Context, dispatch func([]byte) error) error
- func (listener *EventListener) ValidateEventSource(ctx context.Context) error
- type Router
- type TokenAuthTransport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventListener ¶
type EventListener struct { EventSourceName string EventName string GithubEventSource v1alpha1.GithubEventSource Metrics *metrics.Metrics }
EventListener implements Eventing for GitHub event source
func (*EventListener) GetEventName ¶
func (el *EventListener) GetEventName() string
GetEventName returns name of event
func (*EventListener) GetEventSourceName ¶
func (el *EventListener) GetEventSourceName() string
GetEventSourceName returns name of event source
func (*EventListener) GetEventSourceType ¶
func (el *EventListener) GetEventSourceType() apicommon.EventSourceType
GetEventSourceType return type of event server
func (*EventListener) StartListening ¶
StartListening starts an event source
func (*EventListener) ValidateEventSource ¶
func (listener *EventListener) ValidateEventSource(ctx context.Context) error
ValidateEventSource validates a github event source
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router contains information about the route
func (*Router) HandleRoute ¶
func (router *Router) HandleRoute(writer http.ResponseWriter, request *http.Request)
HandleRoute handles incoming requests on the route
func (*Router) PostActivate ¶
PostActivate performs operations once the route is activated and ready to consume requests
func (*Router) PostInactivate ¶
PostInactivate performs operations after the route is inactivated
type TokenAuthTransport ¶
type TokenAuthTransport struct { Token string Transport http.RoundTripper }
func (*TokenAuthTransport) Client ¶
func (t *TokenAuthTransport) Client() *http.Client
Client returns an *http.Client that makes requests that are authenticated using HTTP Basic Authentication.