Documentation
¶
Index ¶
Constants ¶
View Source
const ( RoleGuest = 0 RoleUser = 1 RoleAdmin = 1000 )
Guest will be the default role for simplifying the development of the RBAC system
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
ID string `json:"id,omitempty,nonempty" toml:"id"`
UUID string `json:"uuid,omitempty" toml:"uuid"`
Password string `json:"password,omitempty" toml:"password"`
Creation time.Time `json:"creation,omitempty" toml:"creation"`
Role int `json:"role,omitempty" xml:"role,omitempty" toml:"role"`
}
We don't bother with email
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) SetupMiddleware ¶
func (s *Server) SetupMiddleware()
SetupMiddleware configures all middleware
func (*Server) SetupRoutes ¶
func (s *Server) SetupRoutes()
SetupRoutes configures all application routes
Click to show internal directories.
Click to hide internal directories.