Documentation ¶
Index ¶
- func NewDefaultCPHValidator() *defaultCPHValidator
- func NewHttpDocStoreClient(client *http.Client, docStoreAddress string) *httpDocStoreClient
- type CPHAggregateMapper
- type CPHMapper
- type CPHValidator
- type ComplementaryContentCPHMapper
- type ContentCPHMapper
- type DefaultCPHAggregateMapper
- type DefaultMessageMapper
- type DocStoreClient
- type HTTPIResolver
- type IResolver
- type MessageToContentPlaceholderMapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultCPHValidator ¶
func NewDefaultCPHValidator() *defaultCPHValidator
func NewHttpDocStoreClient ¶
Types ¶
type CPHAggregateMapper ¶
type CPHAggregateMapper interface {
MapContentPlaceholder(mpc *model.MethodeContentPlaceholder, tid, lmd string) ([]model.UppContent, error)
}
type CPHMapper ¶
type CPHMapper interface {
MapContentPlaceholder(mpc *model.MethodeContentPlaceholder, uuid, tid, lmd string) ([]model.UppContent, error)
}
type CPHValidator ¶
type CPHValidator interface {
Validate(mcp *model.MethodeContentPlaceholder) error
}
type ComplementaryContentCPHMapper ¶
type ComplementaryContentCPHMapper struct {
// contains filtered or unexported fields
}
func NewComplementaryContentCPHMapper ¶
func NewComplementaryContentCPHMapper(apiHost string, client DocStoreClient) *ComplementaryContentCPHMapper
func (*ComplementaryContentCPHMapper) MapContentPlaceholder ¶
func (ccm *ComplementaryContentCPHMapper) MapContentPlaceholder(mcp *model.MethodeContentPlaceholder, uuid, tid, lmd string) ([]model.UppContent, error)
type ContentCPHMapper ¶
type ContentCPHMapper struct { }
func (*ContentCPHMapper) MapContentPlaceholder ¶
func (cm *ContentCPHMapper) MapContentPlaceholder(mcp *model.MethodeContentPlaceholder, uuid, tid, lmd string) ([]model.UppContent, error)
type DefaultCPHAggregateMapper ¶
type DefaultCPHAggregateMapper struct {
// contains filtered or unexported fields
}
func NewAggregateCPHMapper ¶
func NewAggregateCPHMapper(iResolver IResolver, validator CPHValidator, cphMappers []CPHMapper) *DefaultCPHAggregateMapper
func (*DefaultCPHAggregateMapper) MapContentPlaceholder ¶
func (m *DefaultCPHAggregateMapper) MapContentPlaceholder(mpc *model.MethodeContentPlaceholder, tid, lmd string) ([]model.UppContent, error)
type DefaultMessageMapper ¶
type DefaultMessageMapper struct { }
func (DefaultMessageMapper) Map ¶
func (m DefaultMessageMapper) Map(messageBody []byte) (*model.MethodeContentPlaceholder, error)
type DocStoreClient ¶
type HTTPIResolver ¶
type HTTPIResolver struct {
// contains filtered or unexported fields
}
func NewHttpIResolver ¶
func NewHttpIResolver(client DocStoreClient, brandMappings map[string]string) *HTTPIResolver
func (*HTTPIResolver) ContentExists ¶
func (r *HTTPIResolver) ContentExists(uuid, tid string) (bool, error)
func (*HTTPIResolver) ResolveIdentifier ¶
func (r *HTTPIResolver) ResolveIdentifier(serviceID, refField, tid string) (string, error)
type MessageToContentPlaceholderMapper ¶
type MessageToContentPlaceholderMapper interface {
Map(messageBody []byte) (*model.MethodeContentPlaceholder, error)
}
Click to show internal directories.
Click to hide internal directories.