contracts

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

client file in package common holds the client interface and service struct used by each service that the client is connecting with services using the Service struct are located under pkg/api

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseClientInterface

type BaseClientInterface interface {
	Do(req *http.Request) (*http.Response, error)
	GetServiceAccountEmail() string
	Clone() interface{}
}

type ClientFlowConfig

type ClientFlowConfig interface {
	clients.TokenFlowConfig | clients.KeyFlowConfig
}

type ClientInterface

type ClientInterface[f ClientFlowConfig] interface {
	Do(req *http.Request) (*http.Response, error)
	GetConfig() f
	GetServiceAccountEmail() string
}

Jump to

Keyboard shortcuts

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