mercury

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProviderServices

func RegisterProviderServices(s *grpc.Server, provider types.MercuryProvider)

RegisterProviderServices registers the Mercury services with the given gRPC server. It registers all versions of the report codec service and the version-agnostic services. It should used by default, unless you need to register a specific version of the report codec service.

func RegisterProviderServicesV1

func RegisterProviderServicesV1(s *grpc.Server, provider types.MercuryProvider)

RegisterProviderServicesV1 registers the Mercury services with the given gRPC server. It registers only the v1 version of the report codec service and the version-agnostic services. It should be used when you only need to register the v1 version of the report codec service, and will cause gRPC to return an unimplemented error for the v2 and v3 versions.

func RegisterProviderServicesV2

func RegisterProviderServicesV2(s *grpc.Server, provider types.MercuryProvider)

RegisterProviderServicesV2 registers the Mercury services with the given gRPC server. It registers only the v2 version of the report codec service and the version-agnostic services. It should be used when you only need to register the v2 version of the report codec service, and will cause gRPC to return an unimplemented error for the v1 and v3 versions.

func RegisterProviderServicesV3

func RegisterProviderServicesV3(s *grpc.Server, provider types.MercuryProvider)

RegisterProviderServicesV3 registers the Mercury services with the given gRPC server. It registers only the v3 version of the report codec service and the version-agnostic services. It should be used when you only need to register the v3 version of the report codec service, and will cause gRPC to return an unimplemented error for the v1 and v2 versions.

Types

type ProviderClient

type ProviderClient struct {
	*ocr2.PluginProviderClient
	// contains filtered or unexported fields
}

func (*ProviderClient) ChainReader

func (m *ProviderClient) ChainReader() types.ContractReader

func (*ProviderClient) MercuryChainReader

func (m *ProviderClient) MercuryChainReader() mercury.ChainReader

func (*ProviderClient) MercuryServerFetcher

func (m *ProviderClient) MercuryServerFetcher() mercury.ServerFetcher

func (*ProviderClient) OnchainConfigCodec

func (m *ProviderClient) OnchainConfigCodec() mercury.OnchainConfigCodec

func (*ProviderClient) ReportCodecV1

func (m *ProviderClient) ReportCodecV1() mercury_v1.ReportCodec

func (*ProviderClient) ReportCodecV2

func (m *ProviderClient) ReportCodecV2() mercury_v2.ReportCodec

func (*ProviderClient) ReportCodecV3

func (m *ProviderClient) ReportCodecV3() mercury_v3.ReportCodec

Directories

Path Synopsis
v1
v2
v3

Jump to

Keyboard shortcuts

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