diff --git a/sdk/go/data.sdk.gen.go b/sdk/go/data.sdk.gen.go deleted file mode 100644 index 81c68d3966..0000000000 --- a/sdk/go/data.sdk.gen.go +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by protoc-gen-go-flipt-sdk. DO NOT EDIT. - -package sdk - -import ( - context "context" - data "go.flipt.io/flipt/rpc/flipt/data" -) - -type Data struct { - transport data.DataServiceClient - tokenProvider ClientTokenProvider -} - -func (x *Data) EvaluationSnapshotNamespace(ctx context.Context, v *data.EvaluationNamespaceSnapshotRequest) (*data.EvaluationNamespaceSnapshot, error) { - ctx, err := authenticate(ctx, x.tokenProvider) - if err != nil { - return nil, err - } - return x.transport.EvaluationSnapshotNamespace(ctx, v) -} diff --git a/sdk/go/http/data.sdk.gen.go b/sdk/go/http/data.sdk.gen.go deleted file mode 100644 index 57efda9d31..0000000000 --- a/sdk/go/http/data.sdk.gen.go +++ /dev/null @@ -1,50 +0,0 @@ -// Code generated by protoc-gen-go-flipt-sdk. DO NOT EDIT. - -package http - -import ( - context "context" - fmt "fmt" - data "go.flipt.io/flipt/rpc/flipt/data" - grpc "google.golang.org/grpc" - protojson "google.golang.org/protobuf/encoding/protojson" - io "io" - http "net/http" - url "net/url" -) - -type DataServiceClient struct { - client *http.Client - addr string -} - -func (x *DataServiceClient) EvaluationSnapshotNamespace(ctx context.Context, v *data.EvaluationNamespaceSnapshotRequest, _ ...grpc.CallOption) (*data.EvaluationNamespaceSnapshot, error) { - var body io.Reader - var values url.Values - req, err := http.NewRequestWithContext(ctx, http.MethodGet, x.addr+fmt.Sprintf("/internal/v1/evaluation/snapshot/namespace/%v", v.Key), body) - if err != nil { - return nil, err - } - req.URL.RawQuery = values.Encode() - resp, err := x.client.Do(req) - if err != nil { - return nil, err - } - defer resp.Body.Close() - var output data.EvaluationNamespaceSnapshot - respData, err := io.ReadAll(resp.Body) - if err != nil { - return nil, err - } - if err := checkResponse(resp, respData); err != nil { - return nil, err - } - if err := (protojson.UnmarshalOptions{DiscardUnknown: true}).Unmarshal(respData, &output); err != nil { - return nil, err - } - return &output, nil -} - -func (t Transport) DataClient() data.DataServiceClient { - return &DataServiceClient{client: t.client, addr: t.addr} -}