Documentation ¶
Index ¶
- Variables
- func FreeTCPPort() net.Listener
- type AdminPathItem
- type EmbedInterface
- type PageFunc
- type PathItem
- 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) GetPath(path string) *PathItem
- func (d *SetupData) GetSocket(command string) *SocketItem
- func (d *SetupData) Name() string
- 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
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func FreeTCPPort ¶
Types ¶
type AdminPathItem ¶
type EmbedInterface ¶
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 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) 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 }
Click to show internal directories.
Click to hide internal directories.