Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NoopTransformer ¶
type NoopTransformer struct{}
NoopTransformer is the concrete type for ResponseBodyTransformer that does nothing (DEFUALT)
type NotificationServiceTransformer ¶
type NotificationServiceTransformer struct {
// contains filtered or unexported fields
}
NotificationServiceTransformer transforms the body of an HTTP Writer and handles the logic for posting to the Pantheon Notification Service (Pub/Sub Proxy)
type ResponseBodyTransformer ¶
type ResponseBodyTransformer interface { // Transform takes the result in byte array and returns // a transformed byte array or error Transform(uuid.UUID, []byte) ([]byte, error) }
ResponseBodyTransformer is an interface that allows different preparations to happen on the body of the message before it is sent (STORED AS A SINGLETON)
func GetResponseBodyTransformer ¶
func GetResponseBodyTransformer(name string, config *viper.Viper) ResponseBodyTransformer
GetResponseBodyTransformer returns a transformer by name
func NewNoopTransformer ¶ added in v1.0.5
func NewNoopTransformer(config *viper.Viper) ResponseBodyTransformer
NewNoopTransformer creates new transformer that does nothing
func NewNotificationServiceTransformer ¶ added in v1.0.5
func NewNotificationServiceTransformer(config *viper.Viper) ResponseBodyTransformer
NewNotificationServiceTransformer creates new transformer
Click to show internal directories.
Click to hide internal directories.