Documentation ¶
Index ¶
- Variables
- func RegisterOpenapiHTTPServer(container *go_restful.Container, srv OpenapiHTTPServer)
- func RegisterOpenapiServer(s grpc.ServiceRegistrar, srv OpenapiServer)
- type OpenapiClient
- type OpenapiHTTPHandler
- func (h *OpenapiHTTPHandler) AddonsIdentify(req *go_restful.Request, resp *go_restful.Response)
- func (h *OpenapiHTTPHandler) Identify(req *go_restful.Request, resp *go_restful.Response)
- func (h *OpenapiHTTPHandler) Status(req *go_restful.Request, resp *go_restful.Response)
- func (h *OpenapiHTTPHandler) TenantDisable(req *go_restful.Request, resp *go_restful.Response)
- func (h *OpenapiHTTPHandler) TenantEnable(req *go_restful.Request, resp *go_restful.Response)
- type OpenapiHTTPServer
- type OpenapiServer
- type UnimplementedOpenapiServer
- func (UnimplementedOpenapiServer) AddonsIdentify(context.Context, *v1.AddonsIdentifyRequest) (*v1.AddonsIdentifyResponse, error)
- func (UnimplementedOpenapiServer) Identify(context.Context, *emptypb.Empty) (*v1.IdentifyResponse, error)
- func (UnimplementedOpenapiServer) Status(context.Context, *emptypb.Empty) (*v1.StatusResponse, error)
- func (UnimplementedOpenapiServer) TenantDisable(context.Context, *v1.TenantDisableRequest) (*v1.TenantDisableResponse, error)
- func (UnimplementedOpenapiServer) TenantEnable(context.Context, *v1.TenantEnableRequest) (*v1.TenantEnableResponse, error)
- type UnsafeOpenapiServer
Constants ¶
This section is empty.
Variables ¶
var File_api_openapi_v1_server_proto protoreflect.FileDescriptor
var Openapi_ServiceDesc = grpc.ServiceDesc{ ServiceName: "openapi.v1.Openapi", HandlerType: (*OpenapiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Identify", Handler: _Openapi_Identify_Handler, }, { MethodName: "AddonsIdentify", Handler: _Openapi_AddonsIdentify_Handler, }, { MethodName: "TenantEnable", Handler: _Openapi_TenantEnable_Handler, }, { MethodName: "TenantDisable", Handler: _Openapi_TenantDisable_Handler, }, { MethodName: "Status", Handler: _Openapi_Status_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/openapi/v1/server.proto", }
Openapi_ServiceDesc is the grpc.ServiceDesc for Openapi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOpenapiHTTPServer ¶
func RegisterOpenapiHTTPServer(container *go_restful.Container, srv OpenapiHTTPServer)
func RegisterOpenapiServer ¶
func RegisterOpenapiServer(s grpc.ServiceRegistrar, srv OpenapiServer)
Types ¶
type OpenapiClient ¶
type OpenapiClient interface { // Query identify. // TKEEL_COMMENT // {"response":{"raw_data":true}} Identify(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*v1.IdentifyResponse, error) // Post addons identify. // TKEEL_COMMENT // { // "response" : // { // "raw_data": true // } // } AddonsIdentify(ctx context.Context, in *v1.AddonsIdentifyRequest, opts ...grpc.CallOption) (*v1.AddonsIdentifyResponse, error) // Post tenant able. // TKEEL_COMMENT // {"response":{"raw_data":true}} TenantEnable(ctx context.Context, in *v1.TenantEnableRequest, opts ...grpc.CallOption) (*v1.TenantEnableResponse, error) // Post tenant disable. // TKEEL_COMMENT // {"response":{"raw_data":true}} TenantDisable(ctx context.Context, in *v1.TenantDisableRequest, opts ...grpc.CallOption) (*v1.TenantDisableResponse, error) // Query status. // TKEEL_COMMENT // {"response":{"raw_data":true}} Status(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*v1.StatusResponse, error) }
OpenapiClient is the client API for Openapi 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 NewOpenapiClient ¶
func NewOpenapiClient(cc grpc.ClientConnInterface) OpenapiClient
type OpenapiHTTPHandler ¶
type OpenapiHTTPHandler struct {
// contains filtered or unexported fields
}
func (*OpenapiHTTPHandler) AddonsIdentify ¶
func (h *OpenapiHTTPHandler) AddonsIdentify(req *go_restful.Request, resp *go_restful.Response)
func (*OpenapiHTTPHandler) Identify ¶
func (h *OpenapiHTTPHandler) Identify(req *go_restful.Request, resp *go_restful.Response)
func (*OpenapiHTTPHandler) Status ¶
func (h *OpenapiHTTPHandler) Status(req *go_restful.Request, resp *go_restful.Response)
func (*OpenapiHTTPHandler) TenantDisable ¶ added in v0.4.0
func (h *OpenapiHTTPHandler) TenantDisable(req *go_restful.Request, resp *go_restful.Response)
func (*OpenapiHTTPHandler) TenantEnable ¶ added in v0.4.0
func (h *OpenapiHTTPHandler) TenantEnable(req *go_restful.Request, resp *go_restful.Response)
type OpenapiHTTPServer ¶
type OpenapiHTTPServer interface { AddonsIdentify(context.Context, *v1.AddonsIdentifyRequest) (*v1.AddonsIdentifyResponse, error) Identify(context.Context, *emptypb.Empty) (*v1.IdentifyResponse, error) Status(context.Context, *emptypb.Empty) (*v1.StatusResponse, error) TenantDisable(context.Context, *v1.TenantDisableRequest) (*v1.TenantDisableResponse, error) TenantEnable(context.Context, *v1.TenantEnableRequest) (*v1.TenantEnableResponse, error) }
type OpenapiServer ¶
type OpenapiServer interface { // Query identify. // TKEEL_COMMENT // {"response":{"raw_data":true}} Identify(context.Context, *emptypb.Empty) (*v1.IdentifyResponse, error) // Post addons identify. // TKEEL_COMMENT // { // "response" : // { // "raw_data": true // } // } AddonsIdentify(context.Context, *v1.AddonsIdentifyRequest) (*v1.AddonsIdentifyResponse, error) // Post tenant able. // TKEEL_COMMENT // {"response":{"raw_data":true}} TenantEnable(context.Context, *v1.TenantEnableRequest) (*v1.TenantEnableResponse, error) // Post tenant disable. // TKEEL_COMMENT // {"response":{"raw_data":true}} TenantDisable(context.Context, *v1.TenantDisableRequest) (*v1.TenantDisableResponse, error) // Query status. // TKEEL_COMMENT // {"response":{"raw_data":true}} Status(context.Context, *emptypb.Empty) (*v1.StatusResponse, error) // contains filtered or unexported methods }
OpenapiServer is the server API for Openapi service. All implementations must embed UnimplementedOpenapiServer for forward compatibility
type UnimplementedOpenapiServer ¶
type UnimplementedOpenapiServer struct { }
UnimplementedOpenapiServer must be embedded to have forward compatible implementations.
func (UnimplementedOpenapiServer) AddonsIdentify ¶
func (UnimplementedOpenapiServer) AddonsIdentify(context.Context, *v1.AddonsIdentifyRequest) (*v1.AddonsIdentifyResponse, error)
func (UnimplementedOpenapiServer) Identify ¶
func (UnimplementedOpenapiServer) Identify(context.Context, *emptypb.Empty) (*v1.IdentifyResponse, error)
func (UnimplementedOpenapiServer) Status ¶
func (UnimplementedOpenapiServer) Status(context.Context, *emptypb.Empty) (*v1.StatusResponse, error)
func (UnimplementedOpenapiServer) TenantDisable ¶ added in v0.4.0
func (UnimplementedOpenapiServer) TenantDisable(context.Context, *v1.TenantDisableRequest) (*v1.TenantDisableResponse, error)
func (UnimplementedOpenapiServer) TenantEnable ¶ added in v0.4.0
func (UnimplementedOpenapiServer) TenantEnable(context.Context, *v1.TenantEnableRequest) (*v1.TenantEnableResponse, error)
type UnsafeOpenapiServer ¶
type UnsafeOpenapiServer interface {
// contains filtered or unexported methods
}
UnsafeOpenapiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OpenapiServer will result in compilation errors.