internal

package
v0.0.0-...-e7b0f46 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Context      context.Context
	Applications map[string]*Application
	Logger       zerolog.Logger
	// contains filtered or unexported fields
}

func (*Agent) HandleSPOE

func (a *Agent) HandleSPOE(ctx context.Context, writer *encoding.ActionWriter, message *encoding.Message)

func (*Agent) ReplaceApplications

func (a *Agent) ReplaceApplications(newApps map[string]*Application)

func (*Agent) Serve

func (a *Agent) Serve(l net.Listener) error

type AppConfig

type AppConfig struct {
	Directives     string
	ResponseCheck  bool
	Logger         zerolog.Logger
	TransactionTTL time.Duration
}

func (AppConfig) NewApplication

func (a AppConfig) NewApplication() (*Application, error)

type Application

type Application struct {
	AppConfig
	// contains filtered or unexported fields
}

func (*Application) HandleRequest

func (a *Application) HandleRequest(ctx context.Context, writer *encoding.ActionWriter, message *encoding.Message) (err error)

func (*Application) HandleResponse

func (a *Application) HandleResponse(ctx context.Context, writer *encoding.ActionWriter, message *encoding.Message) (err error)

type ErrInterrupted

type ErrInterrupted struct {
	Interruption *types.Interruption
}

func (ErrInterrupted) Error

func (e ErrInterrupted) Error() string

func (ErrInterrupted) Is

func (e ErrInterrupted) Is(target error) bool

Jump to

Keyboard shortcuts

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