Documentation ¶
Overview ¶
Package proxy defines logic for calling into the admin API of the proxy
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct {
// contains filtered or unexported fields
}
Admin implements the admin API for a proxy.
func NewAdmin ¶
NewAdmin returns a new Admin implementation.
`client` defines an HTTP client that can be used to issue API calls to the proxy, and `url` is the address of the proxy API.
The provided client should already be authenticated (e.g. already have OAuth credentials attached) prior to being passed to this method.
func (*Admin) IdleBackends ¶
IdleBackends returns the list of all backends that have been idle for longer than the specified duration.
type Backend ¶
type Backend struct { ID string `json:"id,omitempty"` EndUser string `json:"endUser,omitempty"` BackendUser string `json:"backendUser,omitempty"` PathPrefixes []string `json:"pathPrefixes,omitempty"` LastUsed time.Time `json:"lastUsed,omitempty"` }
Backend defines an entry in the proxy for server backends.
Click to show internal directories.
Click to hide internal directories.