analytics

package
v1.38.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 15 Imported by: 3

Documentation

Overview

Package analytics is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AnalyticsService_GetFlagEvaluationsCount_FullMethodName = "/flipt.analytics.AnalyticsService/GetFlagEvaluationsCount"
)

Variables

View Source
var AnalyticsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "flipt.analytics.AnalyticsService",
	HandlerType: (*AnalyticsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetFlagEvaluationsCount",
			Handler:    _AnalyticsService_GetFlagEvaluationsCount_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "analytics/analytics.proto",
}

AnalyticsService_ServiceDesc is the grpc.ServiceDesc for AnalyticsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_analytics_analytics_proto protoreflect.FileDescriptor

Functions

func RegisterAnalyticsServiceHandler

func RegisterAnalyticsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAnalyticsServiceHandler registers the http handlers for service AnalyticsService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAnalyticsServiceHandlerClient

func RegisterAnalyticsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AnalyticsServiceClient) error

RegisterAnalyticsServiceHandlerClient registers the http handlers for service AnalyticsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AnalyticsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AnalyticsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AnalyticsServiceClient" to call the correct interceptors.

func RegisterAnalyticsServiceHandlerFromEndpoint

func RegisterAnalyticsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAnalyticsServiceHandlerFromEndpoint is same as RegisterAnalyticsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAnalyticsServiceHandlerServer

func RegisterAnalyticsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AnalyticsServiceServer) error

RegisterAnalyticsServiceHandlerServer registers the http handlers for service AnalyticsService to "mux". UnaryRPC :call AnalyticsServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAnalyticsServiceHandlerFromEndpoint instead.

func RegisterAnalyticsServiceServer

func RegisterAnalyticsServiceServer(s grpc.ServiceRegistrar, srv AnalyticsServiceServer)

Types

type AnalyticsServiceClient

type AnalyticsServiceClient interface {
	GetFlagEvaluationsCount(ctx context.Context, in *GetFlagEvaluationsCountRequest, opts ...grpc.CallOption) (*GetFlagEvaluationsCountResponse, error)
}

AnalyticsServiceClient is the client API for AnalyticsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AnalyticsServiceServer

type AnalyticsServiceServer interface {
	GetFlagEvaluationsCount(context.Context, *GetFlagEvaluationsCountRequest) (*GetFlagEvaluationsCountResponse, error)
	// contains filtered or unexported methods
}

AnalyticsServiceServer is the server API for AnalyticsService service. All implementations must embed UnimplementedAnalyticsServiceServer for forward compatibility

type GetFlagEvaluationsCountRequest

type GetFlagEvaluationsCountRequest struct {
	NamespaceKey string `protobuf:"bytes,1,opt,name=namespace_key,json=namespaceKey,proto3" json:"namespace_key,omitempty"`
	FlagKey      string `protobuf:"bytes,2,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"`
	From         string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	To           string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFlagEvaluationsCountRequest) Descriptor deprecated

func (*GetFlagEvaluationsCountRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetFlagEvaluationsCountRequest.ProtoReflect.Descriptor instead.

func (*GetFlagEvaluationsCountRequest) GetFlagKey

func (x *GetFlagEvaluationsCountRequest) GetFlagKey() string

func (*GetFlagEvaluationsCountRequest) GetFrom

func (*GetFlagEvaluationsCountRequest) GetNamespaceKey

func (x *GetFlagEvaluationsCountRequest) GetNamespaceKey() string

func (*GetFlagEvaluationsCountRequest) GetTo

func (*GetFlagEvaluationsCountRequest) ProtoMessage

func (*GetFlagEvaluationsCountRequest) ProtoMessage()

func (*GetFlagEvaluationsCountRequest) ProtoReflect

func (*GetFlagEvaluationsCountRequest) Reset

func (x *GetFlagEvaluationsCountRequest) Reset()

func (*GetFlagEvaluationsCountRequest) String

type GetFlagEvaluationsCountResponse

type GetFlagEvaluationsCountResponse struct {
	Timestamps []string  `protobuf:"bytes,1,rep,name=timestamps,proto3" json:"timestamps,omitempty"`
	Values     []float32 `protobuf:"fixed32,2,rep,packed,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFlagEvaluationsCountResponse) Descriptor deprecated

func (*GetFlagEvaluationsCountResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetFlagEvaluationsCountResponse.ProtoReflect.Descriptor instead.

func (*GetFlagEvaluationsCountResponse) GetTimestamps

func (x *GetFlagEvaluationsCountResponse) GetTimestamps() []string

func (*GetFlagEvaluationsCountResponse) GetValues

func (x *GetFlagEvaluationsCountResponse) GetValues() []float32

func (*GetFlagEvaluationsCountResponse) ProtoMessage

func (*GetFlagEvaluationsCountResponse) ProtoMessage()

func (*GetFlagEvaluationsCountResponse) ProtoReflect

func (*GetFlagEvaluationsCountResponse) Reset

func (*GetFlagEvaluationsCountResponse) String

type UnimplementedAnalyticsServiceServer

type UnimplementedAnalyticsServiceServer struct {
}

UnimplementedAnalyticsServiceServer must be embedded to have forward compatible implementations.

type UnsafeAnalyticsServiceServer

type UnsafeAnalyticsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAnalyticsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AnalyticsServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL