resource

package
v0.22.4 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 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 *service.BootstrapParams,
	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(
	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