admin

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 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 ErrorMessage

type ErrorMessage struct {
	Error string `json:"error"`
}

type EventMessage

type EventMessage struct {
	Event string          `json:"event"`
	Data  json.RawMessage `json:"data"`
}

type InstalledPluginDefinition

type InstalledPluginDefinition struct {
	Name         string `json:"name"`
	Version      string `json:"version"`
	Description  string `json:"description"`
	FrontendPath string `json:"frontendPath"`
	BackendPath  string `json:"backendPath"`
	Updatable    bool   `json:"updatable"`
	Enabled      bool   `json:"enabled"`
}

type PadCleanupData

type PadCleanupData = string

type PadCreateData

type PadCreateData struct {
	PadName string `json:"padName"`
}

type PadDBSearch

type PadDBSearch struct {
	LastEdited     int64  `json:"lastEdited"`
	PadName        string `json:"padName"`
	UserCount      int    `json:"userCount"`
	RevisionNumber int    `json:"revisionNumber"`
}

type PadDefinition

type PadDefinition struct {
	Total   int           `json:"total"`
	Results []PadDBSearch `json:"results"`
	// Error is set when the pads could not be loaded.
	Error string `json:"error,omitempty"`
}

type PadDeleteData

type PadDeleteData = string

type PadLoadData

type PadLoadData struct {
	Offset    int    `json:"offset"`
	Limit     int    `json:"limit"`
	Pattern   string `json:"pattern"`
	SortBy    string `json:"sortBy"`
	Ascending bool   `json:"ascending"`
	// Filter narrows the list before it is paged: all (default), empty,
	// active, recent or stale. See AdminMessageHandler.padLoad.
	Filter string `json:"filter,omitempty"`
}

type PluginSearchDefinition

type PluginSearchDefinition struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Downloads   int    `json:"downloads"`
	Official    bool   `json:"official"`
	Time        string `json:"time"`
	Version     string `json:"version"`
}

type SeachchPluginDefinition

type SeachchPluginDefinition struct {
	Query   SearchPluginDefinitionQuery `json:"query"`
	Results []PluginSearchDefinition    `json:"results"`
}

type SearchPluginDefinitionQuery

type SearchPluginDefinitionQuery struct {
	Offset     int    `json:"offset"`
	Limit      int    `json:"limit"`
	SortBy     string `json:"sortBy"`
	SortDir    string `json:"sortDir"`
	SearchTerm string `json:"searchTerm"`
}

type SettingsResultMessage

type SettingsResultMessage struct {
	Results json.RawMessage `json:"results"`
}

type ShoutMessage

type ShoutMessage struct {
	Message   ShoutMessageRequest `json:"message"`
	Timestamp int64               `json:"timestamp"`
}

type ShoutMessageRequest

type ShoutMessageRequest struct {
	Message string `json:"message"`
	Sticky  bool   `json:"sticky"`
}

type ShoutMessageResponse

type ShoutMessageResponse struct {
	Type string `json:"type"`
	Data struct {
		Type    string       `json:"type"`
		Payload ShoutMessage `json:"payload"`
	} `json:"data"`
}

type Stats

type Stats struct {
	// TotalUsers is the connected users of every instance of the cluster.
	TotalUsers int `json:"totalUsers"`
	// Instances counts the instances; 1 without a cluster.
	Instances int `json:"instances"`
}

type SuccessMessage

type SuccessMessage struct {
	Success string `json:"success"`
}

type UpdateCheckResult added in v0.0.5

type UpdateCheckResult struct {
	CurrentVersion  string `json:"currentVersion"`
	LatestVersion   string `json:"latestVersion"`
	UpdateAvailable bool   `json:"updateAvailable"`
}

Jump to

Keyboard shortcuts

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