platform

package
v0.9.1-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

Platform Package Documentation

This package exposes a set of interfaces and methods for common data store operations such as creating, reading, updating, and deleting (CRUD) records.

Implementations for different types of data stores can be added here, all in one place. These implementations are abstracted from other logic using interface methods.

This package depends on the models package, using its structs to perform the CRUD operations.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestCaseDB

type TestCaseDB interface {
	WriteTestcase(path string, tc *models.TestCase) error
	WriteMock(path string, tc *models.Mock) error

	NewSessionIndex(path string) (string, error)
	ReadSessionIndices(path string) ([]string, error)

	ReadTestcase(path string, options interface{}) ([]*models.TestCase, error)
	ReadMocks(path string) ([]*models.Mock, []*models.Mock, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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