In a terminal start a server.
$ python -m SimpleHTTPServer 8000In another terminal set up the cgroups freezer.
| package pubsub | |
| import ( | |
| "github.com/garyburd/redigo/redis" | |
| log "github.com/sirupsen/logrus" | |
| ) | |
| // Service service | |
| type Service struct { | |
| pool *redis.Pool |
In a terminal start a server.
$ python -m SimpleHTTPServer 8000In another terminal set up the cgroups freezer.
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)| package main | |
| type KeyPair struct { | |
| Key string | |
| Value []byte | |
| } | |
| type KeyStore interface { | |
| Get(k string) (*KeyPair, error) | |
| } |