Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct { Log *log.Logger DB *database.DB Template *template.Template Mailer *mailer.App Field string // Context field for Sessiondata IPField string // `long:"logger_realip_field" default:"real-ip" description:"Context field for Real ip"` }
Service holds service attributes
func New ¶
func New(logger *log.Logger, db *database.DB, field, ipfield string, options ...func(srv *Service) error) (srv *Service, err error)
New - Конструктор сервера API
func (*Service) UserListCount ¶
UserListCount - выборка строк из журнала
type TemplateVars ¶
type TemplateVars struct { User account.Record Scheme, Host string Meta map[string]string Data interface{} }
TemplateVars holds template variables
type UserListArgs ¶
UserListArgs - аргументы метода UserList
type UserSaveArgs ¶
type UserSaveArgs struct { ID int64 Notify, Disabled bool // send email to user Login, Name, Email, Group, Data string }
UserSaveArgs - аргументы метода UserSave
Click to show internal directories.
Click to hide internal directories.