Documentation ¶
Overview ¶
Package oidresolverimpl implements the OID Resolver component.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockModule ¶
MockModule provides a dummy resolver with canned data. Set your own data with fx.Replace(&oidresolver.TrapDBFileContent{...})
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.
Click to show internal directories.
Click to hide internal directories.