Documentation
¶
Overview ¶
Code generated by tracegen. DO NOT EDIT. Source: example.go
Index ¶
- type Example
- type TracedExample
- func (_d *TracedExample) A(ctx context.Context, id int64, text string) (bool, error)
- func (_d *TracedExample) B(ctx context.Context, foo *foo.Foo) foobar.Bar
- func (_d *TracedExample) C(ctx context.Context, foo *foo.Foo) error
- func (_d *TracedExample) D(ctx context.Context)
- func (_d *TracedExample) E(ctx context.Context, bar []foobar.Bar) []foobar.Bar
- func (_d *TracedExample) F(ctx context.Context, bars []*foobar.Bar) []*foobar.Bar
- func (_d *TracedExample) G(ctx context.Context, bars *[]*foobar.Bar) *[]*foobar.Bar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Example ¶
type Example interface {
// A does something important.
// @trace Int64:id, String:text
A(ctx context.Context, id int64, text string) (bool, error)
// B does something important too.
// @trace foo, String:foo.Name
B(ctx context.Context, foo *foo.Foo) foobar.Bar
// C does something important?
// @trace String:foo.Name
C(ctx context.Context, foo *foo.Foo) error
D(ctx context.Context)
// E does something important.
// @trace bar
E(ctx context.Context, bar []foobar.Bar) []foobar.Bar
// F does something important.
// @trace bars
F(ctx context.Context, bars []*foobar.Bar) []*foobar.Bar
// G does something important.
// @trace bars
G(ctx context.Context, bars *[]*foobar.Bar) *[]*foobar.Bar
}
type TracedExample ¶
type TracedExample struct {
// contains filtered or unexported fields
}
func NewTracedExample ¶
func NewTracedExample(_base Example, _tracer trace.Tracer) *TracedExample
func (*TracedExample) D ¶
func (_d *TracedExample) D(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.