api

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package api provides the HTTP API server and dashboard for labelgate.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address     string
	BasePath    string
	Token       string
	Storage     storage.Storage
	Reconciler  *reconciler.Reconciler
	AgentServer *agent.Server
	CredManager *cloudflare.CredentialManager
	Version     string
}

Config holds configuration for the API server.

type Server

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

Server is the HTTP API server.

func NewServer

func NewServer(cfg *Config) *Server

NewServer creates a new API server.

func (*Server) Start

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

Start starts the API server and blocks until the context is cancelled.

Jump to

Keyboard shortcuts

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