mapper

package
v2.0.0-k8s-migrate-to-... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultCPHValidator

func NewDefaultCPHValidator() *defaultCPHValidator

func NewHttpDocStoreClient

func NewHttpDocStoreClient(client *http.Client, docStoreAddress string) *httpDocStoreClient

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

type DocStoreClient

type DocStoreClient interface {
	ContentQuery(authority, identifier, tid string) (status int, location string, err error)
	GetContent(uuid, tid string) (*model.DocStoreUppContent, error)
	ContentExists(uuid, tid string) (bool, error)
	ConnectivityCheck() (string, error)
}

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 IResolver

type IResolver interface {
	ResolveIdentifier(serviceID, refField, tid string) (string, error)
	ContentExists(uuid, tid string) (bool, error)
}

type MessageToContentPlaceholderMapper

type MessageToContentPlaceholderMapper interface {
	Map(messageBody []byte) (*model.MethodeContentPlaceholder, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL