Skip to content

Commit ee6549a

Browse files
committed
Add deprecation comments #851 [no ci]
1 parent 91f0afa commit ee6549a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pkg/cli/tail.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,14 @@ const (
5656
ServiceFailed ServiceStatus = "FAILED"
5757
)
5858

59+
// Deprecated: use Subscribe instead #851
5960
type EndLogConditional struct {
6061
Service string
6162
Host string
6263
EventLog string
6364
}
6465

66+
// Deprecated: use Subscribe instead #851
6567
type TailDetectStopEventFunc func(services []string, host string, eventlog string) bool
6668

6769
type TailOptions struct {
@@ -70,12 +72,13 @@ type TailOptions struct {
7072
Etag types.ETag
7173
Since time.Time
7274
Raw bool
73-
EndEventDetectFunc TailDetectStopEventFunc
75+
EndEventDetectFunc TailDetectStopEventFunc // Deprecated: use Subscribe instead #851
7476
Verbose bool
7577
}
7678

7779
var P = track.P
7880

81+
// Deprecated: use Subscribe instead #851
7982
func CreateEndLogEventDetectFunc(conditionals []EndLogConditional) TailDetectStopEventFunc {
8083
return func(services []string, host string, eventLog string) bool {
8184
for _, conditional := range conditionals {

0 commit comments

Comments
 (0)