Documentation ¶
Index ¶
- Constants
- func CheckTestingResult(t *testing.T, receivedTestingResult types.TestingResultItem, ...)
- func DefaultTestingResult() types.TestingResult
- func NewQuerier(keeper Keeper) sdk.Querier
- type Keeper
- func (k Keeper) AddTestingResult(ctx sdk.Context, testingResult types.TestingResult)
- func (k Keeper) GetTestingResults(ctx sdk.Context, vid uint16, pid uint16, softwareVersion uint32) types.TestingResults
- func (k Keeper) IsTestingResultsPresents(ctx sdk.Context, vid uint16, pid uint16, softwareVersion uint32) bool
- func (k Keeper) IterateTestingResults(ctx sdk.Context, process func(info types.TestingResults) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetTestingResults(ctx sdk.Context, testingResult types.TestingResults)
- type TestSetup
Constants ¶
View Source
const (
QueryTestingResult = "testresult"
)
Variables ¶
This section is empty.
Functions ¶
func CheckTestingResult ¶
func CheckTestingResult(t *testing.T, receivedTestingResult types.TestingResultItem, expectedTestingResult types.TestingResult)
func DefaultTestingResult ¶
func DefaultTestingResult() types.TestingResult
func NewQuerier ¶
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) AddTestingResult ¶
func (k Keeper) AddTestingResult(ctx sdk.Context, testingResult types.TestingResult)
Add single TestingResult for an existing TestingResults record.
func (Keeper) GetTestingResults ¶
func (k Keeper) GetTestingResults(ctx sdk.Context, vid uint16, pid uint16, softwareVersion uint32) types.TestingResults
Gets the entire TestingResults record for VID/PID/SoftwareVersion combination.
func (Keeper) IsTestingResultsPresents ¶
func (k Keeper) IsTestingResultsPresents(ctx sdk.Context, vid uint16, pid uint16, softwareVersion uint32) bool
Check if the TestingResults record is present in the store or not.
func (Keeper) IterateTestingResults ¶
func (k Keeper) IterateTestingResults(ctx sdk.Context, process func(info types.TestingResults) (stop bool))
Iterate over all TestingResults records.
func (Keeper) SetTestingResults ¶
func (k Keeper) SetTestingResults(ctx sdk.Context, testingResult types.TestingResults)
Sets the entire TestingResults record for a VID/PID combination.
Click to show internal directories.
Click to hide internal directories.