Documentation
¶
Index ¶
- Variables
- func MarshalToParams(s any) (map[string]any, error)
- func MonitorHandle(w http.ResponseWriter, r *http.Request)
- func NewInvokerRequestParams() map[string]any
- func ProcessorHandle(w http.ResponseWriter, r *http.Request, pc *models.ProcessorCallbacks)
- func UnmarshalParams(params map[string]any, dest any) error
- type CatProcessorParams
- type InvokerClient
- type InvokerRequest
- type InvokerResponse
- type LoadParams
- type LoadProcessorEndpointsParams
- type ProcessorCatResult
- type ProcessorClient
- type ProcessorMetadata
- type StateStoreEntry
Constants ¶
This section is empty.
Variables ¶
View Source
var MonitorCommands = struct { LoadRootConfig string CreateTopics string LoadProcessorEndpoints string InitializeProcessors string RunProcessors string Load string CatProcessor string }{ LoadRootConfig: "loadRootConfig", CreateTopics: "createTopics", LoadProcessorEndpoints: "loadProcessorEndpoints", InitializeProcessors: "initializeProcessors", RunProcessors: "runProcessors", Load: "load", CatProcessor: "catProcessor", }
View Source
var ProcessorCommands = struct { Initialize string Run string Exit string Ping string Cat string }{ Initialize: "initialize", Run: "run", Exit: "exit", Ping: "ping", Cat: "cat", }
View Source
var ResponseCodes = struct { Success int Failed int }{ Success: 0, Failed: 1, }
Functions ¶
func MonitorHandle ¶
func MonitorHandle(w http.ResponseWriter, r *http.Request)
func NewInvokerRequestParams ¶
func ProcessorHandle ¶
func ProcessorHandle(w http.ResponseWriter, r *http.Request, pc *models.ProcessorCallbacks)
Types ¶
type CatProcessorParams ¶
type CatProcessorParams struct {
ProcessorName string `json:"processorName"`
}
type InvokerClient ¶
func (*InvokerClient) SendCommand ¶
func (c *InvokerClient) SendCommand(params map[string]any, command string) (*InvokerResponse, error)
func (*InvokerClient) SendFile ¶
func (c *InvokerClient) SendFile(fileName string, file io.Reader) (*InvokerResponse, error)
type InvokerRequest ¶
type InvokerResponse ¶
type LoadParams ¶
type LoadProcessorEndpointsParams ¶
type LoadProcessorEndpointsParams struct {
Endpoints []string `json:"endpoints"`
}
type ProcessorCatResult ¶
type ProcessorCatResult map[string][]StateStoreEntry
type ProcessorClient ¶
type ProcessorClient struct { InvokerClient ProcessorName string }
func NewProcessorClient ¶
func NewProcessorClient(processorName, url string) *ProcessorClient
func (*ProcessorClient) Cat ¶
func (pc *ProcessorClient) Cat() (*InvokerResponse, error)
func (*ProcessorClient) Initialize ¶
func (pc *ProcessorClient) Initialize() (*InvokerResponse, error)
func (*ProcessorClient) Run ¶
func (pc *ProcessorClient) Run() (*InvokerResponse, error)
type ProcessorMetadata ¶
type ProcessorMetadata struct { Name string Status string Client *ProcessorClient }
type StateStoreEntry ¶
Click to show internal directories.
Click to hide internal directories.