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) DeleteAllProtoFiles(projectID string) (*Project, error)
- func (m *Module) DeleteHeader(projectID, formID, headerID string) (*Project, error)
- func (m *Module) DeleteProject(projectID string) error
- func (m *Module) OpenImportPath(projectID string) (*Project, error)
- func (m *Module) OpenProtoFile(projectID string) (*Project, error)
- func (m *Module) Project(projectID string) (*Project, error)
- func (m *Module) ReflectProto(projectID, formID, address string) (*Project, error)
- func (m *Module) RemoveForm(projectID, formID string) (*Project, error)
- func (m *Module) RemoveImportPath(projectID, importPath 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) SaveRequestPayload(projectID, formID, requestPayload string) (*Project, error)
- func (m *Module) SaveSplitterWidth(projectID string, splitterWidth float64) (*Project, error)
- func (m *Module) SelectMethod(projectID, formID, methodID 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) DeleteAllProtoFiles() error
- func (p *Project) DeleteHeader(formID, headerID string) error
- func (p *Project) IsProtoDescriptorSourceInitialized() bool
- func (p *Project) OpenImportPath(importPath string) error
- func (p *Project) OpenProtoFile(protoFilePath string) error
- func (p *Project) ReflectProto(formID, address string) error
- func (p *Project) RefreshProtoDescriptors(importPathList, protoFileList []string) ([]*ProtoTreeNode, error)
- func (p *Project) RemoveForm(formID string) error
- func (p *Project) RemoveImportPath(importPath 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) SaveRequestPayload(formID, requestPayload string) error
- func (p *Project) SaveSplitterWidth(splitterWidth float64) error
- func (p *Project) SelectMethod(methodID, formID string) error
- func (p *Project) SendRequest(formID, address, payload string) error
- func (p *Project) StopRequest(id string)
- type ProtoTree
- type ProtoTreeFile
- type ProtoTreeMethod
- type ProtoTreeNode
- type ProtoTreeService
- type ResponseJSON
- type ResponseJSONError
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"` SelectedMethodID string `json:"selectedMethodID"` Request string `json:"request"` Response string `json:"response"` // contains filtered or unexported fields }
func (*Form) ReflectProto ¶
nolint: ireturn
func (*Form) SendRequest ¶
func (*Form) StopCurrentRequest ¶
func (f *Form) StopCurrentRequest()
type Module ¶
func (*Module) BeautifyRequest ¶
func (*Module) CreateNewProject ¶
func (*Module) DeleteAllProtoFiles ¶
func (*Module) DeleteHeader ¶
func (*Module) DeleteProject ¶
func (*Module) ReflectProto ¶
func (*Module) RemoveImportPath ¶
func (*Module) SaveAddress ¶
func (*Module) SaveCurrentFormID ¶
func (*Module) SaveHeaders ¶
func (*Module) SaveRequestPayload ¶
func (*Module) SaveSplitterWidth ¶
func (*Module) SelectMethod ¶
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"` IsReflected bool `json:"isReflected"` ImportPathList []string `json:"importPathList"` ProtoFileList []string `json:"protoFileList"` Nodes []*ProtoTreeNode `json:"nodes"` // contains filtered or unexported fields }
func (*Project) BeautifyRequest ¶
func (*Project) CreateNewForm ¶
func (*Project) DeleteAllProtoFiles ¶
func (*Project) DeleteHeader ¶
func (*Project) IsProtoDescriptorSourceInitialized ¶
func (*Project) OpenImportPath ¶
func (*Project) OpenProtoFile ¶
func (*Project) ReflectProto ¶
func (*Project) RefreshProtoDescriptors ¶
func (p *Project) RefreshProtoDescriptors(importPathList, protoFileList []string) ([]*ProtoTreeNode, error)
func (*Project) RemoveForm ¶
func (*Project) RemoveImportPath ¶
func (*Project) SaveAddress ¶
func (*Project) SaveCurrentFormID ¶
func (*Project) SaveRequestPayload ¶
func (*Project) SaveSplitterWidth ¶
func (*Project) SelectMethod ¶
func (*Project) SendRequest ¶
func (*Project) StopRequest ¶
type ProtoTree ¶
type ProtoTree struct {
// contains filtered or unexported fields
}
func NewProtoTree ¶
func NewProtoTree(protoDescriptorSource grpcurl.DescriptorSource) (*ProtoTree, error)
func (*ProtoTree) AddFile ¶
func (t *ProtoTree) AddFile(fileID, name string) *ProtoTreeFile
func (*ProtoTree) Method ¶
func (t *ProtoTree) Method(id string) *ProtoTreeMethod
func (*ProtoTree) Nodes ¶
func (t *ProtoTree) Nodes() []*ProtoTreeNode
type ProtoTreeFile ¶
type ProtoTreeFile struct {
// contains filtered or unexported fields
}
type ProtoTreeMethod ¶
type ProtoTreeMethod struct {
// contains filtered or unexported fields
}
func (*ProtoTreeMethod) Descriptor ¶
func (m *ProtoTreeMethod) Descriptor() *desc.MethodDescriptor
type ProtoTreeNode ¶
type ProtoTreeNode struct { ID string `json:"id"` Label string `json:"label"` Selectable bool `json:"selectable"` Children []*ProtoTreeNode `json:"children"` }
type ProtoTreeService ¶
type ProtoTreeService struct {
// contains filtered or unexported fields
}
type ResponseJSON ¶
type ResponseJSON struct {
Error *ResponseJSONError `json:"error"`
}
type ResponseJSONError ¶
Click to show internal directories.
Click to hide internal directories.