Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyStoreName = errors.New("Sorry, you must provide a valid store name") ErrInvalidURL = errors.New("Sorry, you must provide a valid store URL") ErrInvalidTlsConfiguration = errors.New("Sorry, you have provided an invalid tls configuration") ErrCloseConn = errors.New("connection closed") )
Functions ¶
func GenerateRandomString ¶
func GenerateRandomString() string
Types ¶
type EventHandler ¶
type EventHandler func() error
func (EventHandler) Run ¶
func (f EventHandler) Run()
type EventStore ¶
type EventStore interface { Publish(topic string, message []byte) error Subscribe(topic string, handler SubscriptionHandler, opts ...*options.SubscriptionOptions) error GetServiceName() string Run(ctx context.Context, handlers ...EventHandler) }
type ReplyHandler ¶
type SubscriptionHandler ¶
type SubscriptionHandler func(event Event)
Click to show internal directories.
Click to hide internal directories.