build

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Http interflowType = iota
	Grpc
	Kafka
)

Variables

This section is empty.

Functions

func NewAgentInterflow

func NewAgentInterflow(opts ...AgentInterflowOption) (interflow.AgentInterflow, error)

func NewServerInterflow

func NewServerInterflow(opts ...ServerInterflowOption) (interflow.ServerInterflow, error)

Types

type AgentInterflowOption

type AgentInterflowOption func(*agentInterflow)

func WithAgentGrpcNetwork

func WithAgentGrpcNetwork(network hook.GrpcConfig) AgentInterflowOption

WithAgentGrpcNetwork 设置grpc hook通信网络

func WithAgentHttpNetwork

func WithAgentHttpNetwork(network hook.HttpConfig) AgentInterflowOption

WithAgentHttpNetwork 设置http hook通信网络

func WithAgentKafka

func WithAgentKafka(kafkaMQServer *servers.KafkaMQServer) AgentInterflowOption

WithAgentKafka 设置kafka

func WithAgentLogger

func WithAgentLogger(logger log.Logger) AgentInterflowOption

WithAgentLogger 设置日志

type ServerInterflowOption

type ServerInterflowOption func(s *serverInterflow)

func WithServerKafka

func WithServerKafka(kafkaMQServer *servers.KafkaMQServer) ServerInterflowOption

WithServerKafka 设置kafka

func WithServerLogger

func WithServerLogger(logger log.Logger) ServerInterflowOption

WithServerLogger 设置日志

func WithServerNetwork

func WithServerNetwork(network interflow.Network) ServerInterflowOption

WithServerNetwork 设置hook通信网络

Jump to

Keyboard shortcuts

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