Documentation ¶
Overview ¶
Package mockdb provides a mock database implementation.
Index ¶
- func EncodeMock(mock *models.Mock, logger *zap.Logger) (*yaml.NetworkTrafficDoc, error)
- type MockYaml
- func (ys *MockYaml) GetFilteredMocks(ctx context.Context, testSetID string, afterTime time.Time, ...) ([]*models.Mock, error)
- func (ys *MockYaml) GetUnFilteredMocks(ctx context.Context, testSetID string, afterTime time.Time, ...) ([]*models.Mock, error)
- func (ys *MockYaml) InsertMock(ctx context.Context, mock *models.Mock, testSetID string) error
- func (ys *MockYaml) UpdateMocks(ctx context.Context, testSetID string, mockNames map[string]bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeMock ¶
Types ¶
type MockYaml ¶
type MockYaml struct { MockPath string MockName string Logger *zap.Logger // contains filtered or unexported fields }
func (*MockYaml) GetFilteredMocks ¶
func (*MockYaml) GetUnFilteredMocks ¶
func (*MockYaml) InsertMock ¶
Click to show internal directories.
Click to hide internal directories.