mock

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 51 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BatchOkStr string
)

Functions

func NewTestBeeServer added in v0.10.0

func NewTestBeeServer(t *testing.T, o TestServerOptions) string

Types

type TestServerOptions added in v0.10.0

type TestServerOptions struct {
	Storer             api.Storer
	StateStorer        storage.StateStorer
	Resolver           resolver.Interface
	Pss                pss.Interface
	WsPath             string
	WsPingPeriod       time.Duration
	Logger             log.Logger
	PreventRedirect    bool
	Feeds              feeds.Factory
	CORSAllowedOrigins []string
	PostageContract    postagecontract.Interface
	StakingContract    staking.Contract
	Post               postage.Service
	Steward            steward.Interface
	WsHeaders          http.Header
	Authenticator      auth.Authenticator
	DebugAPI           bool
	Restricted         bool
	DirectUpload       bool
	Probe              *api.Probe

	Overlay         swarm.Address
	PublicKey       ecdsa.PublicKey
	PSSPublicKey    ecdsa.PublicKey
	EthereumAddress common.Address
	BlockTime       time.Duration
	P2P             *p2pmock.Service
	Pingpong        pingpong.Interface
	TopologyOpts    []topologymock.Option
	AccountingOpts  []accountingmock.Option
	ChequebookOpts  []chequebookmock.Option
	SwapOpts        []swapmock.Option
	TransactionOpts []transactionmock.Option

	BatchStore postage.Storer
	SyncStatus func() (bool, error)

	BackendOpts         []backendmock.Option
	Erc20Opts           []erc20mock.Option
	BeeMode             api.BeeNodeMode
	RedistributionAgent *storageincentives.Agent
	NodeStatus          *status.Service
}

Jump to

Keyboard shortcuts

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