aboutsummaryrefslogtreecommitdiff
path: root/modules/grils
diff options
context:
space:
mode:
authorjan <jan@ruken.pw>2015-12-21 22:29:10 (UTC)
committerjan <jan@ruken.pw>2015-12-21 22:29:10 (UTC)
commit4254929eea29a42896fd57185d6f52fdc3efdca4 (patch)
tree9e8dc1f456ef20c4308d193be5db4114e976577a /modules/grils
parentc3e905c2698f6eb44e291eeb6b180b13755b7705 (diff)
dashboard. FUCKING DASHBOARD!
Diffstat (limited to 'modules/grils')
-rw-r--r--modules/grils/grils.go33
1 files changed, 33 insertions, 0 deletions
diff --git a/modules/grils/grils.go b/modules/grils/grils.go
new file mode 100644
index 0000000..6ce7c5e
--- /dev/null
+++ b/modules/grils/grils.go
@@ -0,0 +1,33 @@
1package grils
2
3import (
4 "fagott.pw/charakterin"
5 "fagott.pw/grilist/grilist"
6)
7
8type GrilsModule struct {
9 g *grilist.Grilist
10 Test []int
11}
12
13func (m *GrilsModule) Name() string {
14 return "Grils"
15}
16
17func (m *GrilsModule) Init(g *grilist.Grilist) {
18 m.g = g
19 m.Test = append(m.Test, len(m.Test) + 1)
20}
21
22func (m *GrilsModule) Interface() interface{} {
23 m.Test = append(m.Test, len(m.Test) + 1)
24 return m
25}
26
27func (m *GrilsModule) ProvideDashboardData(user *charakterin.User) grilist.DashboardCategory {
28 return grilist.DashboardCategory{}
29}
30
31func New() *GrilsModule {
32 return &GrilsModule{}
33}