Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChipIngress_StreamEventsClient ¶
type ChipIngress_StreamEventsClient = pb.ChipIngress_StreamEventsClient
type Client ¶
type Client interface {
pb.ChipIngressClient
Close() error
}
type CloudEvent ¶
Cloudevents types
func NewEvent ¶
NewEvent creates a new CloudEvent with the specified domain, entity, payload, and optional attributes.
func ProtoToEvent ¶
func ProtoToEvent(eventPb *CloudEventPb) (CloudEvent, error)
type CloudEventBatch ¶
type CloudEventBatch = pb.CloudEventBatch
Message types
func EventsToBatch ¶
func EventsToBatch(events []CloudEvent) (*CloudEventBatch, error)
type CloudEventPb ¶
type CloudEventPb = cepb.CloudEvent
func EventToProto ¶
func EventToProto(event CloudEvent) (*CloudEventPb, error)
type EmptyRequest ¶
type EmptyRequest = pb.EmptyRequest
type HeaderProvider ¶
HeaderProvider defines an interface for providing headers
type Opt ¶
type Opt func(*clientConfig)
Opt defines a function type for configuring the ChipIngressClient.
func WithBasicAuth ¶
WithBasicAuth sets the basic-auth credentials for the ChipIngress service. Default is to require TLS for security.
func WithHeaderProvider ¶
func WithHeaderProvider(provider HeaderProvider) Opt
WithHeaderProvider sets a dynamic header provider for requests NOTE: for CSA-Key based authentication, use WithTokenAuth instead.
func WithInsecureConnection ¶
func WithInsecureConnection() Opt
WithInsecureConnection configures the client to use an insecure connection (no TLS).
func WithTokenAuth ¶
func WithTokenAuth(tokenProvider HeaderProvider) Opt
WithTokenAuth sets the token-based credentials for the ChipIngress service. Use for CSA-Key based authentication.
func WithTransportCredentials ¶
func WithTransportCredentials(creds credentials.TransportCredentials) Opt
WithTransportCredentials sets the transport custom credentials for the ChipIngress service.
type PingResponse ¶
type PingResponse = pb.PingResponse
type PublishResponse ¶
type PublishResponse = pb.PublishResponse
type PublishResult ¶
type PublishResult = pb.PublishResult
type StreamEventsRequest ¶
type StreamEventsRequest = pb.StreamEventsRequest
type StreamEventsResponse ¶
type StreamEventsResponse = pb.StreamEventsResponse