Documentation ¶
Index ¶
- func ContextWithRequestState(requestState *RequestState, ctx context.Context) context.Context
- func CreateMetrics() (*prometheus.HistogramVec, *prometheus.CounterVec, prometheus.Gauge)
- func CreateSessionManager(sessionLifetime time.Duration, sessionIdleTimeout time.Duration, ...) *scs.SessionManager
- func RunAfter(delay time.Duration, f func()) (doCancel func())
- func Schedule(f func(), delay time.Duration) (doCancel func())
- type RequestState
- type Tracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithRequestState ¶
func ContextWithRequestState(requestState *RequestState, ctx context.Context) context.Context
func CreateMetrics ¶
func CreateMetrics() (*prometheus.HistogramVec, *prometheus.CounterVec, prometheus.Gauge)
func CreateSessionManager ¶
Types ¶
type RequestState ¶
type RequestState struct { EnmasseV1beta1Client v1beta1.EnmasseV1beta1Interface AccessController accesscontroller.AccessController User userapiv1.User UserAccessToken string UseSession bool NewSession bool ImpersonatedUser string }
func GetRequestStateFromContext ¶
func GetRequestStateFromContext(ctx context.Context) *RequestState
type Tracer ¶
type Tracer struct {
http.RoundTripper
}
func (*Tracer) RoundTrip ¶
http://people.redhat.com/jrivera/openshift-docs_preview/openshift-origin/glusterfs-review/go_client/tracing_api_requests_and_responses.html RoundTrip calls the nested RoundTripper while printing each request and response/error to os.Stderr on either side of the nested call. WARNING: this may output sensitive information including bearer tokens.
Click to show internal directories.
Click to hide internal directories.