resource

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct {
	resource.Resource
	// contains filtered or unexported fields
}

Impl contains all common resources shared across history

func New

func New(
	params *service.BootstrapParams,
	serviceName string,
	config *config.Config,
	visibilityManagerInitializer resource.VisibilityManagerInitializer,
) (impl *Impl, retError error)

New create a new resource containing common history dependencies

func (*Impl) GetEventCache

func (h *Impl) GetEventCache() events.Cache

GetEventCache return event cache

type Resource

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

Resource is the interface which expose common history resources

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