Documentation
¶
Overview ¶
Package deps provides mechanisms to run Node dependencies using docker
Index ¶
Constants ¶
View Source
const ( DefaultPostgresDockerImage = "postgres:16-alpine" DefaultPostgresPort = "5432" DefaultPostgresPassword = "password" DefaultDevnetDockerImage = "cartesi/rollups-node-devnet:devel" DefaultDevnetPort = "8545" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DepsConfig ¶
type DepsConfig struct {
Postgres *PostgresConfig
Devnet *DevnetConfig
}
Struct to hold Node dependencies containers configurations
func NewDefaultDepsConfig ¶
func NewDefaultDepsConfig() *DepsConfig
Builds a DepsConfig struct with default values
type DepsContainers ¶
type DepsContainers struct {
// contains filtered or unexported fields
}
Struct to represent the Node dependencies containers
func Run ¶
func Run(ctx context.Context, depsConfig DepsConfig) (*DepsContainers, error)
Run starts the Node dependencies containers. The returned DepContainers struct can be used to gracefully terminate the containers using the Terminate method
type DevnetConfig ¶ added in v1.4.0
type PostgresConfig ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.