Documentation ¶
Overview ¶
Package meta is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMetadataServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMetadataServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MetadataServiceClient) error
- func RegisterMetadataServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMetadataServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MetadataServiceServer) error
- func RegisterMetadataServiceServer(s grpc.ServiceRegistrar, srv MetadataServiceServer)
- type MetadataServiceClient
- type MetadataServiceServer
- type UnimplementedMetadataServiceServer
- type UnsafeMetadataServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_meta_meta_proto protoreflect.FileDescriptor
var MetadataService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "flipt.meta.MetadataService", HandlerType: (*MetadataServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetConfiguration", Handler: _MetadataService_GetConfiguration_Handler, }, { MethodName: "GetInfo", Handler: _MetadataService_GetInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "meta/meta.proto", }
MetadataService_ServiceDesc is the grpc.ServiceDesc for MetadataService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMetadataServiceHandler ¶
func RegisterMetadataServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterMetadataServiceHandler registers the http handlers for service MetadataService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMetadataServiceHandlerClient ¶
func RegisterMetadataServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MetadataServiceClient) error
RegisterMetadataServiceHandlerClient registers the http handlers for service MetadataService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MetadataServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MetadataServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MetadataServiceClient" to call the correct interceptors.
func RegisterMetadataServiceHandlerFromEndpoint ¶
func RegisterMetadataServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMetadataServiceHandlerFromEndpoint is same as RegisterMetadataServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMetadataServiceHandlerServer ¶
func RegisterMetadataServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MetadataServiceServer) error
RegisterMetadataServiceHandlerServer registers the http handlers for service MetadataService to "mux". UnaryRPC :call MetadataServiceServer 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 RegisterMetadataServiceHandlerFromEndpoint instead.
func RegisterMetadataServiceServer ¶
func RegisterMetadataServiceServer(s grpc.ServiceRegistrar, srv MetadataServiceServer)
Types ¶
type MetadataServiceClient ¶
type MetadataServiceClient interface { GetConfiguration(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*httpbody.HttpBody, error) GetInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*httpbody.HttpBody, error) }
MetadataServiceClient is the client API for MetadataService 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 NewMetadataServiceClient ¶
func NewMetadataServiceClient(cc grpc.ClientConnInterface) MetadataServiceClient
type MetadataServiceServer ¶
type MetadataServiceServer interface { GetConfiguration(context.Context, *emptypb.Empty) (*httpbody.HttpBody, error) GetInfo(context.Context, *emptypb.Empty) (*httpbody.HttpBody, error) // contains filtered or unexported methods }
MetadataServiceServer is the server API for MetadataService service. All implementations must embed UnimplementedMetadataServiceServer for forward compatibility
type UnimplementedMetadataServiceServer ¶
type UnimplementedMetadataServiceServer struct { }
UnimplementedMetadataServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMetadataServiceServer) GetConfiguration ¶
type UnsafeMetadataServiceServer ¶
type UnsafeMetadataServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMetadataServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MetadataServiceServer will result in compilation errors.