Documentation ¶ Index ¶ Variables func ShortenId(uuid string) (string, error) type Publisher func New(postgresHost string, postgresPort int, postgresUser string, postgresPw string, ...) (*Publisher, error) func (publisher *Publisher) Publish(envelope model.Envelope, service model.Service) (err error, notifyUsers bool) Constants ¶ This section is empty. Variables ¶ View Source var ConnectionTimeout = 10 * time.Second View Source var SlowProducerTimeout time.Duration = 2 * time.Second Functions ¶ func ShortenId ¶ func ShortenId(uuid string) (string, error) Types ¶ type Publisher ¶ type Publisher struct { // contains filtered or unexported fields } func New ¶ func New(postgresHost string, postgresPort int, postgresUser string, postgresPw string, postgresDb string, debugLog bool, wg *sync.WaitGroup, basectx context.Context) (*Publisher, error) func (*Publisher) Publish ¶ func (publisher *Publisher) Publish(envelope model.Envelope, service model.Service) (err error, notifyUsers bool) Source Files ¶ View all Source files publisher.go shortId.go Click to show internal directories. Click to hide internal directories.