Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCloudEvent ¶
func CreateCloudEvent(e *CloudEventInput) cloudevents.Event
Types ¶
type CloudEventInput ¶
type EventStream ¶
type EventStream struct {
nats.JetStreamContext
}
func (*EventStream) GetAllNewsEvents ¶
func (es *EventStream) GetAllNewsEvents(subject string) []*nats.Msg
func (*EventStream) GetLastEvent ¶
func (es *EventStream) GetLastEvent(subject string) *nats.Msg
func (*EventStream) PublishCloudEvent ¶
func (es *EventStream) PublishCloudEvent(input *CloudEventInput)
type StreamServer ¶
func Setup ¶
func Setup() *StreamServer
func (*StreamServer) Connect ¶
func (stream *StreamServer) Connect(name string) (*nats.Conn, *EventStream)
Click to show internal directories.
Click to hide internal directories.