github.com/blend/go-sdk@v1.20220411.3/oauth/tracer.go (about) 1 /* 2 3 Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved 4 Use of this source code is governed by a MIT license that can be found in the LICENSE file. 5 6 */ 7 8 package oauth 9 10 import ( 11 "context" 12 13 "golang.org/x/oauth2" 14 ) 15 16 // Tracer is a trace shim. 17 type Tracer interface { 18 Start(context.Context, *oauth2.Config) TraceFinisher 19 } 20 21 // TraceFinisher is a finisher for a trace. 22 type TraceFinisher interface { 23 Finish(context.Context, *oauth2.Config, *Result, error) 24 }