mocks

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElasticAPI

type ElasticAPI struct {
	InternalServerError bool
	NumberOfCalls       *int
}

ElasticAPI represents a list of error flags to set error in mocked elastic API

func (*ElasticAPI) AddDimensionOption

func (api *ElasticAPI) AddDimensionOption(ctx context.Context, instanceID, dimension string, dimensionOption models.DimensionOption) (int, error)

AddDimensionOption represents the mocked version of adding a dimension option to an existing index

func (*ElasticAPI) CreateSearchIndex

func (api *ElasticAPI) CreateSearchIndex(ctx context.Context, instanceID, dimension string) (int, error)

CreateSearchIndex represents the mocked version of creating a search index

func (*ElasticAPI) DeleteSearchIndex

func (api *ElasticAPI) DeleteSearchIndex(ctx context.Context, instanceID, dimension string) (int, error)

DeleteSearchIndex represents the mocked version of deleting a search index

type HierarchyAPI

type HierarchyAPI struct {
	InternalServerError bool
	NumberOfDescendants int
	NumberOfCalls       *int
}

HierarchyAPI represents a list of error flags to set error in mocked hierarchy API

func (*HierarchyAPI) GetDimensionOption

func (api *HierarchyAPI) GetDimensionOption(ctx context.Context, instanceID, dimension, codeID string) (rootDimensionOption *models.Response, err error)

GetDimensionOption represents the mocked version of getting the root dimension option for a hierarchy from the hierarchy API

func (*HierarchyAPI) GetRootDimensionOption

func (api *HierarchyAPI) GetRootDimensionOption(ctx context.Context, instanceID, dimension string) (rootDimensionOption *models.Response, err error)

GetRootDimensionOption represents the mocked version of getting the root dimension option for a hierarchy from the hierarchy API

Jump to

Keyboard shortcuts

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