More stuff, add stuff, add todos

This commit is contained in:
Melody Becker 2024-09-13 15:02:32 +02:00
parent 28c5f546fe
commit f69480b6b4
12 changed files with 40 additions and 4 deletions

1
Containerfile Normal file
View file

@ -0,0 +1 @@
# TODO: Implement me

View file

@ -0,0 +1,11 @@
<html>
<!--
TODO: Implement me
-->
<!--
Will contain templates for use in the no js frontend version
The no js frontend will be minimal and likely just barely usable, so not ever the default
-->
</html>

View file

@ -1,3 +0,0 @@
<html>
</html>

View file

@ -4,3 +4,5 @@
- Generating html
- mime
- working with mime types
- https://github.com/tursodatabase/go-libsql
- sqlite but probably better (and should also be able to compile to a static binary)

View file

@ -1,3 +1,4 @@
// TODO: Add EUPL banner everywhere
package main
import (
@ -48,6 +49,10 @@ func main() {
log.Fatal().Err(err).Msg("Failed to setup storage")
}
_ = store
// TODO: Set up media server
// TODO: Set up http server
// TODO: Set up plugins
// TODO: Start everything
}
func setLogLevel() {

View file

@ -1 +1,10 @@
package outgoingeventqueue
// TODO: Implement me
/*
Queue for controlled distribution of outgoing events, such as note creations, deletions or updates
Also has to manage the case where an instance can't be reached or where Linstrom has to shut down
In case of a shutdown, it has to store all remaining tasks in the db to try again later after the next boot
Should preferably also be able to tell when a server is just gone and stop bothering about it
*/

View file

@ -42,7 +42,9 @@ func (p *EncoderPool) Encode(raw any) ([]byte, error) {
defer encoder.Unlock()
// Clear the buffer to avoid funky output from previous operations
encoder.Buffer.Reset()
encoder.Encoder.Encode(raw)
if err := encoder.Encoder.Encode(raw); err != nil {
return nil, err
}
data, err := io.ReadAll(encoder.Buffer)
if err != nil {
return nil, err

View file

@ -1 +1,3 @@
package mediaprovider
// TODO: Implement me

View file

@ -1,5 +1,7 @@
package storage
// TODO: More helper stuff
func (s *Storage) NewRemoteUser(fullHandle string) (*Account, error) {
return nil, nil
}

View file

@ -5,4 +5,7 @@ type Role struct {
Name string
// If set, counts as all permissions being set and all restrictions being disabled
FullAdmin bool
// TODO: More control options
// Extend upon whatever Masto, Akkoma and Misskey have
// Lots of details please
}

View file

@ -13,3 +13,5 @@ type UserInfoField struct {
Value string
LastUrlCheckDate *time.Time // Used if the value is an url to somewhere. Empty if value is not an url
}
// TODO: Add functions to store, load, update and delete these