server

package
v0.18.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureIndexes added in v0.9.0

func EnsureIndexes(ctx context.Context, db *mongo.Database) error

EnsureIndexes initialise tous les index nécessaires pour les collections MongoDB

func GetDatabaseConnection added in v0.9.0

func GetDatabaseConnection() *mongo.Database

GetDatabaseConnection retourne la connexion à la base de données MongoDB

func RegisterHomerHandler added in v0.17.0

func RegisterHomerHandler(mux *runtime.ServeMux, homerURL string)

RegisterHomerHandler registers the /api/homer-links endpoint on the given mux. No-op if homerURL is empty.

func RegisterLinksHandler added in v0.17.0

func RegisterLinksHandler(mux *runtime.ServeMux)

RegisterLinksHandler registers CRUD endpoints for custom links.

Types

type Catalog added in v0.4.0

type Catalog struct {
	v1alpha1.UnimplementedCatalogServiceServer
	// contains filtered or unexported fields
}

func NewCatalog added in v0.4.0

func NewCatalog() *Catalog

func (*Catalog) CreateUpdateCatalog added in v0.4.0

func (*Catalog) DeleteCatalog added in v0.4.0

func (*Catalog) GetCatalog added in v0.4.0

func (*Catalog) GetVersionCompliance added in v0.12.0

func (*Catalog) ListCatalogs added in v0.4.0

func (*Catalog) UpdateDependencies added in v0.13.0

func (*Catalog) UpdateVersions added in v0.12.0

type Event

type Event struct {
	v1alpha1.UnimplementedEventServiceServer
	// contains filtered or unexported fields
}

func NewEvent

func NewEvent() *Event

func (*Event) AddChangelogEntry added in v0.12.0

func (*Event) AddSlackId added in v0.13.0

func (*Event) CreateEvent

func (*Event) DeleteEvent added in v0.3.0

func (*Event) GetEvent

func (*Event) GetEventChangelog added in v0.12.0

func (*Event) GetEventStats added in v0.15.0

func (*Event) GetEventStatsByMonth added in v0.15.0

func (*Event) ListEvents

func (*Event) SearchEvents

func (*Event) TodayEvents added in v0.5.0

func (*Event) UpdateEvent added in v0.3.0

type HomerConfig added in v0.17.0

type HomerConfig struct {
	Links    []HomerLink         `yaml:"links"`
	Services []HomerServiceGroup `yaml:"services"`
}

HomerConfig is the parsed Homer config.yml structure

type HomerLink struct {
	Name   string `yaml:"name" json:"name"`
	URL    string `yaml:"url" json:"url"`
	Icon   string `yaml:"icon,omitempty" json:"icon,omitempty"`
	Target string `yaml:"target,omitempty" json:"target,omitempty"`
}

HomerLink represents a quick link from Homer's top-level links section

type HomerLinksResponse added in v0.17.0

type HomerLinksResponse struct {
	Links    []HomerLink         `json:"links"`
	Services []HomerServiceGroup `json:"services"`
}

HomerLinksResponse is what we return to the frontend

func FetchHomerLinks(homerURL string) (*HomerLinksResponse, error)

FetchHomerLinks fetches and parses a Homer dashboard config.yml

type HomerServiceGroup added in v0.17.0

type HomerServiceGroup struct {
	Name  string             `yaml:"name" json:"name"`
	Icon  string             `yaml:"icon,omitempty" json:"icon,omitempty"`
	Items []HomerServiceItem `yaml:"items" json:"items"`
}

HomerServiceGroup represents a group of services in Homer

type HomerServiceItem added in v0.17.0

type HomerServiceItem struct {
	Name     string `yaml:"name" json:"name"`
	URL      string `yaml:"url" json:"url"`
	Subtitle string `yaml:"subtitle,omitempty" json:"subtitle,omitempty"`
	Icon     string `yaml:"icon,omitempty" json:"icon,omitempty"`
	Tag      string `yaml:"tag,omitempty" json:"tag,omitempty"`
	Keywords string `yaml:"keywords,omitempty" json:"keywords,omitempty"`
	Target   string `yaml:"target,omitempty" json:"target,omitempty"`
}

HomerServiceItem represents a single item inside a Homer service group

type Lock

type Lock struct {
	v1alpha1.UnimplementedLockServiceServer
	// contains filtered or unexported fields
}

func NewLock

func NewLock() *Lock

func (*Lock) CreateLock

func (*Lock) GetLock

func (*Lock) ListLocks

func (*Lock) UnLock

func (*Lock) UnlockByEventId added in v0.10.0

func (e *Lock) UnlockByEventId(ctx context.Context, eventId string) error

UnlockByEventId libère un lock associé à un event_id

func (*Lock) UpdateLock added in v0.12.0

Jump to

Keyboard shortcuts

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