context

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APP

type APP interface {
	GetNode(id string) (NodeAddress, bool)
	All() map[string]NodeAddress
}

type Context

type Context interface {
	LoadBalance() LoadBalance
	SetLoadBalance(balance LoadBalance)
	DO() DoHandler
	SetDoHandler(handler DoHandler)
	Finish() FinishHandler
	SetFinish(handler FinishHandler)
	Assert(i interface{}) error
	Scheme() string
}

type DoHandler

type DoHandler interface {
	DO() error
}

type FinishHandler

type FinishHandler interface {
	Finish() error
}

type LoadBalance

type LoadBalance interface {
	Select(app APP) (NodeAddress, error)
}

type NodeAddress

type NodeAddress = string

Jump to

Keyboard shortcuts

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