handler

package
v0.0.0-...-e248e4d Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const HeaderTaskSignature = "X-Tfc-Task-Signature"
View Source
const TypeTaskResults = "task-results"

TypeTaskResults is the data type used in run task responses.

Variables

This section is empty.

Functions

func VerifyHMAC

func VerifyHMAC(requestBody []byte, requestSignature []byte, key []byte) (bool, error)

Types

type CallbackBuilder

type CallbackBuilder struct {
	// contains filtered or unexported fields
}

func NewCallbackBuilder

func NewCallbackBuilder(status api.TaskStatus) *CallbackBuilder

func (*CallbackBuilder) MarshallJSON

func (cb *CallbackBuilder) MarshallJSON() ([]byte, error)

func (*CallbackBuilder) WithMessage

func (cb *CallbackBuilder) WithMessage(message string) *CallbackBuilder

type Configuration

type Configuration struct {
	// Addr specifies the TCP address for the server to listen on.
	Addr string
	// Path defines a matcher for the route URL path. It accepts a template with zero or more URL variables enclosed by {}.
	// The template must start with a "/".
	Path string
	// HmacKey defines the HMAC Key used for verifying the TFC request.
	HmacKey string
}

Jump to

Keyboard shortcuts

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