http

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server represents an HTTP server.

func NewServer

func NewServer(addr string, appInstance *app.App) *Server

NewServer creates a new HTTP server.

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Shutdown gracefully shuts down the server.

func (*Server) Start

func (s *Server) Start() error

Start starts the HTTP server.

type WebhookPayload

type WebhookPayload struct {
	ObjectKind string `json:"object_kind"`
	Project    struct {
		ID int `json:"id"`
	} `json:"project"`
	ObjectAttributes struct {
		ID             int    `json:"iid"`
		State          string `json:"state"`
		Title          string `json:"title"`
		Description    string `json:"description"`
		WorkInProgress bool   `json:"work_in_progress"`
		AssigneeID     int    `json:"assignee_id"`
		AuthorID       int    `json:"author_id"`
	} `json:"object_attributes"`
}

WebhookPayload represents the GitLab webhook payload.

Jump to

Keyboard shortcuts

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