billing

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkflowClient

type WorkflowClient interface {
	GetOrganizationCreditsByWorkflow(ctx context.Context, req *pb.GetOrganizationCreditsByWorkflowRequest) (*pb.GetOrganizationCreditsByWorkflowResponse, error)
	GetWorkflowExecutionRates(ctx context.Context, req *pb.GetWorkflowExecutionRatesRequest) (*pb.GetWorkflowExecutionRatesResponse, error)
	ReserveCredits(ctx context.Context, req *pb.ReserveCreditsRequest) (*pb.ReserveCreditsResponse, error)
	SubmitWorkflowReceipt(ctx context.Context, req *pb.SubmitWorkflowReceiptRequest) (*emptypb.Empty, error)

	// Closer
	Close() error
}

WorkflowClient is a specialized interface for the Workflow node use-case.

func NewWorkflowClient

func NewWorkflowClient(lggr logger.Logger, address string, opts ...WorkflowClientOpt) (WorkflowClient, error)

NewWorkflowClient creates a new workflow client with JWT signing enabled.

type WorkflowClientOpt

type WorkflowClientOpt func(*workflowConfig)

func WithJWTGenerator added in v0.8.0

func WithJWTGenerator(jwtGenerator auth.JWTGenerator) WorkflowClientOpt

WithJWTGenerator sets the JWT generator for authentication.

func WithServerName

func WithServerName(name string) WorkflowClientOpt

WithServerName allows overriding the expected server name in the TLS certificate.

func WithWorkflowTLSCert

func WithWorkflowTLSCert(cert string) WorkflowClientOpt

func WithWorkflowTransportCredentials

func WithWorkflowTransportCredentials(creds credentials.TransportCredentials) WorkflowClientOpt

Jump to

Keyboard shortcuts

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