mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 16:13:47 +01:00
31 lines
604 B
Go
31 lines
604 B
Go
package agent
|
|
|
|
import (
|
|
"github.com/michaelquigley/pfxlog"
|
|
"github.com/openziti/zrok/agent/proctree"
|
|
"github.com/openziti/zrok/cmd/zrok/subordinate"
|
|
)
|
|
|
|
type access struct {
|
|
frontendToken string
|
|
token string
|
|
bindAddress string
|
|
autoMode bool
|
|
autoAddress string
|
|
autoStartPort uint16
|
|
autoEndPort uint16
|
|
responseHeaders []string
|
|
|
|
process *proctree.Child
|
|
sub *subordinate.MessageHandler
|
|
|
|
agent *Agent
|
|
}
|
|
|
|
func (a *access) monitor() {
|
|
if err := proctree.WaitChild(a.process); err != nil {
|
|
pfxlog.ChannelLogger(a.token).Error(err)
|
|
}
|
|
a.agent.rmAccess <- a
|
|
}
|