Documentation
¶
Index ¶
- type GethContainer
- func (g *GethContainer) CreateAccount(ctx context.Context, address, privateKey string, initialBalance uint64) (big.Int, error)
- func (g *GethContainer) HTTPConnStr(t *testing.T, ctx context.Context) string
- func (g *GethContainer) Teardown(ctx context.Context) error
- func (g *GethContainer) WSConnStr(t *testing.T, ctx context.Context) string
- type StdoutLogConsumer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GethContainer ¶
type GethContainer struct {
Container testcontainers.Container
HttpURL string
WsURL string
ChainID uint64
}
GethContainer represents a go-ethereum container.
func NewGethContainer ¶
func NewGethContainer(ctx context.Context) (*GethContainer, error)
NewGethContainer creates a new geth container.
func (*GethContainer) CreateAccount ¶
func (g *GethContainer) CreateAccount( ctx context.Context, address, privateKey string, initialBalance uint64, ) (big.Int, error)
CreateAccount creates and funds a new account in the geth container.
func (*GethContainer) HTTPConnStr ¶
HTTPConnStr returns the http connection string for the geth container (from the container host).
type StdoutLogConsumer ¶
type StdoutLogConsumer struct{ Prefix string }
StdoutLogConsumer is a LogConsumer that prints the log to stdout.
func (*StdoutLogConsumer) Accept ¶
func (lc *StdoutLogConsumer) Accept(l testcontainers.Log)
Accept prints the log to stdout.
Click to show internal directories.
Click to hide internal directories.