Documentation
¶
Index ¶
- type Form
- type Header
- type Module
- func (m *Module) AddHeader(projectID, formID string) (*Project, error)
- func (m *Module) BeautifyRequest(projectID, formID string) (*Project, error)
- func (m *Module) CreateNewForm(projectID string) (*Project, error)
- func (m *Module) CreateNewProject(projectID string) (*Project, error)
- func (m *Module) DeleteHeader(projectID, formID, headerID string) (*Project, error)
- func (m *Module) DeleteProject(projectID string) error
- func (m *Module) OpenFilePath(projectID string) (*Project, error)
- func (m *Module) Project(projectID string) (*Project, error)
- func (m *Module) RemoveForm(projectID, formID string) (*Project, error)
- func (m *Module) SaveAddress(projectID, formID, address string) (*Project, error)
- func (m *Module) SaveCurrentFormID(projectID, currentFormID string) (*Project, error)
- func (m *Module) SaveHeaders(projectID, formID string, headers []*Header) (*Project, error)
- func (m *Module) SaveIsMultiplexed(projectID, formID string, isMultiplexed bool) (*Project, error)
- func (m *Module) SaveRequestPayload(projectID, formID, requestPayload string) (*Project, error)
- func (m *Module) SaveSplitterWidth(projectID string, splitterWidth float64) (*Project, error)
- func (m *Module) SelectFunction(projectID, formID, functionID string) (*Project, error)
- func (m *Module) SendRequest(projectID, formID string, address, payload string) (*Project, error)
- func (m *Module) StopRequest(projectID, formID string) (*Project, error)
- type Project
- func (p *Project) AddHeader(formID string) error
- func (p *Project) BeautifyRequest(formID string) error
- func (p *Project) Close() error
- func (p *Project) CreateNewForm() error
- func (p *Project) DeleteHeader(formID, headerID string) error
- func (p *Project) GenerateServiceTreeNodes(filePath string) ([]*ServiceTreeNode, error)
- func (p *Project) OpenFilePath(filePath string) error
- func (p *Project) RemoveForm(formID string) error
- func (p *Project) SaveAddress(formID, address string) error
- func (p *Project) SaveCurrentFormID(currentFormID string) error
- func (p *Project) SaveHeaders(formID string, headers []*Header) error
- func (p *Project) SaveIsMultiplexed(formID string, isMultiplexed bool) error
- func (p *Project) SaveRequestPayload(formID, requestPayload string) error
- func (p *Project) SaveSplitterWidth(splitterWidth float64) error
- func (p *Project) SelectFunction(formID, functionID string) error
- func (p *Project) SendRequest(formID, address, payload string) error
- func (p *Project) StopRequest(formID string)
- type ServiceTree
- type ServiceTreeFunction
- type ServiceTreeNode
- type ServiceTreeService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Form ¶
type Form struct {
ID string `json:"id"`
Address string `json:"address"`
Headers []*Header `json:"headers"`
SelectedFunctionID string `json:"selectedFunctionID"`
IsMultiplexed bool `json:"isMultiplexed"`
Request string `json:"request"`
Response string `json:"response"`
// contains filtered or unexported fields
}
func (*Form) SendRequest ¶
func (f *Form) SendRequest( functionID, address, payload string, isMultiplexed bool, headers []*Header, ) (string, error)
nolint: funlen
func (*Form) StopCurrentRequest ¶
func (f *Form) StopCurrentRequest()
type Module ¶
func (*Module) BeautifyRequest ¶
func (*Module) CreateNewProject ¶
func (*Module) DeleteHeader ¶
func (*Module) DeleteProject ¶
func (*Module) SaveAddress ¶
func (*Module) SaveCurrentFormID ¶
func (*Module) SaveHeaders ¶
func (*Module) SaveIsMultiplexed ¶
func (*Module) SaveRequestPayload ¶
func (*Module) SaveSplitterWidth ¶
func (*Module) SelectFunction ¶
func (*Module) SendRequest ¶
type Project ¶
type Project struct {
ID string `json:"id"`
SplitterWidth float64 `json:"splitterWidth"`
Forms map[string]*Form `json:"forms"`
FormIDs []string `json:"formIDs"`
CurrentFormID string `json:"currentFormID"`
FilePath string `json:"filePath"`
Nodes []*ServiceTreeNode `json:"nodes"`
// contains filtered or unexported fields
}
func (*Project) BeautifyRequest ¶
func (*Project) CreateNewForm ¶
func (*Project) DeleteHeader ¶
func (*Project) GenerateServiceTreeNodes ¶
func (p *Project) GenerateServiceTreeNodes(filePath string) ([]*ServiceTreeNode, error)
func (*Project) OpenFilePath ¶
func (*Project) RemoveForm ¶
func (*Project) SaveAddress ¶
func (*Project) SaveCurrentFormID ¶
func (*Project) SaveIsMultiplexed ¶
func (*Project) SaveRequestPayload ¶
func (*Project) SaveSplitterWidth ¶
func (*Project) SelectFunction ¶
func (*Project) SendRequest ¶
func (*Project) StopRequest ¶
type ServiceTree ¶
type ServiceTree struct {
// contains filtered or unexported fields
}
func NewServiceTree ¶
func NewServiceTree(module *compile.Module) (*ServiceTree, error)
func (*ServiceTree) Function ¶
func (t *ServiceTree) Function(id string) *ServiceTreeFunction
func (*ServiceTree) Nodes ¶
func (t *ServiceTree) Nodes() []*ServiceTreeNode
type ServiceTreeFunction ¶
type ServiceTreeFunction struct {
// contains filtered or unexported fields
}
func (*ServiceTreeFunction) ServiceName ¶
func (f *ServiceTreeFunction) ServiceName() string
func (*ServiceTreeFunction) Spec ¶
func (f *ServiceTreeFunction) Spec() *compile.FunctionSpec
type ServiceTreeNode ¶
type ServiceTreeNode struct {
ID string `json:"id"`
Label string `json:"label"`
Selectable bool `json:"selectable"`
Children []*ServiceTreeNode `json:"children"`
}
type ServiceTreeService ¶
type ServiceTreeService struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.