resource

package
v1.2.7-prerelease7 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource interface {
	resource.Resource
	GetEventCache() events.Cache
}

Resource is the interface which expose common history resources

func New

func New(
	params *resource.Params,
	serviceName string,
	config *config.Config,
) (historyResource Resource, retError error)

New create a new resource containing common history dependencies

type Test

type Test struct {
	*resource.Test
	EventCache *events.MockCache
}

Test is the test implementation used for testing

func NewTest

func NewTest(
	t *testing.T,
	controller *gomock.Controller,
	serviceMetricsIndex metrics.ServiceIdx,
) *Test

NewTest returns a new test resource instance

func (*Test) GetEventCache

func (s *Test) GetEventCache() events.Cache

GetEventCache for testing

Jump to

Keyboard shortcuts

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