Versions in this module Expand all Collapse all v1 v1.0.3 Sep 26, 2022 Changes in this version + var Code_name = map[int32]string + var Code_value = map[string]int32 + var File_proto_api_api_proto protoreflect.FileDescriptor + var SimpleAPI_ServiceDesc = grpc.ServiceDesc + func RegisterSimpleAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterSimpleAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SimpleAPIClient) error + func RegisterSimpleAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterSimpleAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SimpleAPIServer) error + func RegisterSimpleAPIServer(s grpc.ServiceRegistrar, srv SimpleAPIServer) + type Code int32 + const Code_InternalError + const Code_OK + func (Code) Descriptor() protoreflect.EnumDescriptor + func (Code) EnumDescriptor() ([]byte, []int) + func (Code) Type() protoreflect.EnumType + func (x Code) Enum() *Code + func (x Code) Number() protoreflect.EnumNumber + func (x Code) String() string + type CreateSessionReq struct + ConfigType simple_interface.ConfigType + CustomOpt string + Name string + Opt *simple_interface.Option + Proto string + func (*CreateSessionReq) Descriptor() ([]byte, []int) + func (*CreateSessionReq) ProtoMessage() + func (x *CreateSessionReq) GetConfigType() simple_interface.ConfigType + func (x *CreateSessionReq) GetCustomOpt() string + func (x *CreateSessionReq) GetName() string + func (x *CreateSessionReq) GetOpt() *simple_interface.Option + func (x *CreateSessionReq) GetProto() string + func (x *CreateSessionReq) ProtoReflect() protoreflect.Message + func (x *CreateSessionReq) Reset() + func (x *CreateSessionReq) String() string + type CreateSessionRsp struct + Code Code + Config string + ConfigType simple_interface.ConfigType + ID string + Msg string + Proto string + func (*CreateSessionRsp) Descriptor() ([]byte, []int) + func (*CreateSessionRsp) ProtoMessage() + func (x *CreateSessionRsp) GetCode() Code + func (x *CreateSessionRsp) GetConfig() string + func (x *CreateSessionRsp) GetConfigType() simple_interface.ConfigType + func (x *CreateSessionRsp) GetID() string + func (x *CreateSessionRsp) GetMsg() string + func (x *CreateSessionRsp) GetProto() string + func (x *CreateSessionRsp) ProtoReflect() protoreflect.Message + func (x *CreateSessionRsp) Reset() + func (x *CreateSessionRsp) String() string + type DeleteSessionReq struct + IDorName string + func (*DeleteSessionReq) Descriptor() ([]byte, []int) + func (*DeleteSessionReq) ProtoMessage() + func (x *DeleteSessionReq) GetIDorName() string + func (x *DeleteSessionReq) ProtoReflect() protoreflect.Message + func (x *DeleteSessionReq) Reset() + func (x *DeleteSessionReq) String() string + type DeleteSessionRsp struct + Code Code + Msg string + func (*DeleteSessionRsp) Descriptor() ([]byte, []int) + func (*DeleteSessionRsp) ProtoMessage() + func (x *DeleteSessionRsp) GetCode() Code + func (x *DeleteSessionRsp) GetMsg() string + func (x *DeleteSessionRsp) ProtoReflect() protoreflect.Message + func (x *DeleteSessionRsp) Reset() + func (x *DeleteSessionRsp) String() string + type GetAllSessionsReq struct + func (*GetAllSessionsReq) Descriptor() ([]byte, []int) + func (*GetAllSessionsReq) ProtoMessage() + func (x *GetAllSessionsReq) ProtoReflect() protoreflect.Message + func (x *GetAllSessionsReq) Reset() + func (x *GetAllSessionsReq) String() string + type GetAllSessionsRsp struct + Code Code + Msg string + Sessions []*Session + func (*GetAllSessionsRsp) Descriptor() ([]byte, []int) + func (*GetAllSessionsRsp) ProtoMessage() + func (x *GetAllSessionsRsp) GetCode() Code + func (x *GetAllSessionsRsp) GetMsg() string + func (x *GetAllSessionsRsp) GetSessions() []*Session + func (x *GetAllSessionsRsp) ProtoReflect() protoreflect.Message + func (x *GetAllSessionsRsp) Reset() + func (x *GetAllSessionsRsp) String() string + type GetProtosReq struct + func (*GetProtosReq) Descriptor() ([]byte, []int) + func (*GetProtosReq) ProtoMessage() + func (x *GetProtosReq) ProtoReflect() protoreflect.Message + func (x *GetProtosReq) Reset() + func (x *GetProtosReq) String() string + type GetProtosRsp struct + Code Code + Msg string + Protos []string + func (*GetProtosRsp) Descriptor() ([]byte, []int) + func (*GetProtosRsp) ProtoMessage() + func (x *GetProtosRsp) GetCode() Code + func (x *GetProtosRsp) GetMsg() string + func (x *GetProtosRsp) GetProtos() []string + func (x *GetProtosRsp) ProtoReflect() protoreflect.Message + func (x *GetProtosRsp) Reset() + func (x *GetProtosRsp) String() string + type GetSchemaReq struct + func (*GetSchemaReq) Descriptor() ([]byte, []int) + func (*GetSchemaReq) ProtoMessage() + func (x *GetSchemaReq) ProtoReflect() protoreflect.Message + func (x *GetSchemaReq) Reset() + func (x *GetSchemaReq) String() string + type GetSchemaRsp struct + Code Code + Msg string + Schemas map[string]*Schema + func (*GetSchemaRsp) Descriptor() ([]byte, []int) + func (*GetSchemaRsp) ProtoMessage() + func (x *GetSchemaRsp) GetCode() Code + func (x *GetSchemaRsp) GetMsg() string + func (x *GetSchemaRsp) GetSchemas() map[string]*Schema + func (x *GetSchemaRsp) ProtoReflect() protoreflect.Message + func (x *GetSchemaRsp) Reset() + func (x *GetSchemaRsp) String() string + type GetSessionReq struct + IDorName string + func (*GetSessionReq) Descriptor() ([]byte, []int) + func (*GetSessionReq) ProtoMessage() + func (x *GetSessionReq) GetIDorName() string + func (x *GetSessionReq) ProtoReflect() protoreflect.Message + func (x *GetSessionReq) Reset() + func (x *GetSessionReq) String() string + type GetSessionRsp struct + Code Code + Msg string + Session *Session + func (*GetSessionRsp) Descriptor() ([]byte, []int) + func (*GetSessionRsp) ProtoMessage() + func (x *GetSessionRsp) GetCode() Code + func (x *GetSessionRsp) GetMsg() string + func (x *GetSessionRsp) GetSession() *Session + func (x *GetSessionRsp) ProtoReflect() protoreflect.Message + func (x *GetSessionRsp) Reset() + func (x *GetSessionRsp) String() string + type Schema struct + Fields []*simple_interface.Field + Proto string + func (*Schema) Descriptor() ([]byte, []int) + func (*Schema) ProtoMessage() + func (x *Schema) GetFields() []*simple_interface.Field + func (x *Schema) GetProto() string + func (x *Schema) ProtoReflect() protoreflect.Message + func (x *Schema) Reset() + func (x *Schema) String() string + type Session struct + Config string + ConfigType simple_interface.ConfigType + ID string + Name string + Opt *simple_interface.Option + Proto string + func (*Session) Descriptor() ([]byte, []int) + func (*Session) ProtoMessage() + func (x *Session) GetConfig() string + func (x *Session) GetConfigType() simple_interface.ConfigType + func (x *Session) GetID() string + func (x *Session) GetName() string + func (x *Session) GetOpt() *simple_interface.Option + func (x *Session) GetProto() string + func (x *Session) ProtoReflect() protoreflect.Message + func (x *Session) Reset() + func (x *Session) String() string + type SimpleAPIClient interface + CreateSession func(ctx context.Context, in *CreateSessionReq, opts ...grpc.CallOption) (*CreateSessionRsp, error) + DeleteSession func(ctx context.Context, in *DeleteSessionReq, opts ...grpc.CallOption) (*DeleteSessionRsp, error) + GetAllSessions func(ctx context.Context, in *GetAllSessionsReq, opts ...grpc.CallOption) (*GetAllSessionsRsp, error) + GetProtos func(ctx context.Context, in *GetProtosReq, opts ...grpc.CallOption) (*GetProtosRsp, error) + GetSchema func(ctx context.Context, in *GetSchemaReq, opts ...grpc.CallOption) (*GetSchemaRsp, error) + GetSession func(ctx context.Context, in *GetSessionReq, opts ...grpc.CallOption) (*GetSessionRsp, error) + func NewSimpleAPIClient(cc grpc.ClientConnInterface) SimpleAPIClient + type SimpleAPIServer interface + CreateSession func(context.Context, *CreateSessionReq) (*CreateSessionRsp, error) + DeleteSession func(context.Context, *DeleteSessionReq) (*DeleteSessionRsp, error) + GetAllSessions func(context.Context, *GetAllSessionsReq) (*GetAllSessionsRsp, error) + GetProtos func(context.Context, *GetProtosReq) (*GetProtosRsp, error) + GetSchema func(context.Context, *GetSchemaReq) (*GetSchemaRsp, error) + GetSession func(context.Context, *GetSessionReq) (*GetSessionRsp, error) + type UnimplementedSimpleAPIServer struct + func (UnimplementedSimpleAPIServer) CreateSession(context.Context, *CreateSessionReq) (*CreateSessionRsp, error) + func (UnimplementedSimpleAPIServer) DeleteSession(context.Context, *DeleteSessionReq) (*DeleteSessionRsp, error) + func (UnimplementedSimpleAPIServer) GetAllSessions(context.Context, *GetAllSessionsReq) (*GetAllSessionsRsp, error) + func (UnimplementedSimpleAPIServer) GetProtos(context.Context, *GetProtosReq) (*GetProtosRsp, error) + func (UnimplementedSimpleAPIServer) GetSchema(context.Context, *GetSchemaReq) (*GetSchemaRsp, error) + func (UnimplementedSimpleAPIServer) GetSession(context.Context, *GetSessionReq) (*GetSessionRsp, error) + type UnsafeSimpleAPIServer interface