diff options
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/context/environment.go | 2 | ||||
| -rw-r--r-- | internal/models/post.go | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/internal/context/environment.go b/internal/context/environment.go index 7d52978..35cb9d8 100644 --- a/internal/context/environment.go +++ b/internal/context/environment.go @@ -2,6 +2,8 @@ package context type DbCredentials struct { Name string + Host string + Port uint64 Username string Password string } diff --git a/internal/models/post.go b/internal/models/post.go new file mode 100644 index 0000000..d7b006d --- /dev/null +++ b/internal/models/post.go @@ -0,0 +1,10 @@ +package models + +import "html/template" + +type Post struct { + Id int + Name string + Time string + Content template.HTML +} |
