server

package
v0.0.0-...-0e4f5d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithRequestState

func ContextWithRequestState(requestState *RequestState, ctx context.Context) context.Context

func CreateSessionManager

func CreateSessionManager(sessionLifetime time.Duration, sessionIdleTimeout time.Duration, sessionPresentCallback func(), noSessionsPresentCallback func(), metric prometheus.Gauge) *scs.SessionManager

func RunAfter

func RunAfter(delay time.Duration, f func()) (doCancel func())

func Schedule

func Schedule(f func(), delay time.Duration) (doCancel func())

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

func (t *Tracer) RoundTrip(req *http.Request) (*http.Response, error)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL