eventv1sdk

package
v0.0.0-...-fd43388 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMissingTopic is returned by NewPubsubEventServiceClient when the topic argument is not provided.
	ErrMissingTopic = fmt.Errorf("no topic")
	// ErrMissingProject is returned by NewPubsubEventServiceClient when the project argument is not provided.
	ErrMissingProject = fmt.Errorf("no project")
)

Functions

func NewEventServiceClient

func NewEventServiceClient(uri string, options ...connect.ClientOption) eventv1.EventServiceClient

NewEventServiceClient creates a new cloud.event.v1.EventServiceClient client.

func NewPubsubEventServiceClient

func NewPubsubEventServiceClient(ctx context.Context, config *PubsubEventServiceClientConfig) (eventv1.EventServiceClient, error)

NewPubsubEventServiceClient creates a new cloud.event.v1.EventServiceClient client.

Types

type EventPubsubService

type EventPubsubService struct {
	// EventService contains an instance of cloud.event.v1.EventService service.
	EventService eventv1.EventService
}

EventPubsubService is an implementation of the google.pubsub.v1.EventPubsubService service.

func (*EventPubsubService) PushPubsubMessage

PushPubsubMessage implements google.pubsub.v1.PubsubService.

type EventService

type EventService struct {
	// EventService contains an instance of cloud.event.v1.EventHandler handler.
	EventHandler eventv1.EventHandler
}

EventService represents a handler of cloud.event.v1.EventService service.

func (*EventService) PushEvent

PushEvent implements eventv1.EventService.

type EventServiceClient

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

EventServiceClient is a client for the cloud.event.v1.EventService service.

func (*EventServiceClient) PushEvent

PushEventEvent implements cloud.event.v1.EventServiceClient.

type EventServiceHandler

type EventServiceHandler struct {
	// EventService contains an instance of cloud.event.v1.EventService service.
	EventService eventv1.EventService
}

EventServiceHandler represents an instance of cloud.event.v1.EventServiceHandler handler.

func (*EventServiceHandler) Mount

func (x *EventServiceHandler) Mount(r chi.Router)

Mount mounts the controller to a given router.

func (*EventServiceHandler) PushEvent

PushEvent pushes a given event to connect.runtime.v1.EventService service.

type PubsubEventServiceClient

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

EventServiceConn is a client for the cloud.event.v1.EventService service.

func (*PubsubEventServiceClient) PushEvent

PushEvent pushes a given event to cloud.event.v1.EventService service.

type PubsubEventServiceClientConfig

type PubsubEventServiceClientConfig struct {
	// Project is the Google Cloud Project
	Project string
	// Topic is the Google Pub/Sub Topic
	Topic string
	// Options contains the client Options
	Options []option.ClientOption
}

PubsubEventServiceClientConfig represents a configuration for the cloud.event.v1.PubsubServiceClient client.

Jump to

Keyboard shortcuts

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