protocol

package
v0.12.14 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMsg

type AuthMsg struct {
	MsgType  string `json:"MsgType"`
	Token    string `json:"Token"`
	ClientID string `json:"ClientID"`
}

AuthMsg sent by client on connect.

type AuthResult

type AuthResult struct {
	MsgType string `json:"MsgType"`
	Reason  string `json:"Reason,omitempty"`
}

AuthResult sent by server after auth.

type Envelope

type Envelope struct {
	MsgType string          `json:"MsgType"`
	Data    json.RawMessage `json:"Data,omitempty"`
}

Envelope wraps all WebSocket messages with a MsgType for routing.

type EventMsg

type EventMsg struct {
	MsgType        string            `json:"MsgType"`
	DeliveryID     string            `json:"DeliveryID"`
	GitHubEvent    string            `json:"GitHubEvent"`
	Provider       string            `json:"Provider,omitempty"`
	StableEvent    string            `json:"StableEvent,omitempty"`
	ExternalEvent  string            `json:"ExternalEvent,omitempty"`
	ExternalAction string            `json:"ExternalAction,omitempty"`
	Repo           string            `json:"Repo"`
	Ref            string            `json:"Ref,omitempty"`
	Action         string            `json:"Action,omitempty"`
	Sender         string            `json:"Sender,omitempty"`
	Message        string            `json:"Message,omitempty"`
	CloneURL       string            `json:"CloneURL"`
	PRNumber       int               `json:"PRNumber,omitempty"`
	Headers        map[string]string `json:"Headers,omitempty"`
	Metadata       map[string]string `json:"Metadata,omitempty"`
	Payload        json.RawMessage   `json:"Payload"`
}

EventMsg sent by server to client when a webhook arrives.

type StatusMsg

type StatusMsg struct {
	MsgType     string `json:"MsgType"`
	DeliveryID  string `json:"DeliveryID"`
	State       string `json:"State"`
	Description string `json:"Description,omitempty"`
}

StatusMsg sent by client after processing an event.

type SubscribeMsg

type SubscribeMsg struct {
	MsgType  string   `json:"MsgType"`
	Patterns []string `json:"Patterns"`
}

SubscribeMsg sent by client after auth.

Jump to

Keyboard shortcuts

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