ssystem

package
v4.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBytes added in v4.1.0

func ParseBytes(size string) (int, error)

func ParseTimeDuration added in v4.1.0

func ParseTimeDuration(timeout string) time.Duration

Types

type System

type System struct {
	Env                    string            `json:"env"` // prod/dev/test
	VhostsfileDir          string            `json:"vhostsfileDir"`
	AllowIP                []string          `json:"allowIP"`
	SSLAuto                bool              `json:"sslAuto"`
	SSLEmail               string            `json:"sslEmail"`
	SSLHosts               []string          `json:"sslHosts"`
	SSLCacheDir            string            `json:"sslCacheDir"`
	SSLKeyFile             string            `json:"sslKeyFile"`
	SSLCertFile            string            `json:"sslCertFile"`
	EditableFileExtensions map[string]string `json:"editableFileExtensions"`
	EditableFileMaxSize    string            `json:"editableFileMaxSize"`

	PlayableFileExtensions map[string]string `json:"playableFileExtensions"`
	ErrorPages             map[int]string    `json:"errorPages"`
	CmdTimeout             string            `json:"cmdTimeout"`
	CmdTimeoutDuration     time.Duration     `json:"-"`
	ShowExpirationTime     int64             `json:"showExpirationTime"` //显示过期时间:0为始终显示;大于0为距离剩余到期时间多少秒的时候显示;小于0为不显示
	SessionName            string            `json:"sessionName"`
	SessionEngine          string            `json:"sessionEngine"`
	SessionConfig          echo.H            `json:"sessionConfig"`
	MaxRequestBodySize     string            `json:"maxRequestBodySize"`
	// contains filtered or unexported fields
}

func (*System) Editable

func (sys *System) Editable(fileName string) (string, bool)

func (*System) EditableFileMaxBytes

func (sys *System) EditableFileMaxBytes() int

func (*System) Init added in v4.1.0

func (sys *System) Init()

func (*System) IsEnv

func (sys *System) IsEnv(name string) bool

func (*System) MaxRequestBodySizeBytes added in v4.1.0

func (sys *System) MaxRequestBodySizeBytes() int

func (*System) Playable

func (sys *System) Playable(fileName string) (string, bool)

Jump to

Keyboard shortcuts

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