Documentation
¶
Index ¶
- type Memory
- func (m *Memory) CreateRoute(ctx context.Context, mockID string, data string) error
- func (m *Memory) DeleteRoute(ctx context.Context, mockID string, routeID string) error
- func (m *Memory) Get(_ context.Context, mockID, key string) (string, error)
- func (m *Memory) GetActiveSession(ctx context.Context, mockID string) (string, error)
- func (m *Memory) GetInt(ctx context.Context, mockID, key string) (int, error)
- func (m *Memory) GetMock(_ context.Context, id string) (*mock.Mock, error)
- func (m *Memory) GetMocks(_ context.Context) ([]*mock.Mock, error)
- func (m *Memory) Increment(_ context.Context, mockID, key string) (int, error)
- func (m *Memory) PatchResponse(ctx context.Context, mockID, routeID, responseID, data string) error
- func (m *Memory) PatchRoute(ctx context.Context, mockID string, routeID string, data string) error
- func (m *Memory) Set(_ context.Context, mockID, key string, value string) error
- func (m *Memory) SetActiveSession(ctx context.Context, mockID string, sessionID string) error
- func (m *Memory) SetMock(_ context.Context, cfg *mock.Mock) error
- func (m *Memory) SubscribeMockChanges(subscriber func(mock mock.Mock))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
func (*Memory) CreateRoute ¶
func (*Memory) DeleteRoute ¶
func (*Memory) GetActiveSession ¶
func (*Memory) PatchResponse ¶
func (*Memory) PatchRoute ¶
func (*Memory) SetActiveSession ¶
func (*Memory) SubscribeMockChanges ¶
Click to show internal directories.
Click to hide internal directories.