eventclient

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Payload     map[string]interface{}
	PayloadType string
	ID          string
}

type EventClient

type EventClient interface {
	Publish(opts *PublishOptions) (*PublishResult, error)
}

func NewEventClient

func NewEventClient(conn *grpc.ClientConn) EventClient

func NewWithClient

func NewWithClient(eventClient v1.EventClient, topicClient v1.TopicClient) EventClient

type NitricEventClient

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

func (NitricEventClient) Publish

func (e NitricEventClient) Publish(opts *PublishOptions) (*PublishResult, error)

Publish - publishes the provided event data to the specified topic.

type PublishOptions

type PublishOptions struct {
	Topic string
	Event *Event
}

type PublishResult

type PublishResult struct {
	RequestID string
}

Jump to

Keyboard shortcuts

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