hook

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAgentHookGrpcInterflow

func NewAgentHookGrpcInterflow(c GrpcConfig, logger log.Logger) (interflow.AgentInterflow, error)

func NewAgentHookHttpInterflow

func NewAgentHookHttpInterflow(c HttpConfig, logger log.Logger) (interflow.AgentInterflow, error)

func NewServerHookGrpcInterflow

func NewServerHookGrpcInterflow(network interflow.Network, logger log.Logger) interflow.ServerInterflow

func NewServerHookHttpInterflow

func NewServerHookHttpInterflow(logger log.Logger) interflow.ServerInterflow

Types

type Config

type Config interface {
	GetHttp() HttpConfig
	GetGrpc() GrpcConfig
}

type GrpcConfig

type GrpcConfig interface {
	GetAgent() GrpcServerConfig
	GetServer() GrpcServerConfig
}

type GrpcServerConfig

type GrpcServerConfig interface {
	GetEndpoints() []string
}

type HttpConfig

type HttpConfig interface {
	GetAgent() HttpServerConfig
	GetServer() HttpServerConfig
}

type HttpServerConfig

type HttpServerConfig interface {
	GetUrl() string
}

Jump to

Keyboard shortcuts

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