faucet

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config holds the properties that configure the package

func NewFaucetConfig

func NewFaucetConfig(opts ...Option) *Config

type DockerFaucet

type DockerFaucet struct {
	// contains filtered or unexported fields
}

func NewDockerFaucet

func NewDockerFaucet(cfg *Config) (*DockerFaucet, error)

func (*DockerFaucet) IsReady

func (n *DockerFaucet) IsReady() error

func (*DockerFaucet) Start

func (n *DockerFaucet) Start() error

type Option

type Option = func(c *Config)

Option is a function that applies configs to a Config Object

func WithDockerImage

func WithDockerImage(s string) Option

func WithFaucetPort

func WithFaucetPort(i int) Option

func WithFaucetPrivKey

func WithFaucetPrivKey(s string) Option

func WithTenNodeHost

func WithTenNodeHost(s string) Option

func WithTenNodePort

func WithTenNodePort(i int) Option

Jump to

Keyboard shortcuts

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