Documentation
¶
Index ¶
Constants ¶
View Source
const ( HeaderTaskName = "X-Cloudtasks-Taskname" HeaderQueueName = "X-Cloudtasks-Queuename" HeaderTaskRetryCount = "X-Cloudtasks-Taskretrycount" HeaderTaskExecCount = "X-Cloudtasks-Taskexecutioncount" HeaderTaskETA = "X-Cloudtasks-Tasketa" )
Cloud Tasks HTTP target headers (canonical MIME form used by net/http.Header.Get).
View Source
const ( ProtocolAuto = "auto" ProtocolRaw = "raw" ProtocolCloudEvents = "cloudevents" ProtocolCloudTasks = "cloudtasks" )
Protocol preference from subscriber URL query protocol=.
Variables ¶
This section is empty.
Functions ¶
func IsClaimKey ¶
IsClaimKey reports whether key is claim-shaped authentication metadata.
Types ¶
type CloudEvents ¶
type CloudEvents struct{}
CloudEvents decodes CloudEvents 1.0 binary and structured content modes.
func (CloudEvents) Name ¶
func (CloudEvents) Name() string
type CloudTasks ¶
type CloudTasks struct{}
CloudTasks matches Cloud Tasks push requests and maps headers into metadata.
func (CloudTasks) Name ¶
func (CloudTasks) Name() string
type Codec ¶
type Codec interface {
Name() string
Match(r *http.Request) bool
Decode(r *http.Request) (*Inbound, error)
}
Codec decodes an HTTP push request into body + metadata.
func DefaultCodecs ¶
func DefaultCodecs() []Codec
DefaultCodecs returns the ordered codec list for protocol=auto.
Click to show internal directories.
Click to hide internal directories.