// Code generated by protoc-gen-go-flipt-sdk. DO NOT EDIT.

package sdk

import (
	context "context"
	meta "go.flipt.io/flipt/rpc/flipt/meta"
	httpbody "google.golang.org/genproto/googleapis/api/httpbody"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
)

type Meta struct {
	transport              meta.MetadataServiceClient
	authenticationProvider ClientAuthenticationProvider
}

func (x *Meta) GetConfiguration(ctx context.Context) (*httpbody.HttpBody, error) {
	ctx, err := authenticate(ctx, x.authenticationProvider)
	if err != nil {
		return nil, err
	}
	return x.transport.GetConfiguration(ctx, &emptypb.Empty{})
}

func (x *Meta) GetInfo(ctx context.Context) (*httpbody.HttpBody, error) {
	ctx, err := authenticate(ctx, x.authenticationProvider)
	if err != nil {
		return nil, err
	}
	return x.transport.GetInfo(ctx, &emptypb.Empty{})
}
