jd

package
v0.11.6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 14 Imported by: 4

Documentation

Index

Constants

View Source
const (
	TmpImageName            = "jd-local"
	GRPCPort         string = "14231"
	CSAEncryptionKey string = "!PASsword000!"
	WSRPCPort        string = "8080"
	WSRPCHealthPort  string = "8081"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCHealthStrategy added in v0.11.6

type GRPCHealthStrategy struct {
	Port         nat.Port
	PollInterval time.Duration
	// contains filtered or unexported fields
}

GRPCHealthStrategy implements a wait strategy for gRPC health checks

func NewGRPCHealthStrategy added in v0.11.6

func NewGRPCHealthStrategy(port nat.Port) *GRPCHealthStrategy

NewGRPCHealthStrategy creates a new gRPC health check wait strategy

func (*GRPCHealthStrategy) WaitUntilReady added in v0.11.6

func (g *GRPCHealthStrategy) WaitUntilReady(ctx context.Context, target tcwait.StrategyTarget) error

WaitUntilReady implements Strategy.WaitUntilReady

func (*GRPCHealthStrategy) WithPollInterval added in v0.11.6

func (g *GRPCHealthStrategy) WithPollInterval(interval time.Duration) *GRPCHealthStrategy

WithPollInterval sets the poll interval for the gRPC health check strategy

func (*GRPCHealthStrategy) WithTimeout added in v0.11.6

func (g *GRPCHealthStrategy) WithTimeout(timeout time.Duration) *GRPCHealthStrategy

WithTimeout sets the timeout for the gRPC health check strategy

type Input

type Input struct {
	Image            string          `toml:"image"`
	GRPCPort         string          `toml:"grpc_port"`
	WSRPCPort        string          `toml:"wsrpc_port"`
	CSAEncryptionKey string          `toml:"csa_encryption_key"`
	DockerFilePath   string          `toml:"docker_file"`
	DockerContext    string          `toml:"docker_ctx"`
	JDSQLDumpPath    string          `toml:"jd_sql_dump_path"`
	DBInput          *postgres.Input `toml:"db"`
	Out              *Output         `toml:"out"`
}

type Output

type Output struct {
	UseCache         bool   `toml:"use_cache"`
	ContainerName    string `toml:"container_name"`
	DBContainerName  string `toml:"db_container_name"`
	ExternalGRPCUrl  string `toml:"grpc_url"`
	InternalGRPCUrl  string `toml:"internal_grpc_url"`
	ExternalWSRPCUrl string `toml:"wsrpc_url"`
	InternalWSRPCUrl string `toml:"internal_wsrpc_url"`
}

func NewJD

func NewJD(in *Input) (*Output, error)

func NewWithContext added in v0.11.6

func NewWithContext(ctx context.Context, in *Input) (*Output, error)

Jump to

Keyboard shortcuts

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