Zenler Player
Your course is loading. Hang tight.
Working with WebSockets in Go (Golang)
Back to curriculum
0% Complete
0% Complete
Introduction
Installing Go
Installing an IDE
What are we going to build?
Setting up a simple application
Creating a handler to "upgrade" a connection to websockets
Connecting to the websocket endpoint
Adding additional socket event handlers
Improving our WS endpoint, and setting up go routines
Listing all users
Fixing a problem with disappearing users
One minor fix
Sending messages
Cleaning things up
What if the server goes away? Reconnecting painlessly
Adding server status indicator
What are we going to build?
Install Postgres and a Postgres Client
Installing the starter project's source code
Fixing a typo in the config.yml
Connecting to Pusher
Pushing an event to the client
Setting up some database tables
Setting up models
Creating forms for our hosts
Adding form validation, and setting up a handler for posting data
Passing data to our host form
Inserting a host into the database
Getting and updating a host
Modifying the post handler for hosts to update
Getting all hosts and displaying on page
Adding services to a host 1
Adding services to a host 2
Adding services to a host 3
Adding services to a host 4
Database functions to add and remove a service from host
Listing host services in a more intelligent way
Listing all services on overview page
Showing service status counts on overview page
List all services by status
Updates for Go 1.16
Adding service status to the host page
Making things a bit more visually appealing
Manually Testing a host service 1
Manually Testing a host service 2
Manually Testing a host service 3
Manually Testing a host service 4
Manually Testing a host service 5
Setting up a schedule to monitor services
An Aside: Updating the chi router
Monitoring part 2
Monitoring part 3
Monitoring part 4
Monitoring part 5
Monitoring part 6
Monitoring part 7
Monitoring part 8
Pushing monitoring start/stop events to client
Setting up a local server to monitor
Running service checks
Pushing events on host service status change
Updating service status count in real time
Cleaning up our code
Updating tables on the host page when status changes
Exercise: Update Overview sub-pages
Solution to exercise
Displaying the monitoring schedule
Updating the schedule page in real time
Turning services on and off in real-time
Pushing events after a manual check
Saving and displaying events
Cleaning things up
Sending an event to a private channel
Installing Mailhog on a Mac
Installing Mailhog on Windows
Sending notifications via email
Sending notifications via text (SMS)
Setting up a Twilio Account
Writing the code to send SMS messages
Setting up two new services
Monitoring HTTPS services
Monitoring SSL certificates
Handler Tests
Websocket Tests (the wrong way)
Websocket Tests (the right way)
Introduction
Introduction
Preview
Installing Go
Installing an IDE
Our First Project: Chat
What are we going to build?
Setting up a simple application
Preview
Creating a handler to "upgrade" a connection to websockets
Connecting to the websocket endpoint
Adding additional socket event handlers
Improving our WS endpoint, and setting up go routines
Listing all users
Fixing a problem with disappearing users
One minor fix
Sending messages
Cleaning things up
What if the server goes away? Reconnecting painlessly
Adding server status indicator
Project II Vigilante: a server monitoring system
What are we going to build?
Preview
Install Postgres and a Postgres Client
Installing the starter project's source code
Fixing a typo in the config.yml
Connecting to Pusher
Preview
Pushing an event to the client
Setting up our Application
Setting up some database tables
Setting up models
Creating forms for our hosts
Adding form validation, and setting up a handler for posting data
Passing data to our host form
Inserting a host into the database
Getting and updating a host
Modifying the post handler for hosts to update
Getting all hosts and displaying on page
Adding services to a host 1
Adding services to a host 2
Adding services to a host 3
Adding services to a host 4
Database functions to add and remove a service from host
Listing host services in a more intelligent way
Listing all services on overview page
Showing service status counts on overview page
List all services by status
Updates for Go 1.16
Adding service status to the host page
Making things a bit more visually appealing
Manually Testing a host service 1
Manually Testing a host service 2
Manually Testing a host service 3
Manually Testing a host service 4
Manually Testing a host service 5
Monitoring Services
Setting up a schedule to monitor services
An Aside: Updating the chi router
Monitoring part 2
Monitoring part 3
Monitoring part 4
Monitoring part 5
Monitoring part 6
Monitoring part 7
Monitoring part 8
Implementing WebSockets on Vigilante
Pushing monitoring start/stop events to client
Setting up a local server to monitor
Running service checks
Pushing events on host service status change
Updating service status count in real time
Preview
Cleaning up our code
Updating tables on the host page when status changes
Exercise: Update Overview sub-pages
Solution to exercise
Displaying the monitoring schedule
Updating the schedule page in real time
Turning services on and off in real-time
Pushing events after a manual check
Saving and displaying events
Cleaning things up
Sending an event to a private channel
Installing Mailhog on a Mac
Installing Mailhog on Windows
Sending notifications via email
Sending notifications via text (SMS)
Setting up a Twilio Account
Writing the code to send SMS messages
Monitoring Additional Services
Setting up two new services
Monitoring HTTPS services
Monitoring SSL certificates
Writing Tests
Handler Tests
Websocket Tests (the wrong way)
Websocket Tests (the right way)
×
This is an unpublished lesson. This lesson will not be shown for students unless you set it as Public.
Back to Dashboard
No contents are available in this lesson!
No lessons available !
Back to Dashboard
Lesson contents locked
Enroll to unlock this lesson.
Enroll to unlock
Next Lesson