Documentation
¶
Index ¶
- type BrowserOpener
- type BrowserOpenerFunc
- type DefaultFactory
- type DefaultInstance
- func (i *DefaultInstance) BrowserOpener() BrowserOpener
- func (i *DefaultInstance) ContextID() string
- func (i *DefaultInstance) ExecuteSingleRequest(ctx context.Context) error
- func (i *DefaultInstance) Executor() Executor
- func (i *DefaultInstance) HandleResponse(ctx context.Context, response *executor.ExecuteResponse) error
- func (i *DefaultInstance) ImageReader() ImageReader
- func (i *DefaultInstance) KeyPressed(ctx context.Context) error
- func (i *DefaultInstance) SDK() SDK
- func (i *DefaultInstance) SetConfig(payload *fastjson.Value) error
- func (i *DefaultInstance) ShowAlert()
- func (i *DefaultInstance) ShowOk()
- func (i *DefaultInstance) StartAsync(parent context.Context)
- func (i *DefaultInstance) Stop()
- type Executor
- type Factory
- type ImageReader
- type ImageReaderFunc
- type Instance
- type Manager
- func (m *Manager) InitInstance(ctxId string) (Instance, error)
- func (m *Manager) KeyPressed(ctx context.Context, ctxId string) error
- func (m *Manager) SetInstanceConfig(ctxId string, payload *fastjson.Value) error
- func (m *Manager) StartAsync(ctx context.Context, ctxId string) error
- func (m *Manager) Stop(ctxId string) error
- type SDK
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrowserOpener ¶
type BrowserOpenerFunc ¶
func (BrowserOpenerFunc) Open ¶
func (f BrowserOpenerFunc) Open(url string) error
type DefaultFactory ¶
type DefaultFactory struct {
// contains filtered or unexported fields
}
func NewDefaultFactory ¶
func NewDefaultFactory( sdk SDK, executor Executor, browserOpener BrowserOpener, imageReader ImageReader, ) *DefaultFactory
func (*DefaultFactory) Create ¶
func (f *DefaultFactory) Create(ctxID string) Instance
type DefaultInstance ¶
type DefaultInstance struct {
// contains filtered or unexported fields
}
func NewInstance ¶
func NewInstance( ctxID string, executor Executor, sdk SDK, browserOpener BrowserOpener, imageReader ImageReader, ) *DefaultInstance
func (*DefaultInstance) BrowserOpener ¶
func (i *DefaultInstance) BrowserOpener() BrowserOpener
func (*DefaultInstance) ContextID ¶
func (i *DefaultInstance) ContextID() string
func (*DefaultInstance) ExecuteSingleRequest ¶
func (i *DefaultInstance) ExecuteSingleRequest( ctx context.Context, ) error
func (*DefaultInstance) Executor ¶
func (i *DefaultInstance) Executor() Executor
func (*DefaultInstance) HandleResponse ¶
func (i *DefaultInstance) HandleResponse( ctx context.Context, response *executor.ExecuteResponse, ) error
func (*DefaultInstance) ImageReader ¶
func (i *DefaultInstance) ImageReader() ImageReader
func (*DefaultInstance) KeyPressed ¶
func (i *DefaultInstance) KeyPressed(ctx context.Context) error
func (*DefaultInstance) SDK ¶
func (i *DefaultInstance) SDK() SDK
func (*DefaultInstance) SetConfig ¶
func (i *DefaultInstance) SetConfig(payload *fastjson.Value) error
func (*DefaultInstance) ShowAlert ¶
func (i *DefaultInstance) ShowAlert()
func (*DefaultInstance) ShowOk ¶
func (i *DefaultInstance) ShowOk()
func (*DefaultInstance) StartAsync ¶
func (i *DefaultInstance) StartAsync(parent context.Context)
func (*DefaultInstance) Stop ¶
func (i *DefaultInstance) Stop()
type Executor ¶
type Executor interface {
Execute(
ctx context.Context,
executeReq executor.ExecuteRequest,
) (*executor.ExecuteResponse, error)
ExecuteAction(
ctx context.Context,
executeReq executor.ExecuteActionRequest,
) (*executor.ExecuteActionResponse, error)
}
type ImageReader ¶
type ImageReaderFunc ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) SetInstanceConfig ¶
Click to show internal directories.
Click to hide internal directories.