Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidContentType = errors.New("invalid content type") ErrEmptyRequestBody = errors.New("empty body") )
Functions ¶
Types ¶
type Blackbox ¶
type Blackbox interface {
contract.Base64Decoder
}
type Client ¶
type Client interface {
Blackbox
MockPubSubPayload(msg contract.PubSubMessage, subscription string) (io.Reader, error)
DecodePayload(r *http.Request) (contract.PubSubMessage, error)
}
func NewClient ¶
func NewClient(d Dependencies) (Client, error)
type Dependencies ¶ added in v0.1.8
type Dependencies struct {
M contract.Marshaler
U contract.Unmarshaler
}
type PubSubMessageWrapper ¶
func (*PubSubMessageWrapper) GetAttributes ¶
func (p *PubSubMessageWrapper) GetAttributes() map[string]string
func (*PubSubMessageWrapper) GetData ¶
func (p *PubSubMessageWrapper) GetData() []byte
func (*PubSubMessageWrapper) GetMessageID ¶
func (p *PubSubMessageWrapper) GetMessageID() string
func (*PubSubMessageWrapper) GetPublishTime ¶
func (p *PubSubMessageWrapper) GetPublishTime() time.Time
Click to show internal directories.
Click to hide internal directories.