apiclient

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ORDClient

type ORDClient struct {
	// contains filtered or unexported fields
}

ORDClient handles the communication with ord aggregator API

func NewORDClient

func NewORDClient(cfg OrdAggregatorClientConfig) *ORDClient

NewORDClient creates new ord aggregator client

func (*ORDClient) Aggregate

func (c *ORDClient) Aggregate(ctx context.Context, appID, appTemplateID string) error

Aggregate call ord aggregator API

func (*ORDClient) SetHTTPClient

func (c *ORDClient) SetHTTPClient(client *http.Client)

SetHTTPClient sets the underlying HTTP client

type OrdAggregatorClientConfig

type OrdAggregatorClientConfig struct {
	ClientTimeout             time.Duration `envconfig:"APP_ORD_AGGREGATOR_CLIENT_TIMEOUT,default=30s"`
	OrdAggregatorAggregateAPI string        `envconfig:"APP_ORD_AGGREGATOR_AGGREGATE_API"`
	SkipSSLValidation         bool          `envconfig:"default=false,APP_ORD_AGGREGATOR_SKIP_SSL_VALIDATION"`
}

OrdAggregatorClientConfig is the configuration needed for ord aggregator client

Jump to

Keyboard shortcuts

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