Documentation
¶
Index ¶
- type CollectionService
- func (s *CollectionService) AddFolderToCollection(collectionID string, folderName string, parentPath []string) error
- func (s *CollectionService) AddRequestToCollection(collectionID string, requestData []byte) (domain.Request, error)
- func (s *CollectionService) CreateCollection(collectionData []byte) (*models.Collection, error)
- func (s *CollectionService) DeleteCollection(id string) error
- func (s *CollectionService) DeleteFolderFromCollection(collectionID string, folderPath []string) error
- func (s *CollectionService) DeleteRequestFromCollection(collectionID string, requestID string) error
- func (s *CollectionService) ExportCollection(collectionID string) (*models.Collection, error)
- func (s *CollectionService) GetCollections() ([]models.Collection, error)
- func (s *CollectionService) UpdateCollection(id string, collectionData []byte) (*models.Collection, error)
- type EnvironmentService
- func (s *EnvironmentService) CreateEnvironment(env *domain.Environment) error
- func (s *EnvironmentService) DeleteEnvironment(id string) error
- func (s *EnvironmentService) GetEnvironments() ([]domain.Environment, error)
- func (s *EnvironmentService) UpdateEnvironment(id string, updatedEnvironment *domain.Environment) error
- type RequestService
- func (s *RequestService) ExecuteRequests(requestDataList []map[string]interface{}, envID string) ([]domain.RequestResult, error)
- func (s *RequestService) PostprocessRequest(req domain.Request, resp domain.Response, env *domain.Environment)
- func (s *RequestService) PreprocessRequest(req domain.Request, env *domain.Environment)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionService ¶
func NewCollectionService ¶
func NewCollectionService(defaultPath string, logger *logrus.Logger) *CollectionService
func (*CollectionService) AddFolderToCollection ¶
func (s *CollectionService) AddFolderToCollection(collectionID string, folderName string, parentPath []string) error
func (*CollectionService) AddRequestToCollection ¶
func (*CollectionService) CreateCollection ¶
func (s *CollectionService) CreateCollection(collectionData []byte) (*models.Collection, error)
func (*CollectionService) DeleteCollection ¶
func (s *CollectionService) DeleteCollection(id string) error
func (*CollectionService) DeleteFolderFromCollection ¶
func (s *CollectionService) DeleteFolderFromCollection(collectionID string, folderPath []string) error
func (*CollectionService) DeleteRequestFromCollection ¶
func (s *CollectionService) DeleteRequestFromCollection(collectionID string, requestID string) error
func (*CollectionService) ExportCollection ¶
func (s *CollectionService) ExportCollection(collectionID string) (*models.Collection, error)
func (*CollectionService) GetCollections ¶
func (s *CollectionService) GetCollections() ([]models.Collection, error)
func (*CollectionService) UpdateCollection ¶
func (s *CollectionService) UpdateCollection(id string, collectionData []byte) (*models.Collection, error)
type EnvironmentService ¶
func NewEnvironmentService ¶
func NewEnvironmentService(defaultPath string, logger *logrus.Logger) *EnvironmentService
func (*EnvironmentService) CreateEnvironment ¶
func (s *EnvironmentService) CreateEnvironment(env *domain.Environment) error
func (*EnvironmentService) DeleteEnvironment ¶
func (s *EnvironmentService) DeleteEnvironment(id string) error
func (*EnvironmentService) GetEnvironments ¶
func (s *EnvironmentService) GetEnvironments() ([]domain.Environment, error)
func (*EnvironmentService) UpdateEnvironment ¶
func (s *EnvironmentService) UpdateEnvironment(id string, updatedEnvironment *domain.Environment) error
type RequestService ¶
type RequestService struct { Logger *logrus.Logger HistoryManager *models.History EnvironmentPath string }
func NewRequestService ¶
func (*RequestService) ExecuteRequests ¶
func (s *RequestService) ExecuteRequests(requestDataList []map[string]interface{}, envID string) ([]domain.RequestResult, error)
func (*RequestService) PostprocessRequest ¶
func (s *RequestService) PostprocessRequest(req domain.Request, resp domain.Response, env *domain.Environment)
func (*RequestService) PreprocessRequest ¶
func (s *RequestService) PreprocessRequest(req domain.Request, env *domain.Environment)
Click to show internal directories.
Click to hide internal directories.