Documentation ¶
Overview ¶
Copyright 2021 Google LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 Google LLC ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func GET(ctx context.Context, output http.ResponseWriter, input *http.Request, ...)
- func HEAD(ctx context.Context, output http.ResponseWriter, input *http.Request)
- func OPTIONS(ctx context.Context, output http.ResponseWriter, input *http.Request)
- func POST(ctx context.Context, output http.ResponseWriter, input *http.Request, ...)
- func Setup() (*token.TokenClient, error)
Constants ¶
This section is empty.
Variables ¶
var LoggingOnly = filter.Pipeline{ filter.LogRequest, }
DEFAULT: A proxy that simply logs requests.
var LowercasingProxy = filter.Pipeline{ filter.ToLower, filter.LogRequest, }
EXAMPLE: Send everything lowercase. Undefined behavior with binaries.
var NoFilters = filter.Pipeline{}
EXAMPLE: No funny stuff.
Functions ¶
func GET ¶
func GET(ctx context.Context, output http.ResponseWriter, input *http.Request, tokenClient *token.TokenClient)
GET will be called in main.go for GET requests
func POST ¶
func POST(ctx context.Context, output http.ResponseWriter, input *http.Request, tokenClient *token.TokenClient)
func Setup ¶
func Setup() (*token.TokenClient, error)
Setup will be called once at the start of the program.
Types ¶
This section is empty.