events

package
v0.7.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

README

Events Package

This package defines the data structures for GitHub events used throughout the application.

Purpose

To provide shared struct definitions for events, ensuring consistency across different services (webhook, relay, BigQuery).

Files

  • event.go: Defines the Event struct, which represents the raw event received from GitHub, including delivery ID, signature, timestamp, event type, and the raw JSON payload.
  • enriched_event.go: Defines the EnrichedEvent struct, which extends Event by adding fields for enterprise, organization, and repository IDs and names, extracted by the relay service.

Usage

These structs are used for JSON marshaling/unmarshaling when passing messages via Pub/Sub and writing to BigQuery.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnrichedEvent

type EnrichedEvent struct {
	DeliveryId       string `json:"delivery_id,omitempty"`
	Signature        string `json:"signature,omitempty"`
	Received         string `json:"received,omitempty"`
	Event            string `json:"event,omitempty"`
	Payload          string `json:"payload,omitempty"`
	EnterpriseId     string `json:"enterprise_id,omitempty"`
	EnterpriseName   string `json:"enterprise_name,omitempty"`
	OrganizationId   string `json:"organization_id,omitempty"`
	OrganizationName string `json:"organization_name,omitempty"`
	RepositoryId     string `json:"repository_id,omitempty"`
	RepositoryName   string `json:"repository_name,omitempty"`
}

type Event

type Event struct {
	DeliveryId string `json:"delivery_id,omitempty"`
	Signature  string `json:"signature,omitempty"`
	Received   string `json:"received,omitempty"`
	Event      string `json:"event,omitempty"`
	Payload    string `json:"payload,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL