http

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 13 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateStatusPing

func CreateStatusPing(inChan chan<- *channel.DataChan, resource string)

CreateStatusPing ...

func CreateSubscription

func CreateSubscription(inChan chan<- *channel.DataChan, subscriptionID, resource string)

CreateSubscription ...

func DeleteSubscription

func DeleteSubscription(inChan chan<- *channel.DataChan, resource string)

DeleteSubscription ...

Types

type HTTP

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

HTTP exposes http api methods

func GetHTTPInstance

func GetHTTPInstance(serviceName string, port int, storePath string, dataIn <-chan *channel.DataChan, dataOut chan<- *channel.DataChan,
	closeCh <-chan struct{}, onStatusReceiveOverrideFn func(e cloudevents.Event, dataChan *channel.DataChan) error, processEventFn func(e interface{}) error) (*HTTP, error)

GetHTTPInstance get event instance

func (*HTTP) ClientID

func (h *HTTP) ClientID() uuid.UUID

ClientID return clientID that was set by publisher/subscriber service

func (*HTTP) IsReadyToServe

func (h *HTTP) IsReadyToServe(uri *types.URI) bool

IsReadyToServe ... check if the server is ready

func (*HTTP) RegisterPublishers

func (h *HTTP) RegisterPublishers(publisherURL ...*types.URI)

RegisterPublishers ...

func (*HTTP) SetOnStatusReceiveOverrideFn

func (h *HTTP) SetOnStatusReceiveOverrideFn(fn func(e cloudevents.Event, dataChan *channel.DataChan) error)

SetOnStatusReceiveOverrideFn ...

func (*HTTP) SetProcessEventFn

func (h *HTTP) SetProcessEventFn(fn func(e interface{}) error)

SetProcessEventFn ...

func (*HTTP) Shutdown

func (h *HTTP) Shutdown()

Shutdown ...

func (*HTTP) Start

func (h *HTTP) Start(wg *sync.WaitGroup)

Start start amqp processors

Jump to

Keyboard shortcuts

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