jd

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 14 Imported by: 5 modules, 8 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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         string
	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 string) *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