models

package
v0.0.63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockIPAddressParams

type BlockIPAddressParams struct {
	cmr.CommonParams

	// IP address of a client to block.
	UserIPA cm.IPAS `json:"userIPA"`

	// Block time in seconds.
	// This is a period for which the specified IP address will be blocked. If
	// for some reason a record with the specified IP address already exists,
	// this time will be added to an already existing value.
	BlockTimeSec cmb.Count `json:"blockTimeSec"`
}

type BlockIPAddressResult

type BlockIPAddressResult = cmr.CommonResultWithSuccess

type FrontEndData added in v0.0.8

type FrontEndData struct {
	AdminHtmlPage FrontEndFileData
	AdminJs       FrontEndFileData
	ApiJs         FrontEndFileData
	ArgonJs       FrontEndFileData
	ArgonWasm     FrontEndFileData
	BppJs         FrontEndFileData
	CssStyles     FrontEndFileData
	FavIcon       FrontEndFileData
	IndexHtmlPage FrontEndFileData
	LoaderScript  FrontEndFileData
}

FrontEndData is auxiliary data for front end.

type FrontEndFileData added in v0.0.8

type FrontEndFileData struct {
	UrlPath     cm.Path
	FilePath    cm.Path
	ContentType string
	CachedFile  []byte
}

FrontEndFileData is auxiliary data for a front end static file.

func NewFrontEndFileData added in v0.0.8

func NewFrontEndFileData(frontEndPath cm.Path, fileName cm.Path, contentType string, frontendAssetsFolder cm.Path) (fefd FrontEndFileData, err error)

type IsIPAddressBlockedParams

type IsIPAddressBlockedParams struct {
	cmr.CommonParams

	// IP address of a client to check.
	UserIPA cm.IPAS `json:"userIPA"`
}

type IsIPAddressBlockedResult

type IsIPAddressBlockedResult struct {
	cmr.CommonResult

	IsBlocked cmb.Flag `json:"isBlocked"`
}

type PingParams

type PingParams = cmr.PingParams

type PingResult

type PingResult = cmr.PingResult

type Settings added in v0.0.13

type Settings struct {
	Version                   cmb.Count `json:"version"`
	ProductVersion            cmb.Text  `json:"productVersion"`
	SiteName                  cmb.Text  `json:"siteName"`
	SiteDomain                cmb.Text  `json:"siteDomain"`
	CaptchaFolder             cm.Path   `json:"captchaFolder"`
	SessionMaxDuration        cmb.Count `json:"sessionMaxDuration"`
	MessageEditTime           cmb.Count `json:"messageEditTime"`
	PageSize                  cmb.Count `json:"pageSize"`
	ApiFolder                 cm.Path   `json:"apiFolder"`
	PublicSettingsFileName    cm.Path   `json:"publicSettingsFileName"`
	IsFrontEndEnabled         cmb.Flag  `json:"isFrontEndEnabled"`
	FrontEndStaticFilesFolder cm.Path   `json:"frontEndStaticFilesFolder"`
	NotificationCountLimit    cmb.Count `json:"notificationCountLimit"`
}

type ShowDiagnosticDataParams

type ShowDiagnosticDataParams struct{}

type ShowDiagnosticDataResult

type ShowDiagnosticDataResult struct {
	cmr.CommonResult
	cmr.RequestsCount
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL