Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOtherInstanceDetected = errors.New("another instance is currently running")
ErrOtherInstanceDetected is returned when another instance of the app is detected on startup.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is an instance of the app.
func (*App) DispatchAsync ¶
DispatchAsync dispatches a command to be executed synchronously.
type ListenerFunc ¶
ListenerFunc is a function that returns a net.Listener.
type Params ¶
type Params struct {
ConfigService *config.Service
DockerClient container.DockerClient
ListenerFunc func() (net.Listener, error) // ListenerFunc overrides the configured listen address. May be nil.
ChanSize int
ConfigFilePath string
WaitForClient bool
Logger *slog.Logger
}
Params holds the parameters for running the application.
type Server ¶
type Server struct {
pb.UnimplementedInternalAPIServer
// contains filtered or unexported fields
}
Server is the gRPC server that handles incoming commands and outgoing events.
func (*Server) Communicate ¶
func (s *Server) Communicate(stream pb.InternalAPI_CommunicateServer) error
func (*Server) GetClientCount ¶
GetClientCount returns the number of connected clients.
Click to show internal directories.
Click to hide internal directories.