tracegen

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Code generated by tracegen. DO NOT EDIT. Source: example.go

Index

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) A

func (_d *TracedExample) A(ctx context.Context, id int64, text string) (bool, error)

func (*TracedExample) B

func (_d *TracedExample) B(ctx context.Context, foo *foo.Foo) foobar.Bar

func (*TracedExample) C

func (_d *TracedExample) C(ctx context.Context, foo *foo.Foo) error

func (*TracedExample) D

func (_d *TracedExample) D(ctx context.Context)

func (*TracedExample) E

func (_d *TracedExample) E(ctx context.Context, bar []foobar.Bar) []foobar.Bar

func (*TracedExample) F

func (_d *TracedExample) F(ctx context.Context, bars []*foobar.Bar) []*foobar.Bar

func (*TracedExample) G

func (_d *TracedExample) G(ctx context.Context, bars *[]*foobar.Bar) *[]*foobar.Bar

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL