Documentation ¶
Index ¶
Constants ¶
View Source
const ( CD_SUCCESS = "ORCHESTRATOR.CD.TRIGGER" WEBHOOK_EVENT_TOPIC = "ORCHESTRATOR.WEBHOOK_EVENT" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NatsPublishClient ¶
type NatsPublishClient interface {
Publish(req *PublishRequest) (string, error)
}
type NatsPublishClientImpl ¶
type NatsPublishClientImpl struct {
// contains filtered or unexported fields
}
func NewNatsPublishClientImpl ¶
func NewNatsPublishClientImpl(logger *zap.SugaredLogger, pubSubClient *PubSubClient) *NatsPublishClientImpl
func (*NatsPublishClientImpl) Publish ¶
func (impl *NatsPublishClientImpl) Publish(req *PublishRequest) (string, error)
type PubSubClient ¶
type PubSubClient struct { Conn stan.Conn AckDuration int // contains filtered or unexported fields }
func NewPubSubClient ¶
func NewPubSubClient(logger *zap.SugaredLogger) (*PubSubClient, error)
#nosec
type PubSubConfig ¶
type PublishRequest ¶
type PublishRequest struct { Topic string `json:"topic"` Payload json.RawMessage `json:"payload"` }
Click to show internal directories.
Click to hide internal directories.