external

package
v0.0.0-...-44be24a Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const APIName = "gram"

APIName is the name of the API as defined in the design.

View Source
const APIVersion = "0.0.1"

APIVersion is the version of the API as defined in the design.

View Source
const ServiceName = "external"

ServiceName is the name of the service as defined in the design. This is the same value that is set in the endpoint request contexts under the ServiceKey key.

Variables

View Source
var MethodNames = [1]string{"receiveWorkOSWebhook"}

MethodNames lists the service method names as defined in the design. These are the same values that are set in the endpoint request contexts under the MethodKey key.

Functions

func NewReceiveWorkOSWebhookEndpoint

func NewReceiveWorkOSWebhookEndpoint(s Service) goa.Endpoint

NewReceiveWorkOSWebhookEndpoint returns an endpoint function that calls the method "receiveWorkOSWebhook" of service "external".

Types

type Client

type Client struct {
	ReceiveWorkOSWebhookEndpoint goa.Endpoint
}

Client is the "external" service client.

func NewClient

func NewClient(receiveWorkOSWebhook goa.Endpoint) *Client

NewClient initializes a "external" service client given the endpoints.

func (*Client) ReceiveWorkOSWebhook

func (c *Client) ReceiveWorkOSWebhook(ctx context.Context, p *ReceiveWorkOSWebhookPayload, req io.ReadCloser) (err error)

ReceiveWorkOSWebhook calls the "receiveWorkOSWebhook" endpoint of the "external" service.

type Endpoints

type Endpoints struct {
	ReceiveWorkOSWebhook goa.Endpoint
}

Endpoints wraps the "external" service endpoints.

func NewEndpoints

func NewEndpoints(s Service) *Endpoints

NewEndpoints wraps the methods of the "external" service with endpoints.

func (*Endpoints) Use

func (e *Endpoints) Use(m func(goa.Endpoint) goa.Endpoint)

Use applies the given middleware to all the "external" service endpoints.

type ReceiveWorkOSWebhookPayload

type ReceiveWorkOSWebhookPayload struct {
	// WorkOS webhook signature header
	WorkosSignature *string
}

ReceiveWorkOSWebhookPayload is the payload type of the external service receiveWorkOSWebhook method.

type ReceiveWorkOSWebhookRequestData

type ReceiveWorkOSWebhookRequestData struct {
	// Payload is the method payload.
	Payload *ReceiveWorkOSWebhookPayload
	// Body streams the HTTP request body.
	Body io.ReadCloser
}

ReceiveWorkOSWebhookRequestData holds both the payload and the HTTP request body reader of the "receiveWorkOSWebhook" method.

type Service

type Service interface {
	// Receive and enqueue a WorkOS webhook event.
	ReceiveWorkOSWebhook(context.Context, *ReceiveWorkOSWebhookPayload, io.ReadCloser) (err error)
}

Endpoints for external services to interact with gram.

Jump to

Keyboard shortcuts

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