Documentation ¶
Index ¶
Constants ¶
View Source
const KeySubId = "x-awakari-sub-id"
Variables ¶
View Source
var ErrInternal = errors.New("reader: internal failure")
Functions ¶
func NewPublisherMock ¶
func NewPublisherMock() model.MessageWriter
Types ¶
type NewStreamFunc ¶
type PublisherPool ¶
type PublisherPool interface { Get(ctx context.Context, subId string) (mw model.MessageWriter, err error) Remove(subId string) }
func NewPublisherPool ¶
func NewPublisherPool(newStreamFunc NewStreamFunc, limit uint32) (pool PublisherPool)
type Service ¶
type Service interface {
MessagePublisher(ctx context.Context, subId string) (mw model.MessageWriter, err error)
}
func NewService ¶
func NewService(client ServiceClient, poolCfg config.ReaderPoolConfig) (svc Service)
func NewServiceMock ¶
func NewServiceMock() Service
Click to show internal directories.
Click to hide internal directories.