Documentation
¶
Index ¶
- Variables
- func RegisterFeatureFlagsServiceServer(s grpc.ServiceRegistrar, srv FeatureFlagsServiceServer)
- type FeatureFlag
- func (m *FeatureFlag) CloneMessageVT() proto.Message
- func (m *FeatureFlag) CloneVT() *FeatureFlag
- func (*FeatureFlag) Descriptor() ([]byte, []int)deprecated
- func (this *FeatureFlag) EqualMessageVT(thatMsg proto.Message) bool
- func (this *FeatureFlag) EqualVT(that *FeatureFlag) bool
- func (x *FeatureFlag) GetDescription() string
- func (x *FeatureFlag) GetDocumentationUrl() string
- func (x *FeatureFlag) GetEnabled() bool
- func (x *FeatureFlag) GetName() string
- func (m *FeatureFlag) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *FeatureFlag) MarshalToVT(dAtA []byte) (int, error)
- func (m *FeatureFlag) MarshalVT() (dAtA []byte, err error)
- func (*FeatureFlag) ProtoMessage()
- func (x *FeatureFlag) ProtoReflect() protoreflect.Message
- func (x *FeatureFlag) Reset()
- func (m *FeatureFlag) SizeVT() (n int)
- func (x *FeatureFlag) String() string
- func (m *FeatureFlag) UnmarshalVT(dAtA []byte) error
- type FeatureFlagsServiceClient
- type FeatureFlagsServiceServer
- type GetFeatureFlagsRequest
- func (m *GetFeatureFlagsRequest) CloneMessageVT() proto.Message
- func (m *GetFeatureFlagsRequest) CloneVT() *GetFeatureFlagsRequest
- func (*GetFeatureFlagsRequest) Descriptor() ([]byte, []int)deprecated
- func (this *GetFeatureFlagsRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *GetFeatureFlagsRequest) EqualVT(that *GetFeatureFlagsRequest) bool
- func (m *GetFeatureFlagsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetFeatureFlagsRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetFeatureFlagsRequest) MarshalVT() (dAtA []byte, err error)
- func (*GetFeatureFlagsRequest) ProtoMessage()
- func (x *GetFeatureFlagsRequest) ProtoReflect() protoreflect.Message
- func (x *GetFeatureFlagsRequest) Reset()
- func (m *GetFeatureFlagsRequest) SizeVT() (n int)
- func (x *GetFeatureFlagsRequest) String() string
- func (m *GetFeatureFlagsRequest) UnmarshalVT(dAtA []byte) error
- type GetFeatureFlagsResponse
- func (m *GetFeatureFlagsResponse) CloneMessageVT() proto.Message
- func (m *GetFeatureFlagsResponse) CloneVT() *GetFeatureFlagsResponse
- func (*GetFeatureFlagsResponse) Descriptor() ([]byte, []int)deprecated
- func (this *GetFeatureFlagsResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *GetFeatureFlagsResponse) EqualVT(that *GetFeatureFlagsResponse) bool
- func (x *GetFeatureFlagsResponse) GetFeatureFlags() []*FeatureFlag
- func (m *GetFeatureFlagsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetFeatureFlagsResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetFeatureFlagsResponse) MarshalVT() (dAtA []byte, err error)
- func (*GetFeatureFlagsResponse) ProtoMessage()
- func (x *GetFeatureFlagsResponse) ProtoReflect() protoreflect.Message
- func (x *GetFeatureFlagsResponse) Reset()
- func (m *GetFeatureFlagsResponse) SizeVT() (n int)
- func (x *GetFeatureFlagsResponse) String() string
- func (m *GetFeatureFlagsResponse) UnmarshalVT(dAtA []byte) error
- type UnimplementedFeatureFlagsServiceServer
- type UnsafeFeatureFlagsServiceServer
Constants ¶
This section is empty.
Variables ¶
var FeatureFlagsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "capabilities.v1.FeatureFlagsService", HandlerType: (*FeatureFlagsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetFeatureFlags", Handler: _FeatureFlagsService_GetFeatureFlags_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "capabilities/v1/feature_flags.proto", }
FeatureFlagsService_ServiceDesc is the grpc.ServiceDesc for FeatureFlagsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_capabilities_v1_feature_flags_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFeatureFlagsServiceServer ¶
func RegisterFeatureFlagsServiceServer(s grpc.ServiceRegistrar, srv FeatureFlagsServiceServer)
Types ¶
type FeatureFlag ¶
type FeatureFlag struct {
// Name of the feature, please use lower camel case.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Wether the feature flag is enabled or disabled.
Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
// Optional description of the feature flag.
Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"`
// Optional URL to the documentation page of the feature flag.
DocumentationUrl *string `protobuf:"bytes,4,opt,name=documentation_url,json=documentationUrl,proto3,oneof" json:"documentation_url,omitempty"`
// contains filtered or unexported fields
}
FeatureParameters contains the per feature flag parameters.
func (*FeatureFlag) CloneMessageVT ¶
func (m *FeatureFlag) CloneMessageVT() proto.Message
func (*FeatureFlag) CloneVT ¶
func (m *FeatureFlag) CloneVT() *FeatureFlag
func (*FeatureFlag) Descriptor
deprecated
func (*FeatureFlag) Descriptor() ([]byte, []int)
Deprecated: Use FeatureFlag.ProtoReflect.Descriptor instead.
func (*FeatureFlag) EqualMessageVT ¶
func (this *FeatureFlag) EqualMessageVT(thatMsg proto.Message) bool
func (*FeatureFlag) EqualVT ¶
func (this *FeatureFlag) EqualVT(that *FeatureFlag) bool
func (*FeatureFlag) GetDescription ¶
func (x *FeatureFlag) GetDescription() string
func (*FeatureFlag) GetDocumentationUrl ¶
func (x *FeatureFlag) GetDocumentationUrl() string
func (*FeatureFlag) GetEnabled ¶
func (x *FeatureFlag) GetEnabled() bool
func (*FeatureFlag) GetName ¶
func (x *FeatureFlag) GetName() string
func (*FeatureFlag) MarshalToSizedBufferVT ¶
func (m *FeatureFlag) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*FeatureFlag) MarshalToVT ¶
func (m *FeatureFlag) MarshalToVT(dAtA []byte) (int, error)
func (*FeatureFlag) MarshalVT ¶
func (m *FeatureFlag) MarshalVT() (dAtA []byte, err error)
func (*FeatureFlag) ProtoMessage ¶
func (*FeatureFlag) ProtoMessage()
func (*FeatureFlag) ProtoReflect ¶
func (x *FeatureFlag) ProtoReflect() protoreflect.Message
func (*FeatureFlag) Reset ¶
func (x *FeatureFlag) Reset()
func (*FeatureFlag) SizeVT ¶
func (m *FeatureFlag) SizeVT() (n int)
func (*FeatureFlag) String ¶
func (x *FeatureFlag) String() string
func (*FeatureFlag) UnmarshalVT ¶
func (m *FeatureFlag) UnmarshalVT(dAtA []byte) error
type FeatureFlagsServiceClient ¶
type FeatureFlagsServiceClient interface {
// Retrieve feature flags that are enabled for a particular tenant
GetFeatureFlags(ctx context.Context, in *GetFeatureFlagsRequest, opts ...grpc.CallOption) (*GetFeatureFlagsResponse, error)
}
FeatureFlagsServiceClient is the client API for FeatureFlagsService 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.
func NewFeatureFlagsServiceClient ¶
func NewFeatureFlagsServiceClient(cc grpc.ClientConnInterface) FeatureFlagsServiceClient
type FeatureFlagsServiceServer ¶
type FeatureFlagsServiceServer interface {
// Retrieve feature flags that are enabled for a particular tenant
GetFeatureFlags(context.Context, *GetFeatureFlagsRequest) (*GetFeatureFlagsResponse, error)
// contains filtered or unexported methods
}
FeatureFlagsServiceServer is the server API for FeatureFlagsService service. All implementations must embed UnimplementedFeatureFlagsServiceServer for forward compatibility
type GetFeatureFlagsRequest ¶
type GetFeatureFlagsRequest struct {
// contains filtered or unexported fields
}
func (*GetFeatureFlagsRequest) CloneMessageVT ¶
func (m *GetFeatureFlagsRequest) CloneMessageVT() proto.Message
func (*GetFeatureFlagsRequest) CloneVT ¶
func (m *GetFeatureFlagsRequest) CloneVT() *GetFeatureFlagsRequest
func (*GetFeatureFlagsRequest) Descriptor
deprecated
func (*GetFeatureFlagsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFeatureFlagsRequest.ProtoReflect.Descriptor instead.
func (*GetFeatureFlagsRequest) EqualMessageVT ¶
func (this *GetFeatureFlagsRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*GetFeatureFlagsRequest) EqualVT ¶
func (this *GetFeatureFlagsRequest) EqualVT(that *GetFeatureFlagsRequest) bool
func (*GetFeatureFlagsRequest) MarshalToSizedBufferVT ¶
func (m *GetFeatureFlagsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetFeatureFlagsRequest) MarshalToVT ¶
func (m *GetFeatureFlagsRequest) MarshalToVT(dAtA []byte) (int, error)
func (*GetFeatureFlagsRequest) MarshalVT ¶
func (m *GetFeatureFlagsRequest) MarshalVT() (dAtA []byte, err error)
func (*GetFeatureFlagsRequest) ProtoMessage ¶
func (*GetFeatureFlagsRequest) ProtoMessage()
func (*GetFeatureFlagsRequest) ProtoReflect ¶
func (x *GetFeatureFlagsRequest) ProtoReflect() protoreflect.Message
func (*GetFeatureFlagsRequest) Reset ¶
func (x *GetFeatureFlagsRequest) Reset()
func (*GetFeatureFlagsRequest) SizeVT ¶
func (m *GetFeatureFlagsRequest) SizeVT() (n int)
func (*GetFeatureFlagsRequest) String ¶
func (x *GetFeatureFlagsRequest) String() string
func (*GetFeatureFlagsRequest) UnmarshalVT ¶
func (m *GetFeatureFlagsRequest) UnmarshalVT(dAtA []byte) error
type GetFeatureFlagsResponse ¶
type GetFeatureFlagsResponse struct {
// Map containing all features, also disable features are returned
FeatureFlags []*FeatureFlag `protobuf:"bytes,1,rep,name=feature_flags,json=featureFlags,proto3" json:"feature_flags,omitempty"`
// contains filtered or unexported fields
}
func (*GetFeatureFlagsResponse) CloneMessageVT ¶
func (m *GetFeatureFlagsResponse) CloneMessageVT() proto.Message
func (*GetFeatureFlagsResponse) CloneVT ¶
func (m *GetFeatureFlagsResponse) CloneVT() *GetFeatureFlagsResponse
func (*GetFeatureFlagsResponse) Descriptor
deprecated
func (*GetFeatureFlagsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFeatureFlagsResponse.ProtoReflect.Descriptor instead.
func (*GetFeatureFlagsResponse) EqualMessageVT ¶
func (this *GetFeatureFlagsResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*GetFeatureFlagsResponse) EqualVT ¶
func (this *GetFeatureFlagsResponse) EqualVT(that *GetFeatureFlagsResponse) bool
func (*GetFeatureFlagsResponse) GetFeatureFlags ¶
func (x *GetFeatureFlagsResponse) GetFeatureFlags() []*FeatureFlag
func (*GetFeatureFlagsResponse) MarshalToSizedBufferVT ¶
func (m *GetFeatureFlagsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetFeatureFlagsResponse) MarshalToVT ¶
func (m *GetFeatureFlagsResponse) MarshalToVT(dAtA []byte) (int, error)
func (*GetFeatureFlagsResponse) MarshalVT ¶
func (m *GetFeatureFlagsResponse) MarshalVT() (dAtA []byte, err error)
func (*GetFeatureFlagsResponse) ProtoMessage ¶
func (*GetFeatureFlagsResponse) ProtoMessage()
func (*GetFeatureFlagsResponse) ProtoReflect ¶
func (x *GetFeatureFlagsResponse) ProtoReflect() protoreflect.Message
func (*GetFeatureFlagsResponse) Reset ¶
func (x *GetFeatureFlagsResponse) Reset()
func (*GetFeatureFlagsResponse) SizeVT ¶
func (m *GetFeatureFlagsResponse) SizeVT() (n int)
func (*GetFeatureFlagsResponse) String ¶
func (x *GetFeatureFlagsResponse) String() string
func (*GetFeatureFlagsResponse) UnmarshalVT ¶
func (m *GetFeatureFlagsResponse) UnmarshalVT(dAtA []byte) error
type UnimplementedFeatureFlagsServiceServer ¶
type UnimplementedFeatureFlagsServiceServer struct {
}
UnimplementedFeatureFlagsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedFeatureFlagsServiceServer) GetFeatureFlags ¶
func (UnimplementedFeatureFlagsServiceServer) GetFeatureFlags(context.Context, *GetFeatureFlagsRequest) (*GetFeatureFlagsResponse, error)
type UnsafeFeatureFlagsServiceServer ¶
type UnsafeFeatureFlagsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFeatureFlagsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FeatureFlagsServiceServer will result in compilation errors.