Documentation ¶
Overview ¶
Nging is a toolbox for webmasters Copyright (C) 2018-present Wenhui Shen <swh@admpub.com>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Index ¶
- Variables
- type AccessLog
- type AccessLogLite
- type Vhost
- type VhostAndGroup
- type VhostGroup
- type VhostServer
- func (f *VhostServer) Add() (interface{}, error)
- func (f *VhostServer) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (f *VhostServer) Edit(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (f *VhostServer) Exists(ident string, exclude ...uint) (bool, error)
- func (f *VhostServer) SetConfigFileUpdated(ts uint) error
Constants ¶
This section is empty.
Variables ¶
var CaddyLogRegexpList = sync.Map{}
Functions ¶
This section is empty.
Types ¶
type AccessLog ¶
type AccessLog struct {
*dbschema.NgingAccessLog
}
func NewAccessLog ¶
func (*AccessLog) ToLite ¶
func (m *AccessLog) ToLite() *AccessLogLite
type AccessLogLite ¶
type Vhost ¶
type Vhost struct {
*dbschema.NgingVhost
}
func (*Vhost) RemoveCachedCert ¶
func (m *Vhost) RemoveCachedCert()
type VhostAndGroup ¶
type VhostAndGroup struct { *dbschema.NgingVhost Group *dbschema.NgingVhostGroup `db:"-,relation=id:group_id|gtZero"` ServerName null.String `db:"serverName" json:",omitempty" xml:",omitempty"` ServerEngine null.String `db:"serverEngine" json:",omitempty" xml:",omitempty"` }
type VhostGroup ¶ added in v1.4.7
type VhostGroup struct {
*dbschema.NgingVhostGroup
}
func NewVhostGroup ¶ added in v1.4.7
func NewVhostGroup(ctx echo.Context) *VhostGroup
type VhostServer ¶ added in v1.4.7
type VhostServer struct {
*dbschema.NgingVhostServer
}
func NewVhostServer ¶ added in v1.4.7
func NewVhostServer(ctx echo.Context) *VhostServer
func (*VhostServer) Add ¶ added in v1.4.7
func (f *VhostServer) Add() (interface{}, error)
func (*VhostServer) Exists ¶ added in v1.4.7
func (f *VhostServer) Exists(ident string, exclude ...uint) (bool, error)
func (*VhostServer) SetConfigFileUpdated ¶ added in v1.4.7
func (f *VhostServer) SetConfigFileUpdated(ts uint) error