@@ -40,11 +40,14 @@ type Killgrave struct {
4040}
4141
4242// Imposter define an imposter structure
43+ //
44+ // Deprecated: Use Parrot instead
4345type KillgraveImposter struct {
4446 Request KillgraveRequest `json:"request"`
4547 Response KillgraveResponse `json:"response"`
4648}
4749
50+ // Deprecated: Use Parrot instead
4851type KillgraveRequest struct {
4952 Method string `json:"method"`
5053 Endpoint string `json:"endpoint,omitempty"`
@@ -83,6 +86,7 @@ type KillgraveAdapterResult struct {
8386// NewKillgrave initializes a new Killgrave instance with specified networks and imposters directory.
8487// It sets default configurations and allows for optional environment component modifications.
8588// This function is useful for creating a Killgrave service for testing and simulating APIs.
89+ //
8690// Deprecated: Use Parrot instead
8791func NewKillgrave (networks []string , impostersDirectoryPath string , opts ... EnvComponentOption ) * Killgrave {
8892 k := & Killgrave {
@@ -104,6 +108,8 @@ func NewKillgrave(networks []string, impostersDirectoryPath string, opts ...EnvC
104108
105109// WithTestInstance sets up a Killgrave instance for testing by assigning a test logger and the testing context.
106110// This allows for better logging during tests and facilitates easier debugging.
111+ //
112+ // Deprecated: Use Parrot instead
107113func (k * Killgrave ) WithTestInstance (t * testing.T ) * Killgrave {
108114 k .l = logging .GetTestLogger (t )
109115 k .t = t
@@ -112,6 +118,8 @@ func (k *Killgrave) WithTestInstance(t *testing.T) *Killgrave {
112118
113119// StartContainer initializes and starts the Killgrave container, setting up imposters and request dumping.
114120// It also configures cleanup for the container and logs the external and internal endpoints for access.
121+ //
122+ // Deprecated: Use Parrot instead
115123func (k * Killgrave ) StartContainer () error {
116124 err := k .setupImposters ()
117125 if err != nil {
@@ -322,6 +330,7 @@ func (k *Killgrave) SetAdapterBasedIntValuePath(path string, methods []string, v
322330 return k .SetAdapterBasedAnyValuePath (path , methods , v )
323331}
324332
333+ // Deprecated: Use Parrot instead
325334type RequestData struct {
326335 Method string `json:"method"`
327336 Host string `json:"host"`
0 commit comments