-
Notifications
You must be signed in to change notification settings - Fork 222
/
Copy pathevaluation.sdk.gen.go
37 lines (31 loc) · 1.07 KB
/
evaluation.sdk.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Code generated by protoc-gen-go-flipt-sdk. DO NOT EDIT.
package sdk
import (
context "context"
evaluation "go.flipt.io/flipt/rpc/flipt/evaluation"
)
type Evaluation struct {
transport evaluation.EvaluationServiceClient
authenticationProvider ClientAuthenticationProvider
}
func (x *Evaluation) Boolean(ctx context.Context, v *evaluation.EvaluationRequest) (*evaluation.BooleanEvaluationResponse, error) {
ctx, err := authenticate(ctx, x.authenticationProvider)
if err != nil {
return nil, err
}
return x.transport.Boolean(ctx, v)
}
func (x *Evaluation) Variant(ctx context.Context, v *evaluation.EvaluationRequest) (*evaluation.VariantEvaluationResponse, error) {
ctx, err := authenticate(ctx, x.authenticationProvider)
if err != nil {
return nil, err
}
return x.transport.Variant(ctx, v)
}
func (x *Evaluation) Batch(ctx context.Context, v *evaluation.BatchEvaluationRequest) (*evaluation.BatchEvaluationResponse, error) {
ctx, err := authenticate(ctx, x.authenticationProvider)
if err != nil {
return nil, err
}
return x.transport.Batch(ctx, v)
}