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 (*Agent) ReplaceApplications ¶
func (a *Agent) ReplaceApplications(newApps map[string]*Application)
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
Click to show internal directories.
Click to hide internal directories.