Documentation
¶
Index ¶
- type Entry
- type EntryRequest
- type EntryResponse
- type InvokeSrv
- func (srv *InvokeSrv) Get(id string) (Entry, error)
- func (srv *InvokeSrv) GetBaseUrl() string
- func (srv *InvokeSrv) Invoke(entry *Entry) error
- func (srv *InvokeSrv) List() ([]Entry, error)
- func (srv *InvokeSrv) NewEntry(method string) Entry
- func (srv *InvokeSrv) Read() (Workspace, error)
- func (srv *InvokeSrv) Save(entry Entry) error
- func (srv *InvokeSrv) Write(ws Workspace) error
- type Workspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
Id string `json:"id"`
Request EntryRequest `json:"request"`
Response EntryResponse `json:"response"`
}
type EntryRequest ¶
type EntryResponse ¶
type InvokeSrv ¶
type InvokeSrv struct {
// contains filtered or unexported fields
}
func New ¶
func New(repos repository.Repos) InvokeSrv
type Workspace ¶
type Workspace struct {
// BaseUrl string `json:"baseUrl"` // like `https://example.com`
Entries []Entry `json:"entries"`
}
Click to show internal directories.
Click to hide internal directories.