oidresolverimpl

package
v0.0.0-...-32187be Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package oidresolverimpl implements the OID Resolver component.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockModule

func MockModule() fxutil.Module

MockModule provides a dummy resolver with canned data. Set your own data with fx.Replace(&oidresolver.TrapDBFileContent{...})

func Module

func Module() fxutil.Module

Module defines the fx options for this component.

func NewMockResolver

func NewMockResolver(content *oidresolver.TrapDBFileContent) oidresolver.Component

NewMockResolver creates a mock resolver populated with fake data.

Types

type MockResolver

type MockResolver struct {
	// contains filtered or unexported fields
}

MockResolver implements OIDResolver with a mock database.

func (MockResolver) GetTrapMetadata

func (r MockResolver) GetTrapMetadata(trapOid string) (oidresolver.TrapMetadata, error)

GetTrapMetadata implements OIDResolver#GetTrapMetadata.

func (MockResolver) GetVariableMetadata

func (r MockResolver) GetVariableMetadata(_ string, varOid string) (oidresolver.VariableMetadata, error)

GetVariableMetadata implements OIDResolver#GetVariableMetadata.

Jump to

Keyboard shortcuts

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