Example #1
0
File: host.go Project: devick/flynn
func NewHost(h utils.HostClient) *Host {
	return &Host{
		ID:      h.ID(),
		Tags:    h.Tags(),
		client:  h,
		healthy: true,
		stop:    make(chan struct{}),
		done:    make(chan struct{}),
	}
}
Example #2
0
func NewHost(h utils.HostClient, l log15.Logger) *Host {
	return &Host{
		ID:      h.ID(),
		Tags:    h.Tags(),
		Healthy: true,
		client:  h,
		stop:    make(chan struct{}),
		done:    make(chan struct{}),
		logger:  l,
	}
}