Documentation
¶
Index ¶
- type Blue
- type Colors
- type Config
- type Green
- type Magenta
- type Red
- type Resources
- type Server
- type Settings
- func (s Settings) Create(path string, name string) *os.File
- func (s Settings) Fatal(err error, msg ...interface{})
- func (s *Settings) Flimit()
- func (s *Settings) Read(out interface{}) error
- func (s *Settings) Record(out interface{}) error
- func (s Settings) Stream(file string) ([]byte, error)
- func (s Settings) Validate(err error) error
- func (s Settings) Wdir() string
- func (s Settings) Write(name string, data []byte) error
- type Yellow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Flimit uint64 `yaml:"flimit" json:"flimit"`
}
Config defines structural options
type Resources ¶
type Resources struct { Config string `yaml:"-" json:"-"` Streams string `yaml:"streams" json:"output"` Logs string `yaml:"logs" json:"log"` Errors string `yaml:"errors" json:"error"` }
Resources defines the files generated by realize
type Server ¶
type Server struct { Enabled bool `yaml:"enable" json:"enable"` Open bool `yaml:"open" json:"open"` Host string `yaml:"host" json:"host"` Port int `yaml:"port" json:"port"` }
Server settings, used for the web panel
type Settings ¶
type Settings struct { Colors `yaml:"-"` Resources `yaml:"resources" json:"resources"` Server `yaml:"server" json:"server"` Config `yaml:"config" json:"config"` }
Settings defines a group of general settings
func (*Settings) Flimit ¶
func (s *Settings) Flimit()
Flimit defines the max number of watched files
Click to show internal directories.
Click to hide internal directories.