Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
Broker is the message broker that handles broadcasting the messages to each client.
func (*Broker) RemoveClient ¶
RemoveClient removes a client from receiving messages.
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
Event represents a server sent event(SSE)
type JobsStatus ¶
JobsStatus is the data structure to hold the data that will be returned for all the jobs
func (JobsStatus) ToEvent ¶
func (js JobsStatus) ToEvent() Event
ToEvent creates a (Server Sent) Event for the JobsStatus
type PodsStatus ¶
PodsStatus is the data structure to hold the data that will be returned for all the pods
func (PodsStatus) ToEvent ¶
func (ps PodsStatus) ToEvent() Event
ToEvent creates a (Server Sent) Event for the PodsStatus
type ServicesStatus ¶
type ServicesStatus struct { Context string `json:"context"` Services []v1.Service `json:"services"` }
ServicesStatus is the data structure to hold the data that will be returned for all the services
func (ServicesStatus) ToEvent ¶
func (ss ServicesStatus) ToEvent() Event
ToEvent creates a (Server Sent) Event for the ServicesStatus
type StatusServer ¶
type StatusServer struct {
// contains filtered or unexported fields
}
StatusServer will be responsible for serving our very basic index page, its assets, and the broadcasting the server sent events.
func NewStatusServer ¶
func NewStatusServer(port int) *StatusServer
NewStatusServer creates and initializes a new StatusServer