mirror of
https://github.com/openziti/zrok.git
synced 2024-12-01 20:43:51 +01:00
37 lines
740 B
Go
37 lines
740 B
Go
package agent
|
|
|
|
import (
|
|
"github.com/openziti/zrok/agent/agentGrpc"
|
|
"github.com/openziti/zrok/sdk/golang/sdk"
|
|
"time"
|
|
)
|
|
|
|
type share struct {
|
|
token string
|
|
target string
|
|
|
|
basicAuth []string
|
|
frontendSelection []string
|
|
shareMode sdk.ShareMode
|
|
backendMode sdk.BackendMode
|
|
reserved bool
|
|
insecure bool
|
|
oauthProvider string
|
|
oauthEmailAddressPatterns []string
|
|
oauthCheckInterval time.Duration
|
|
closed bool
|
|
accessGrants []string
|
|
}
|
|
|
|
type access struct {
|
|
token string
|
|
|
|
bindAddress string
|
|
responseHeaders []string
|
|
}
|
|
|
|
type agentGrpcImpl struct {
|
|
agentGrpc.UnimplementedAgentServer
|
|
a *Agent
|
|
}
|