Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessorBuilder ¶
type ProcessorBuilder struct {
// contains filtered or unexported fields
}
ProcessorBuilder is responsible for creating Operations for each request type
func NewProcessorBuilder ¶
func NewProcessorBuilder(factories []ProcessorFactory) *ProcessorBuilder
NewProcessorBuilder created a new ProcessorBuilder
func (*ProcessorBuilder) ProcessorArgumentsForRequest ¶
func (s *ProcessorBuilder) ProcessorArgumentsForRequest(request interface{}, principal *model.Principal) processor.Arguments
ProcessorArgumentsForRequest create Arguments for a request
func (*ProcessorBuilder) ProcessorForRequestType ¶
func (s *ProcessorBuilder) ProcessorForRequestType(ctxIn context.Context, requestType requestobjects.RequestType) (processor.Operations, error)
ProcessorForRequestType create Operations for specified RequestType
type ProcessorFactory ¶
type ProcessorFactory interface { DoMatchRequestType(requestType requestobjects.RequestType) bool CreateProcessor(ctxIn context.Context) (processor.Operations, error) }
ProcessorFactory defines common operations for creating Operations
type Service ¶
type Service interface { ProcessorForRequestType(requestType requestobjects.RequestType) (processor.Operations, error) ProcessorArgumentsForRequest(request *requestobjects.CreateRequest) processor.Arguments }
Service define how request are processed
Click to show internal directories.
Click to hide internal directories.