mirror of
https://github.com/openziti/zrok.git
synced 2024-12-24 07:39:08 +01:00
daemon model skeleton (#463)
This commit is contained in:
parent
09e2d2a140
commit
2d33c99902
13
daemon/daemon.go
Normal file
13
daemon/daemon.go
Normal file
@ -0,0 +1,13 @@
|
||||
package daemon
|
||||
|
||||
type Daemon struct {
|
||||
shares map[string]*share
|
||||
accesses map[string]*access
|
||||
}
|
||||
|
||||
func NewDaemon() *Daemon {
|
||||
return &Daemon{
|
||||
shares: make(map[string]*share),
|
||||
accesses: make(map[string]*access),
|
||||
}
|
||||
}
|
27
daemon/model.go
Normal file
27
daemon/model.go
Normal file
@ -0,0 +1,27 @@
|
||||
package daemon
|
||||
|
||||
import (
|
||||
"github.com/openziti/zrok/sdk/golang/sdk"
|
||||
"time"
|
||||
)
|
||||
|
||||
type share struct {
|
||||
token string
|
||||
|
||||
basicAuth []string
|
||||
frontendSelection []string
|
||||
backendMode sdk.BackendMode
|
||||
insecure bool
|
||||
oauthProvider string
|
||||
oauthEmailAddressPatterns []string
|
||||
oauthCheckInterval time.Duration
|
||||
closed bool
|
||||
accessGrants []string
|
||||
}
|
||||
|
||||
type access struct {
|
||||
token string
|
||||
|
||||
bindAddress string
|
||||
responseHeaders []string
|
||||
}
|
Loading…
Reference in New Issue
Block a user