chipingress

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEvent

func NewEvent(domain, entity string, payload []byte) (ce.Event, error)

Types

type ChipIngressClient

type ChipIngressClient interface {
	Ping(ctx context.Context) (string, error)
	Publish(ctx context.Context, event ce.Event) (*pb.PublishResponse, error)
	PublishBatch(ctx context.Context, events []ce.Event) (*pb.PublishResponse, error)
	Close() error
}

func NewChipIngressClient

func NewChipIngressClient(address string, opts ...Opt) (ChipIngressClient, error)

NewChipIngressClient creates a new client for the Chip Ingress service with optional configuration.

type Opt

type Opt func(*chipIngressClientConfig)

Opt is a function that configures a ChipIngressClient

func WithLogger

func WithLogger(logger *zap.Logger) Opt

WithLogger sets the logger for the ChipIngress service.

func WithTransportCredentials

func WithTransportCredentials(credentials credentials.TransportCredentials) Opt

WithTransportCredentials sets the transport credentials for the ChipIngress service.

Directories

Path Synopsis
pb

Jump to

Keyboard shortcuts

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