Documentation
¶
Index ¶
- func NewChipIngressClient(address string, opts ...Opt) (pb.ChipIngressClient, error)
- func NewEvent(domain, entity string, payload []byte, attributes map[string]any) (ce.Event, error)
- func NewEventWithAttributes(domain, entity string, payload []byte, attributes map[string]any) (*cepb.CloudEvent, error)
- type HeaderProvider
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChipIngressClient ¶
func NewChipIngressClient(address string, opts ...Opt) (pb.ChipIngressClient, error)
NewChipIngressClient creates a new client for the Chip Ingress service with optional configuration.
func NewEventWithAttributes ¶ added in v0.7.1
func NewEventWithAttributes(domain, entity string, payload []byte, attributes map[string]any) (*cepb.CloudEvent, error)
NewEventWithAttributes creates a new CloudEvent with the specified domain, entity, payload, and optional attributes.
Types ¶
type HeaderProvider ¶ added in v0.7.1
HeaderProvider defines an interface for providing headers
type Opt ¶
type Opt func(*chipIngressClientConfig)
Opt defines a function type for configuring the ChipIngressClient.
func WithAuthority ¶ added in v0.7.1
WithAuthority sets the authority for the gRPC connection.
func WithHeaderProvider ¶ added in v0.7.1
func WithHeaderProvider(provider HeaderProvider) Opt
WithHeaderProvider sets a dynamic header provider for requests
func WithInsecureConnection ¶ added in v0.7.1
func WithInsecureConnection() Opt
WithInsecureConnection configures the client to use an insecure connection (no TLS).
func WithTLSAndHTTP2 ¶ added in v0.7.1
Add a new option function for TLS with HTTP/2
func WithTransportCredentials ¶
func WithTransportCredentials(creds credentials.TransportCredentials) Opt
WithTransportCredentials sets the transport credentials for the ChipIngress service.