services

package
v0.0.0-...-ad347d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionService

type CollectionService struct {
	DefaultPath string
	Logger      *logrus.Logger
}

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 (s *CollectionService) AddRequestToCollection(collectionID string, requestData []byte) (domain.Request, error)

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

type EnvironmentService struct {
	DefaultPath string
	Logger      *logrus.Logger
}

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 NewRequestService(logger *logrus.Logger, historyManager *models.History, environmentPath string) *RequestService

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL