generate plugin clients via template
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
6c2626b90e
commit
f666eef0d4
5 changed files with 553 additions and 0 deletions
35
plugins/pluginrpc-gen/fixtures/foo.go
Normal file
35
plugins/pluginrpc-gen/fixtures/foo.go
Normal file
|
@ -0,0 +1,35 @@
|
|||
package foo
|
||||
|
||||
type wobble struct {
|
||||
Some string
|
||||
Val string
|
||||
Inception *wobble
|
||||
}
|
||||
|
||||
type Fooer interface{}
|
||||
|
||||
type Fooer2 interface {
|
||||
Foo()
|
||||
}
|
||||
|
||||
type Fooer3 interface {
|
||||
Foo()
|
||||
Bar(a string)
|
||||
Baz(a string) (err error)
|
||||
Qux(a, b string) (val string, err error)
|
||||
Wobble() (w *wobble)
|
||||
Wiggle() (w wobble)
|
||||
}
|
||||
|
||||
type Fooer4 interface {
|
||||
Foo() error
|
||||
}
|
||||
|
||||
type Bar interface {
|
||||
Boo(a string, b string) (s string, err error)
|
||||
}
|
||||
|
||||
type Fooer5 interface {
|
||||
Foo()
|
||||
Bar
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue