Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRouter ¶
func GetRouter(workflowController *WorkflowController) *chi.Mux
func ReturnURLS ¶
func ReturnURLS() urls
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
A single Broker will be created in this program. It is responsible for keeping a list of which clients (browsers) are currently attached and broadcasting events (messages) to those clients.
type WorkflowController ¶
type WorkflowController struct {
// contains filtered or unexported fields
}
func NewWorkflowController ¶
func NewWorkflowController(clientGandalf *goclient.ClientGandalf, b *Broker) *WorkflowController
func (WorkflowController) Index ¶
func (fc WorkflowController) Index(w http.ResponseWriter, r *http.Request)
func (WorkflowController) SendCommand ¶
func (fc WorkflowController) SendCommand(w http.ResponseWriter, r *http.Request)
func (WorkflowController) SendUpdate ¶
func (fc WorkflowController) SendUpdate(w http.ResponseWriter, r *http.Request)
type WorkflowServer ¶
type WorkflowServer struct { Rooturl string Url urls // contains filtered or unexported fields }
func NewWorkflowServer ¶
func NewWorkflowServer(clientGandalf *goclient.ClientGandalf) *WorkflowServer
func (WorkflowServer) Run ¶
func (f WorkflowServer) Run()
Click to show internal directories.
Click to hide internal directories.