common

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: Apache-2.0 Imports: 3 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 Client

type Client interface {
	Request(ctx context.Context, method, path string, body []byte) (*http.Request, error)
	Do(req *http.Request, v interface{}, errorHandlers ...func(*http.Response) error) (*http.Response, error)
	Retry() *retry.Retry
	SetBaseURL(url string) error
	GetBaseURL() string
	Clone() Client
}

Client is the client interface

type Service

type Service struct {
	Client Client
}

Service is the struct every extending service is built on

Jump to

Keyboard shortcuts

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