MCPcopy
hub / github.com/hatchet-dev/hatchet / APIKeyAuth

Struct APIKeyAuth

pkg/v1/features/webhooks.go:44–47  ·  view source on GitHub ↗

Deprecated: APIKeyAuth is part of the old generics-based v1 Go SDK. Use the new Go SDK at github.com/hatchet-dev/hatchet/sdks/go instead. Migration guide: https://docs.hatchet.run/home/migration-guide-go

Source from the content-addressed store, hash-verified

42// Deprecated: APIKeyAuth is part of the old generics-based v1 Go SDK.
43// Use the new Go SDK at github.com/hatchet-dev/hatchet/sdks/go instead. Migration guide: https://docs.hatchet.run/home/migration-guide-go
44type APIKeyAuth struct {
45 HeaderName string
46 APIKey string
47}
48
49func (a APIKeyAuth) toCreateRequest(opts CreateWebhookOpts) (rest.V1CreateWebhookRequest, error) {
50 var req rest.V1CreateWebhookRequest

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected