Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / mvdan.cc / gofumpt@v0.0.0-20200802201014-ab5a8192947d / gofumports / internal / telemetry / event / label.go
1 // Copyright 2019 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package event
6
7 import (
8         "context"
9 )
10
11 // Label sends a label event to the exporter with the supplied tags.
12 func Label(ctx context.Context, tags ...Tag) context.Context {
13         return dispatch(ctx, makeEvent(LabelType, sTags{}, tags))
14 }
15
16 // Label1 sends a label event to the exporter with the supplied tags.
17 func Label1(ctx context.Context, t1 Tag) context.Context {
18         return dispatch(ctx, makeEvent(LabelType, sTags{t1}, nil))
19 }
20
21 // Label2 sends a label event to the exporter with the supplied tags.
22 func Label2(ctx context.Context, t1, t2 Tag) context.Context {
23         return dispatch(ctx, makeEvent(LabelType, sTags{t1, t2}, nil))
24 }
25
26 // Label3 sends a label event to the exporter with the supplied tags.
27 func Label3(ctx context.Context, t1, t2, t3 Tag) context.Context {
28         return dispatch(ctx, makeEvent(LabelType, sTags{t1, t2, t3}, nil))
29 }