billing_platform_service

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DEFAULT_BILLING_PLATFORM_SERVICE_BILLING_GRPC_PORT = "2222"
	DEFAULT_BILLING_PLATFORM_SERVICE_CREDIT_GRPC_PORT  = "2223"
	DEFAULT_POSTGRES_PORT                              = "5432"
	DEFAULT_BILLING_PLATFORM_SERVICE_SERVICE_NAME      = "billing-platform-service"
	DEFAULT_POSTGRES_SERVICE_NAME                      = "postgres"
)
View Source
const DefaultPostgresDSN = "postgres://postgres:postgres@postgres:5432/billing_platform?sslmode=disable"

Variables

This section is empty.

Functions

This section is empty.

Types

type BillingPlatformServiceOutput

type BillingPlatformServiceOutput struct {
	BillingGRPCInternalURL string
	BillingGRPCExternalURL string
	CreditGRPCInternalURL  string
	CreditGRPCExternalURL  string
}

type Input

type Input struct {
	ComposeFile                 string   `toml:"compose_file"`
	ExtraDockerNetworks         []string `toml:"extra_docker_networks"`
	Output                      *Output  `toml:"output"`
	UseCache                    bool     `toml:"use_cache"`
	ChainSelector               uint64   `toml:"chain_selector"`
	StreamsAPIURL               string   `toml:"streams_api_url"`
	StreamsAPIKey               string   `toml:"streams_api_key"`
	StreamsAPISecret            string   `toml:"streams_api_secret"`
	RPCURL                      string   `toml:"rpc_url"`
	WorkflowRegistryAddress     string   `toml:"workflow_registry_address"`
	CapabilitiesRegistryAddress string   `toml:"capabilities_registry_address"`
	WorkflowOwners              []string `toml:"workflow_owners"`
}

type Output

type Output struct {
	BillingPlatformService *BillingPlatformServiceOutput
	Postgres               *PostgresOutput
}

func New

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

New starts a Billing Platform Service stack using docker-compose. Various env vars are set to sensible defaults and input values, but can be overridden by the host process env vars if needed.

Import env vars that can be set to override defaults:

  • TEST_OWNERS = comma separated list of workflow owners
  • STREAMS_API_URL = URL for the Streams API; can use a mock server if needed
  • STREAMS_API_KEY = API key if using a staging or prod Streams API
  • STREAMS_API_SECRET = API secret if using a staging or prod Streams API

type PostgresOutput

type PostgresOutput struct {
	DSN string
}

Jump to

Keyboard shortcuts

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