Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IEvent ¶
type IEvent interface { Store( domain, model, eventType, subject, eventSource string, f endpoint.Endpoint, metaBuilder MetaBuilder, ) endpoint.Endpoint Subscribe() *stan.Subscription }
IEvent ...
type MetaBuilder ¶
type MetaBuilder func(data interface{}) interface{}
MetaBuilder wraping and building meta data before send it to nats
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
Publisher wraps a URL and provides a method that implements endpoint.Endpoint.
func NewPublisher ¶
NewPublisher to create new Publisher
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
Subscriber wraps subscription to topic a URL and provides a method that implements endpoint.Endpoint.
func NewSubscriber ¶
func NewSubscriber(conn stan.Conn, subject string, group string, durable string, startAt string, logger log.Logger, handler stan.MsgHandler) *Subscriber
NewSubscriber to create new Subscriber
func (*Subscriber) Subscribe ¶
func (s *Subscriber) Subscribe() *stan.Subscription
Subscribe to subscribe topic to nats
Click to show internal directories.
Click to hide internal directories.