clients

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DatasetVersionTypeStatic defines the dataset version
	// type for static datasets.
	DatasetVersionTypeStatic = "static"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientList

type ClientList struct {
	DatasetAPI    datasetAPI.Clienter
	FilesAPI      filesAPI.Clienter
	RedirectAPI   RedirectAPIClient
	UploadService uploadService.Clienter
	Zebedee       ZebedeeClient
}

ClientList holds all the API clients used by the service.

type RedirectAPIClient

type RedirectAPIClient interface {
	PutRedirect(ctx context.Context, options redirectSDK.Options, id string, payload redirectModels.Redirect) redirectErrors.Error
}

RedirectAPIClient is an interface defining the methods for the Redirect API (github.com/ONSdigital/dis-redirect-api) client. TODO: this interface should live in the dis-redirect-api repo

type ZebedeeClient

type ZebedeeClient interface {
	GetDataset(ctx context.Context, userAccessToken, collectionID, lang, path string) (d zebedee.Dataset, err error)
	GetDatasetLandingPage(ctx context.Context, userAccessToken, collectionID, lang, path string) (d zebedee.DatasetLandingPage, err error)
	GetPageData(ctx context.Context, userAuthToken, collectionID, lang, path string) (m zebedee.PageData, err error)
}

ZebedeeClient is an interface defining the methods for the Zebedee (github.com/ONSdigital/zebedee) client.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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