Documentation
¶
Index ¶
- type Extension
- type LeadType
- type Option
- func WithEventStream[LeadT LeadType](eventStream eventstream.Stream) Option[LeadT]
- func WithHTTPHandlerWrapper[LeadT LeadType](handlerWrapper *httphandler.HTTPHandlerWrapper) Option[LeadT]
- func WithLeadAllocator[LeadT LeadType](leadAllocator eventgenerator.Allocator[LeadT]) Option[LeadT]
- func WithURLGenerator[LeadT LeadType](urlGenerator adtype.URLGenerator) Option[LeadT]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extension ¶
type Extension[LeadT LeadType] struct { // contains filtered or unexported fields }
Extension of the server
func NewExtension ¶
NewExtension with options
func (*Extension[LeadType]) InitRouter ¶
func (ext *Extension[LeadType]) InitRouter(ctx context.Context, router *router.Router, tracer opentracing.Tracer)
InitRouter of the HTTP server
type LeadType ¶
type LeadType = eventgenerator.LeadType
type Option ¶
Option type
func WithEventStream ¶
func WithEventStream[LeadT LeadType](eventStream eventstream.Stream) Option[LeadT]
WithEventStream setter
func WithHTTPHandlerWrapper ¶
func WithHTTPHandlerWrapper[LeadT LeadType](handlerWrapper *httphandler.HTTPHandlerWrapper) Option[LeadT]
WithHTTPHandlerWrapper setter
func WithLeadAllocator ¶
func WithLeadAllocator[LeadT LeadType](leadAllocator eventgenerator.Allocator[LeadT]) Option[LeadT]
WithLeadAllocator setter
func WithURLGenerator ¶
func WithURLGenerator[LeadT LeadType](urlGenerator adtype.URLGenerator) Option[LeadT]
WithURLGenerator interface
Click to show internal directories.
Click to hide internal directories.