pool_misrocervice_client

package
v0.0.0-...-8122643 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppUserAgent

func AppUserAgent(app app_context.Context) string

func BaseUrlForService

func BaseUrlForService(service *pool.PoolServiceBinding, public ...bool) (string, error)

Types

type PoolMicroserviceClient

type PoolMicroserviceClient struct {
	http_request.WithHttpClient
	PoolMicroserviceClientConfig
	PoolServiceClient
	// contains filtered or unexported fields
}

func NewPoolMicroserviceClient

func NewPoolMicroserviceClient(defaultRole string, client ...PoolServiceClient) *PoolMicroserviceClient

func (*PoolMicroserviceClient) Config

func (p *PoolMicroserviceClient) Config() interface{}

func (*PoolMicroserviceClient) Init

func (p *PoolMicroserviceClient) Init(app app_with_pools.AppWithPools, configPath ...string) error

func (*PoolMicroserviceClient) SetOverridePool

func (p *PoolMicroserviceClient) SetOverridePool(poolName string)

func (*PoolMicroserviceClient) SetPropagateAuthUser

func (p *PoolMicroserviceClient) SetPropagateAuthUser(val bool)

func (*PoolMicroserviceClient) SetPropagateContextId

func (p *PoolMicroserviceClient) SetPropagateContextId(val bool)

func (*PoolMicroserviceClient) SetService

func (*PoolMicroserviceClient) Shutdown

func (p *PoolMicroserviceClient) Shutdown(ctx context.Context) error

type PoolMicroserviceClientConfig

type PoolMicroserviceClientConfig struct {
	POOL_SERVICE_ROLE string `validate:"required" vmessage:"Service role in the pool must be specified"`
}

type PoolServiceClient

type PoolServiceClient interface {
	api_client.Client
	InitForPoolService(httpClient *http_request.HttpClient, service *pool.PoolServiceBinding, clientAgent ...string) error
}

type RestApiPoolServiceClient

type RestApiPoolServiceClient struct {
	*rest_api_client.Client
}

func (*RestApiPoolServiceClient) InitForPoolService

func (r *RestApiPoolServiceClient) InitForPoolService(httpClient *http_request.HttpClient, service *pool.PoolServiceBinding, clientAgent ...string) error

Jump to

Keyboard shortcuts

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