mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 00:04:43 +02:00
generalized implementation of public/private share (#34)
This commit is contained in:
20
sdk/model.go
20
sdk/model.go
@ -19,5 +19,25 @@ const (
|
||||
type ShareRequest struct {
|
||||
BackendMode BackendMode
|
||||
ShareMode ShareMode
|
||||
Frontends []string
|
||||
Auth []string
|
||||
Target string
|
||||
}
|
||||
|
||||
type Metrics struct {
|
||||
Namespace string
|
||||
Sessions map[string]SessionMetrics
|
||||
}
|
||||
|
||||
type SessionMetrics struct {
|
||||
BytesRead int64
|
||||
BytesWritten int64
|
||||
LastUpdate int64
|
||||
}
|
||||
|
||||
type AuthScheme string
|
||||
|
||||
const (
|
||||
None AuthScheme = "none"
|
||||
Basic AuthScheme = "basic"
|
||||
)
|
||||
|
Reference in New Issue
Block a user