Documentation ¶
Index ¶
- func WithAnotherBuildTagTrace(ctx context.Context, t AnotherBuildTagTrace) context.Context
- func WithBuildTagTrace(ctx context.Context, t BuildTagTrace) context.Context
- func WithTrace(ctx context.Context, t Trace) context.Context
- func WithTraceNoShortcut(ctx context.Context, t TraceNoShortcut) context.Context
- type AnotherBuildTagTrace
- type BuildTagTrace
- type ConditionalBuildTrace
- type Embedded
- type ReturnedTrace
- type ShortcutPerFieldTrace
- type Trace
- type TraceActionDone
- type TraceActionStart
- type TraceNoShortcut
- type TraceReturningTrace
- type TraceReturningTraceTags
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAnotherBuildTagTrace ¶
func WithAnotherBuildTagTrace(ctx context.Context, t AnotherBuildTagTrace) context.Context
WithAnotherBuildTagTrace returns context which has associated AnotherBuildTagTrace with it.
func WithBuildTagTrace ¶
func WithBuildTagTrace(ctx context.Context, t BuildTagTrace) context.Context
WithBuildTagTrace returns context which has associated BuildTagTrace with it.
func WithTraceNoShortcut ¶
func WithTraceNoShortcut(ctx context.Context, t TraceNoShortcut) context.Context
WithTraceNoShortcut returns context which has associated TraceNoShortcut with it.
Types ¶
type AnotherBuildTagTrace ¶
type AnotherBuildTagTrace struct { OnSomethingA func() func() OnSomethingB func(int8, int16) func(int32, int64) OnSomethingC func(Type) func(Type) }
func ContextAnotherBuildTagTrace ¶
func ContextAnotherBuildTagTrace(ctx context.Context) AnotherBuildTagTrace
ContextAnotherBuildTagTrace returns AnotherBuildTagTrace associated with ctx. If there is no AnotherBuildTagTrace associated with ctx then zero value of AnotherBuildTagTrace is returned.
func (AnotherBuildTagTrace) Compose ¶
func (t AnotherBuildTagTrace) Compose(x AnotherBuildTagTrace) (ret AnotherBuildTagTrace)
Compose returns a new AnotherBuildTagTrace which has functional fields composed both from t and x.
type BuildTagTrace ¶
type BuildTagTrace struct { OnSomethingA func() func() OnSomethingB func(int8, int16) func(int32, int64) OnSomethingC func(Type) func(Type) }
func ContextBuildTagTrace ¶
func ContextBuildTagTrace(ctx context.Context) BuildTagTrace
ContextBuildTagTrace returns BuildTagTrace associated with ctx. If there is no BuildTagTrace associated with ctx then zero value of BuildTagTrace is returned.
func (BuildTagTrace) Compose ¶
func (t BuildTagTrace) Compose(x BuildTagTrace) (ret BuildTagTrace)
Compose returns a new BuildTagTrace which has functional fields composed both from t and x.
type ConditionalBuildTrace ¶
type ConditionalBuildTrace struct {
OnSomething func()
}
func (ConditionalBuildTrace) Compose ¶
func (t ConditionalBuildTrace) Compose(x ConditionalBuildTrace) (ret ConditionalBuildTrace)
Compose returns a new ConditionalBuildTrace which has functional fields composed both from t and x.
type ReturnedTrace ¶
type ReturnedTrace struct { OnSomething func(a, b int) OnFoo func(_ int, _ int) OnBar func(_, _ int) OnBaz func(int, int) }
func (ReturnedTrace) Compose ¶
func (t ReturnedTrace) Compose(x ReturnedTrace) (ret ReturnedTrace)
Compose returns a new ReturnedTrace which has functional fields composed both from t and x.
type ShortcutPerFieldTrace ¶
type ShortcutPerFieldTrace struct { //gtrace:set shortcut OnFoo func() OnBar func() }
func (ShortcutPerFieldTrace) Compose ¶
func (t ShortcutPerFieldTrace) Compose(x ShortcutPerFieldTrace) (ret ShortcutPerFieldTrace)
Compose returns a new ShortcutPerFieldTrace which has functional fields composed both from t and x.
type Trace ¶
type Trace struct { OnTest func(string) func(string) OnAction func(TraceActionStart) func(TraceActionDone) OnActionPtr func(*TraceActionStart) func(*TraceActionDone) OnSomething0 func(int8) func(int16) func(int32) func(int64) OnSomething1 func(int8, int16) func(int32, int64) OnSomething2 func(Type) func(Type) func(Type) OnAnother func() OnAnother1 func(named string) // Not supported signatures: Skipped0 func() string Skipped1 func() (func(), func()) }
func ContextTrace ¶
ContextTrace returns Trace associated with ctx. If there is no Trace associated with ctx then zero value of Trace is returned.
type TraceActionDone ¶
type TraceActionDone struct {
Error error
}
type TraceActionStart ¶
type TraceNoShortcut ¶
NOTE: must compile without unused imports error.
func ContextTraceNoShortcut ¶
func ContextTraceNoShortcut(ctx context.Context) TraceNoShortcut
ContextTraceNoShortcut returns TraceNoShortcut associated with ctx. If there is no TraceNoShortcut associated with ctx then zero value of TraceNoShortcut is returned.
func (TraceNoShortcut) Compose ¶
func (t TraceNoShortcut) Compose(x TraceNoShortcut) (ret TraceNoShortcut)
Compose returns a new TraceNoShortcut which has functional fields composed both from t and x.
type TraceReturningTrace ¶
type TraceReturningTrace struct {
OnReturnedTrace func() ReturnedTrace
}
func (TraceReturningTrace) Compose ¶
func (t TraceReturningTrace) Compose(x TraceReturningTrace) (ret TraceReturningTrace)
Compose returns a new TraceReturningTrace which has functional fields composed both from t and x.
type TraceReturningTraceTags ¶
type TraceReturningTraceTags struct {
OnReturnedTrace func() ReturnedTrace
}
func (TraceReturningTraceTags) Compose ¶
func (t TraceReturningTraceTags) Compose(x TraceReturningTraceTags) (ret TraceReturningTraceTags)
Compose returns a new TraceReturningTraceTags which has functional fields composed both from t and x.
Source Files ¶
- test.go
- test_gtrace.go
- test_gtrace_linux.go
- test_imports.go
- test_imports_gtrace.go
- test_linux.go
- test_returned.go
- test_returned_gtrace.go
- test_returned_tags.go
- test_returned_tags_gtrace_stub.go
- test_shortcut.go
- test_shortcut_gtrace.go
- test_tags.go
- test_tags_dup.go
- test_tags_dup_gtrace_stub.go
- test_tags_gtrace_stub.go
- types.go