aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-26 18:16:01 +0800
committerobscuren <geffobscura@gmail.com>2015-02-26 19:06:01 +0800
commit49ded3aa7752148ebfbacd4e6ff5f46dc9376f89 (patch)
treeebde269fc7a836b67eb8d7a2a95a90297d8c2435 /ui
parent5ab0eaa06d2f5879b9b22778988410bd0c73dcc0 (diff)
parent9884eed0cf7c95074fd5b3d5f0f592a423810a8a (diff)
downloadgo-tangerine-49ded3aa7752148ebfbacd4e6ff5f46dc9376f89.tar
go-tangerine-49ded3aa7752148ebfbacd4e6ff5f46dc9376f89.tar.gz
go-tangerine-49ded3aa7752148ebfbacd4e6ff5f46dc9376f89.tar.bz2
go-tangerine-49ded3aa7752148ebfbacd4e6ff5f46dc9376f89.tar.lz
go-tangerine-49ded3aa7752148ebfbacd4e6ff5f46dc9376f89.tar.xz
go-tangerine-49ded3aa7752148ebfbacd4e6ff5f46dc9376f89.tar.zst
go-tangerine-49ded3aa7752148ebfbacd4e6ff5f46dc9376f89.zip
Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop
Conflicts: accounts/account_manager.go
Diffstat (limited to 'ui')
-rw-r--r--ui/frontend.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/ui/frontend.go b/ui/frontend.go
new file mode 100644
index 000000000..22dc64fdf
--- /dev/null
+++ b/ui/frontend.go
@@ -0,0 +1,18 @@
+package ui
+
+// ReturnInterface is returned by the Intercom interface when a method is called
+type ReturnInterface interface {
+ Get(i int) (interface{}, error)
+ Size() int
+}
+
+// Frontend is the basic interface for calling arbitrary methods on something that
+// implements a front end (GUI, CLI, etc)
+type Frontend interface {
+ // Checks whether a specific method is implemented
+ Supports(method string) bool
+ // Call calls the given method on interface it implements. This will return
+ // an error with errNotImplemented if the method hasn't been implemented
+ // and will return a ReturnInterface if it does.
+ Call(method string) (ReturnInterface, error)
+}