mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 16:55:37 +02:00
>Adds `maitred` in charge of handling automated game installs, updates,
and even execution.
>Not only that, we have the hosted stuff here
>- [x] AWS Task on ECS GPUs
>- [ ] Add a service to listen for game starts and stops
(docker-compose.yml)
>- [x] Add a queue for requesting a game to start
>- [x] Fix up the play/watch UI
>TODO:
>- Add a README
>- Add an SST docs
Edit:
- This adds a new landing page, updates the homepage etc etc
>I forgot what the rest of the updated stuff are 😅
28 lines
759 B
Go
28 lines
759 B
Go
package party
|
|
|
|
import (
|
|
"github.com/charmbracelet/log"
|
|
)
|
|
|
|
// logger implements the paho.Logger interface
|
|
type logger struct {
|
|
prefix string
|
|
}
|
|
|
|
// Println is the library provided NOOPLogger's
|
|
// implementation of the required interface function()
|
|
func (l logger) Println(v ...interface{}) {
|
|
// fmt.Println(append([]interface{}{l.prefix + ":"}, v...)...)
|
|
log.Info(l.prefix, "info", v)
|
|
}
|
|
|
|
// Printf is the library provided NOOPLogger's
|
|
// implementation of the required interface function(){}
|
|
func (l logger) Printf(format string, v ...interface{}) {
|
|
// if len(format) > 0 && format[len(format)-1] != '\n' {
|
|
// format = format + "\n" // some log calls in paho do not add \n
|
|
// }
|
|
// fmt.Printf(l.prefix+":"+format, v...)
|
|
log.Info(l.prefix, "info", v)
|
|
}
|