Documentation
¶
Index ¶
- Variables
- func FreeTCPPort() net.Listener
- type AdminPathItem
- type EmbedInterface
- type HorizontalAlignType
- type PageFunc
- type PanelFunc
- type PanelItem
- type PanelLayout
- type PathItem
- type RequiredVariable
- type SetupData
- func (d *SetupData) AdminPathsToProtos() []*pb.AdminWebLinkItem
- func (d *SetupData) Filename(extension string) string
- func (d *SetupData) GetAdminPath(path string) *AdminPathItem
- func (d *SetupData) GetPanel(name string) *PanelItem
- func (d *SetupData) GetPath(path string) *PathItem
- func (d *SetupData) GetSocket(command string) *SocketItem
- func (d *SetupData) Name() string
- func (d *SetupData) PanelsToProtos() []*pb.PanelSetup
- func (d *SetupData) PathsToProtos() []*pb.WebLinkItem
- func (d *SetupData) RegisterProto() *pb.RegisterRequest
- func (d *SetupData) SocketsToProtos() []*pb.WebSocketItem
- func (d *SetupData) URL() string
- type SocketFunc
- type SocketItem
- type VerticalAlignType
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func FreeTCPPort ¶
Types ¶
type AdminPathItem ¶
type EmbedInterface ¶
type HorizontalAlignType ¶
type HorizontalAlignType int8
const ( HCenter HorizontalAlignType = iota HLeft HRight )
type PanelFunc ¶
type PanelFunc = func(in *structs.PanelRequest) (*structs.PanelReturn, error)
type PanelItem ¶
type PanelItem struct { Name string Label string Description string Layout PanelLayout AdminOnly bool Permission string AllowedPaths []string RequiredVariables []RequiredVariable HTMLCall PanelFunc SocketCall SocketFunc }
type PanelLayout ¶
type PanelLayout struct { HorizontalAlign HorizontalAlignType VerticalAlign VerticalAlignType Width uint32 Height uint32 ScrollWidth bool ScrollHeight bool TitleBar bool Minimise bool Close bool }
type RequiredVariable ¶
type SetupData ¶
type SetupData struct { ServiceName string ServiceType string Version structs.Version Multi bool SingleRun bool StartActive bool ConfigItems []*pb.ConfigItem RequiredServices []*pb.RequiredService Groups []string Permissions []string VerboseLog bool GRPCSystems func(server *grpc.Server) StaticFS EmbedInterface AdminPaths []*AdminPathItem Paths []*PathItem Sockets []*SocketItem Panels []*PanelItem TaskGrabber func() []*pbw.TaskMessage NotificationGrabber func() []*pbw.NotificationMessage MainSetup func() MainSystem func() MainShutdown func() // contains filtered or unexported fields }
func (*SetupData) AdminPathsToProtos ¶
func (d *SetupData) AdminPathsToProtos() []*pb.AdminWebLinkItem
func (*SetupData) GetAdminPath ¶
func (d *SetupData) GetAdminPath(path string) *AdminPathItem
func (*SetupData) GetSocket ¶
func (d *SetupData) GetSocket(command string) *SocketItem
func (*SetupData) PanelsToProtos ¶
func (d *SetupData) PanelsToProtos() []*pb.PanelSetup
func (*SetupData) PathsToProtos ¶
func (d *SetupData) PathsToProtos() []*pb.WebLinkItem
func (*SetupData) RegisterProto ¶
func (d *SetupData) RegisterProto() *pb.RegisterRequest
func (*SetupData) SocketsToProtos ¶
func (d *SetupData) SocketsToProtos() []*pb.WebSocketItem
type SocketFunc ¶
type SocketFunc = func(in *structs.SocketRequest) (*structs.SocketReturn, error)
type SocketItem ¶
type SocketItem struct { Command string Permission string AdminOnly bool RequiredVariables []string Call SocketFunc }
type VerticalAlignType ¶
type VerticalAlignType int8
const ( VCenter VerticalAlignType = iota VTop VBottom )
Click to show internal directories.
Click to hide internal directories.