# Functions
CurrentBearerTokenScope compares given scopes and clientIDs with those in c.
CurrentBearerTokenUser returns a user associated with the request which is expected to have a Bearer token.
CurrentUser checks for both JWT and Bearer tokens.
HandleHTTP calls DefaultServer's HandleHTTP method using default serve mux.
HTTPRequest returns the request associated with a context.
Must is a helper that wraps a call to a function returning (*Template, error) and panics if the error is non-nil.
NewAPIError Create a new APIError for custom error.
NewBadRequestError creates a new APIError with Bad Request status (400).
NewConflictError creates a new APIError with Conflict status (409).
NewContext returns a new context for an in-flight API (HTTP) request.
NewForbiddenError creates a new APIError with Forbidden status (403).
NewInternalServerError creates a new APIError with Internal Server Error status (500).
NewNotFoundError creates a new APIError with Not Found status (404).
NewServer returns a new RPC server.
NewUnauthorizedError creates a new APIError with Unauthorized status (401).
RegisterService registers a service using DefaultServer.
RegisterServiceWithDefaults registers a service using DefaultServer.
# Constants
APIExplorerClientID is the client ID of API explorer.
DefaultCertURI is Google's public URL which points to JWT certs.
EmailScope is Google's OAuth 2.0 email scope.
TokeninfoURL is Google's OAuth 2.0 access token verification URL.
# Variables
AuthenticatorFactory creates a new Authenticator.
BadRequestError is default error with http.StatusBadRequest (400).
ConflictError is default error with http.StatusConflict (409).
DefaultServer is the default RPC server, so you don't have to explicitly create one.
ForbiddenError is default error with http.StatusForbidden (403).
InternalServerError is default error with http.StatusInternalServerError (500).
NotFoundError is default error with http.StatusNotFound (404).
SchemaNameForType returns a name for the given schema type, used to reference schema definitions in the API descriptor.
UnauthorizedError is default error with http.StatusUnauthorized (401).
# Structs
APIConfigsList is the response scheme for BackendService.getApiConfigs method.
APIDescriptor is the top-level struct for a single Endpoints API config.
APIEnumParamSpec is the enum type of request/response param spec.
APIError is a user custom API's error.
APIMethod is an item of $METHOD_MAP.
APIMethodDescriptor item of Descriptor.Methods map ($SCHEMA_DESCRIPTOR).
APIReqRespDescriptor indicates type of request data expected to be found in a request or a response.
APIRequestParamSpec is a description of all the expected request parameters.
APISchemaDescriptor item of Descriptor.Schemas map ($SCHEMA_DESCRIPTOR).
APISchemaProperty is an item of APISchemaDescriptor.Properties map.
APISchemaRef is used when referencing a schema from a method or array elem.
BackendService is an API config enumeration service used by Google API Server.
GetAPIConfigsRequest is the request scheme for fetching API configs.
LogMessage is a single log message within a LogMessagesRequest.
LogMessagesRequest is the request body for log messages sent by Swarm FE.
MethodInfo is what's used to construct Endpoints API config.
RPCService represents a service registered with a specific Server.
Server serves registered RPC services using registered codecs.
ServiceInfo is used to construct Endpoints API config.
ServiceMethod is what represents a method of a registered service.
VoidMessage represents the fact that a service method does not expect anything in a request (or a response).
# Interfaces
An Authenticator can identify the current user.