common

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 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 Client

type Client interface {
	Request(ctx context.Context, method, path string, body []byte) (*http.Request, error)
	LegacyDo(req *http.Request, v interface{}, errorHandlers ...func(*http.Response) error) (*http.Response, error) // @TODO: remove once all services are generated
	Do(req *http.Request) (*http.Response, error)
	SetBaseURL(url string) error
	GetBaseURL() string
}

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