@@ -57,6 +57,8 @@ type KillgraveRequest struct {
5757}
5858
5959// Response represent the structure of real response
60+ //
61+ // Deprecated: Use Parrot instead
6062type KillgraveResponse struct {
6163 Status int `json:"status"`
6264 Body string `json:"body,omitempty"`
@@ -66,19 +68,25 @@ type KillgraveResponse struct {
6668}
6769
6870// ResponseDelay represent time delay before server responds.
71+ //
72+ // Deprecated: Use Parrot instead
6973type KillgraveResponseDelay struct {
7074 Delay int64 `json:"delay,omitempty"`
7175 Offset int64 `json:"offset,omitempty"`
7276}
7377
7478// AdapterResponse represents a response from an adapter
79+ //
80+ // Deprecated: Use Parrot instead
7581type KillgraveAdapterResponse struct {
7682 Id string `json:"id"`
7783 Data KillgraveAdapterResult `json:"data"`
7884 Error interface {} `json:"error"`
7985}
8086
8187// AdapterResult represents an int result for an adapter
88+ //
89+ // Deprecated: Use Parrot instead
8290type KillgraveAdapterResult struct {
8391 Result interface {} `json:"result"`
8492}
@@ -108,8 +116,6 @@ func NewKillgrave(networks []string, impostersDirectoryPath string, opts ...EnvC
108116
109117// WithTestInstance sets up a Killgrave instance for testing by assigning a test logger and the testing context.
110118// This allows for better logging during tests and facilitates easier debugging.
111- //
112- // Deprecated: Use Parrot instead
113119func (k * Killgrave ) WithTestInstance (t * testing.T ) * Killgrave {
114120 k .l = logging .GetTestLogger (t )
115121 k .t = t
@@ -118,8 +124,6 @@ func (k *Killgrave) WithTestInstance(t *testing.T) *Killgrave {
118124
119125// StartContainer initializes and starts the Killgrave container, setting up imposters and request dumping.
120126// It also configures cleanup for the container and logs the external and internal endpoints for access.
121- //
122- // Deprecated: Use Parrot instead
123127func (k * Killgrave ) StartContainer () error {
124128 err := k .setupImposters ()
125129 if err != nil {
0 commit comments