Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Fettle struct { Port int `default:"8099"` Address string `default:"0.0.0.0"` } Consul struct { Address string `default:"http://127.0.0.1:8500"` Health struct { Interval string `default:"10s"` Deregister string `default:"10m"` Address string } Interval string `default:"30s"` Tags []string } Service struct { Name string `required:"true"` Address string `required:"true"` } Supervisor []struct { Name string `required:"true"` Command string `required:"true"` } }
Config holds fettle's configuration
type Instance ¶
type Instance struct { ID uuid.UUID Subprocesses []Subprocess SubprocessChannel chan Subprocess Conf *Config }
Instance represents a fettle server
func (*Instance) CreateCheckURL ¶
CreateCheckURL create the health check url from the service id
func (*Instance) Register ¶
func (ins *Instance) Register()
Register registers the service to consul
func (*Instance) RunSubprocess ¶
RunSubprocess runs the give command and prints it's output to the stdout
func (*Instance) ServiceURL ¶
ServiceURL returns the public URL for the servicv
type Subprocess ¶
Click to show internal directories.
Click to hide internal directories.