common

package
v1.14.9 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 1 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

View Source
const (
	DEFAULT_BASE_URL = "https://api.stackit.cloud/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Do(req *http.Request) (*http.Response, error)
	GetEnvironment() Environment
}

Client is the client interface

type Environment added in v1.12.1

type Environment string
const (
	ENV_PROD Environment = "prod"
	ENV_QA   Environment = "qa"
	ENV_DEV  Environment = "dev"
)

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