processor

package
v0.0.0-...-cb2ae7d Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DownstreamProcessor

type DownstreamProcessor struct {
}

func (*DownstreamProcessor) Process

type HttpDispatchProcess

type HttpDispatchProcess struct {
	// contains filtered or unexported fields
}

func NewHttpDispatcher

func NewHttpDispatcher(timeout time.Duration) *HttpDispatchProcess

func (*HttpDispatchProcess) Process

type ProcessResp

type ProcessResp struct {
	Success bool
	Finish  bool

	Content interface{}
	// contains filtered or unexported fields
}

func PushToProcessor

func PushToProcessor(msg datapack.Message) *ProcessResp

type Processor

type Processor interface {
	Process(ctx context.Context, msg datapack.Message) *ProcessResp
}

type RemoteDispatchProcess

type RemoteDispatchProcess interface {
	Processor

	GetRemoteServices(serviceName string) []transport.RemoteService
	LoadBalanceSort([]transport.RemoteService) []transport.RemoteService
	DoDispatch() *ProcessResp
}

Jump to

Keyboard shortcuts

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