Documentation
¶
Index ¶
- type Config
- type HttpServerUnit
- func (u *HttpServerUnit) UnitAvailability() app.UnitAvailability
- func (u *HttpServerUnit) UnitPause() app.UnitOperationResult
- func (u *HttpServerUnit) UnitQuit() app.UnitOperationResult
- func (u *HttpServerUnit) UnitRunner() *app.UnitLifecycleRunner
- func (u *HttpServerUnit) UnitStart() app.UnitOperationResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Host string `yaml:"host" json:"host" toml:"host"`
Port string `yaml:"port" json:"port" toml:"port"`
ShutdownPeriodMillis int64 `yaml:"shutdown_period_millis" json:"shutdown_period_millis" toml:"shutdown_period_millis"`
}
Config defines the configuration for the HttpServerUnit.
func ParseYamlConfig ¶
func (*Config) ValidateConfig ¶
type HttpServerUnit ¶
type HttpServerUnit struct {
// contains filtered or unexported fields
}
HttpServerUnit implements app.IUnit
func AddNew ¶
AddNew creates HttpServerUnit with specified configuration and adds it to the igulib/app.M
func (*HttpServerUnit) UnitAvailability ¶
func (u *HttpServerUnit) UnitAvailability() app.UnitAvailability
UnitAvailability implements app.IUnit.
func (*HttpServerUnit) UnitPause ¶
func (u *HttpServerUnit) UnitPause() app.UnitOperationResult
UnitPause implements app.IUnit.
func (*HttpServerUnit) UnitQuit ¶
func (u *HttpServerUnit) UnitQuit() app.UnitOperationResult
UnitQuit implements app.IUnit.
func (*HttpServerUnit) UnitRunner ¶
func (u *HttpServerUnit) UnitRunner() *app.UnitLifecycleRunner
UnitRunner implements app.IUnit.
func (*HttpServerUnit) UnitStart ¶
func (u *HttpServerUnit) UnitStart() app.UnitOperationResult
UnitStart implements app.IUnit.
Click to show internal directories.
Click to hide internal directories.