http

command
v1.999.210 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 8 Imported by: 0

README

HTTP and Ergo framework

This is a simple application to demonstrate how you can combine stateless (HTTP) and stateful (actors) using Ergo Framework.

  • app.go - declares Ergo application and controls handler_sup supervisor
  • handler_sup.go - declares SimpleOneForOne supervisor (dynamic pool of workers). Every HTTP-request calls supervisor to start a new child process to handle this request
  • handler.go - declares GenServer process to handle HTTP-requests.

You may also want to use another way to create a worker pool with a fixed number of worker-processes (use OneForOne for that)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL