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 ¶
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 }
Click to show internal directories.
Click to hide internal directories.