Documentation ¶
Index ¶
- Variables
- type AdminLockUserCreationReq
- type AdminLockUserCreationResp
- type Config
- type CreateUserReq
- type CreateUserResp
- type GroupReq
- type GroupResp
- type ListGroupsReq
- type ListGroupsResp
- type ListUsersReq
- type ListUsersResp
- type RoutesReq
- type RoutesResp
- type Server
- type SetPortReq
- type SetPortResp
- type Settings
- type SettingsReq
- type TemplateNames
- type UserGroupReq
- type UserGroupResp
Constants ¶
This section is empty.
Variables ¶
View Source
var TimeoutDuration = time.Second * 5
Functions ¶
This section is empty.
Types ¶
type AdminLockUserCreationReq ¶
type AdminLockUserCreationReq struct {
AdminLockUserCreation bool
}
type AdminLockUserCreationResp ¶
type AdminLockUserCreationResp struct{}
type Config ¶
type Config struct { SessionStore sessions.Store Templates *template.Template UserStore store.Factory TemplateNames ServiceSocket string core.Config }
Config is used to create a Server. It holds all the configuration values. This follows the builder pattern instead of using a function that would take many arguments.
type CreateUserReq ¶
type CreateUserReq struct {
Name, Password string
}
type CreateUserResp ¶
type CreateUserResp struct {
Error error
}
type ListGroupsReq ¶
type ListGroupsReq struct{}
type ListGroupsResp ¶
type ListGroupsResp []string
type ListUsersReq ¶
type ListUsersReq struct{}
type ListUsersResp ¶
type ListUsersResp []string
type RoutesResp ¶
type RoutesResp string
type Server ¶
type Server struct { Users *lusess.Store Settings Settings Templates *template.Template ServiceSocket string TemplateNames lerr.ErrHandler // contains filtered or unexported fields }
Server runs a webserver.
func (*Server) Run ¶
func (s *Server) Run()
Run the server. If Socket or ServiceSocket is defined, they will be run as well.
func (*Server) RunServiceSocket ¶
type SetPortReq ¶
type SetPortReq struct {
Port string
}
type SetPortResp ¶
type SetPortResp struct{}
type SettingsReq ¶
type SettingsReq struct{}
type TemplateNames ¶
type UserGroupReq ¶
type UserGroupReq struct {
User, Group string
}
type UserGroupResp ¶
type UserGroupResp struct {
Error error
}
Click to show internal directories.
Click to hide internal directories.