Documentation
¶
Index ¶
- Variables
- func RegisterKratosDemoUserHTTPServer(s *http.Server, srv KratosDemoUserHTTPServer)
- func RegisterKratosDemoUserServer(s grpc.ServiceRegistrar, srv KratosDemoUserServer)
- type CreateKratosDemoUserReply
- func (*CreateKratosDemoUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateKratosDemoUserReply) GetUserInfo() *UserInfo
- func (*CreateKratosDemoUserReply) ProtoMessage()
- func (x *CreateKratosDemoUserReply) ProtoReflect() protoreflect.Message
- func (x *CreateKratosDemoUserReply) Reset()
- func (x *CreateKratosDemoUserReply) String() string
- type CreateKratosDemoUserRequest
- func (*CreateKratosDemoUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateKratosDemoUserRequest) GetName() string
- func (*CreateKratosDemoUserRequest) ProtoMessage()
- func (x *CreateKratosDemoUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateKratosDemoUserRequest) Reset()
- func (x *CreateKratosDemoUserRequest) String() string
- type DeleteKratosDemoUserReply
- type DeleteKratosDemoUserRequest
- func (*DeleteKratosDemoUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteKratosDemoUserRequest) GetId() int32
- func (*DeleteKratosDemoUserRequest) ProtoMessage()
- func (x *DeleteKratosDemoUserRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteKratosDemoUserRequest) Reset()
- func (x *DeleteKratosDemoUserRequest) String() string
- type GetKratosDemoUserReply
- func (*GetKratosDemoUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetKratosDemoUserReply) GetUserInfo() *UserInfo
- func (*GetKratosDemoUserReply) ProtoMessage()
- func (x *GetKratosDemoUserReply) ProtoReflect() protoreflect.Message
- func (x *GetKratosDemoUserReply) Reset()
- func (x *GetKratosDemoUserReply) String() string
- type GetKratosDemoUserRequest
- func (*GetKratosDemoUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetKratosDemoUserRequest) GetId() int32
- func (*GetKratosDemoUserRequest) ProtoMessage()
- func (x *GetKratosDemoUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetKratosDemoUserRequest) Reset()
- func (x *GetKratosDemoUserRequest) String() string
- type KratosDemoUserClient
- type KratosDemoUserHTTPClient
- type KratosDemoUserHTTPClientImpl
- type KratosDemoUserHTTPServer
- type KratosDemoUserServer
- type PingReq
- type PingRsp
- type UnimplementedKratosDemoUserServer
- func (UnimplementedKratosDemoUserServer) CreateKratosDemoUser(context.Context, *CreateKratosDemoUserRequest) (*CreateKratosDemoUserReply, error)
- func (UnimplementedKratosDemoUserServer) DeleteKratosDemoUser(context.Context, *DeleteKratosDemoUserRequest) (*DeleteKratosDemoUserReply, error)
- func (UnimplementedKratosDemoUserServer) GetKratosDemoUser(context.Context, *GetKratosDemoUserRequest) (*GetKratosDemoUserReply, error)
- func (UnimplementedKratosDemoUserServer) Ping(context.Context, *PingReq) (*PingRsp, error)
- func (UnimplementedKratosDemoUserServer) UpdateKratosDemoUser(context.Context, *UpdateKratosDemoUserRequest) (*UpdateKratosDemoUserReply, error)
- type UnsafeKratosDemoUserServer
- type UpdateKratosDemoUserReply
- type UpdateKratosDemoUserRequest
- func (*UpdateKratosDemoUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateKratosDemoUserRequest) GetUserInfo() *UserInfo
- func (*UpdateKratosDemoUserRequest) ProtoMessage()
- func (x *UpdateKratosDemoUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateKratosDemoUserRequest) Reset()
- func (x *UpdateKratosDemoUserRequest) String() string
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
var File_api_kratosdemouser_kratosDemoUser_proto protoreflect.FileDescriptor
var KratosDemoUser_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.kratosdemouser.KratosDemoUser", HandlerType: (*KratosDemoUserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateKratosDemoUser", Handler: _KratosDemoUser_CreateKratosDemoUser_Handler, }, { MethodName: "UpdateKratosDemoUser", Handler: _KratosDemoUser_UpdateKratosDemoUser_Handler, }, { MethodName: "DeleteKratosDemoUser", Handler: _KratosDemoUser_DeleteKratosDemoUser_Handler, }, { MethodName: "GetKratosDemoUser", Handler: _KratosDemoUser_GetKratosDemoUser_Handler, }, { MethodName: "Ping", Handler: _KratosDemoUser_Ping_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/kratosdemouser/kratosDemoUser.proto", }
KratosDemoUser_ServiceDesc is the grpc.ServiceDesc for KratosDemoUser service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKratosDemoUserHTTPServer ¶
func RegisterKratosDemoUserHTTPServer(s *http.Server, srv KratosDemoUserHTTPServer)
func RegisterKratosDemoUserServer ¶
func RegisterKratosDemoUserServer(s grpc.ServiceRegistrar, srv KratosDemoUserServer)
Types ¶
type CreateKratosDemoUserReply ¶
type CreateKratosDemoUserReply struct { UserInfo *UserInfo `protobuf:"bytes,1,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"` // 用户信息 // contains filtered or unexported fields }
func (*CreateKratosDemoUserReply) Descriptor
deprecated
func (*CreateKratosDemoUserReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateKratosDemoUserReply.ProtoReflect.Descriptor instead.
func (*CreateKratosDemoUserReply) GetUserInfo ¶
func (x *CreateKratosDemoUserReply) GetUserInfo() *UserInfo
func (*CreateKratosDemoUserReply) ProtoMessage ¶
func (*CreateKratosDemoUserReply) ProtoMessage()
func (*CreateKratosDemoUserReply) ProtoReflect ¶
func (x *CreateKratosDemoUserReply) ProtoReflect() protoreflect.Message
func (*CreateKratosDemoUserReply) Reset ¶
func (x *CreateKratosDemoUserReply) Reset()
func (*CreateKratosDemoUserReply) String ¶
func (x *CreateKratosDemoUserReply) String() string
type CreateKratosDemoUserRequest ¶
type CreateKratosDemoUserRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 用户名 // contains filtered or unexported fields }
func (*CreateKratosDemoUserRequest) Descriptor
deprecated
func (*CreateKratosDemoUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateKratosDemoUserRequest.ProtoReflect.Descriptor instead.
func (*CreateKratosDemoUserRequest) GetName ¶
func (x *CreateKratosDemoUserRequest) GetName() string
func (*CreateKratosDemoUserRequest) ProtoMessage ¶
func (*CreateKratosDemoUserRequest) ProtoMessage()
func (*CreateKratosDemoUserRequest) ProtoReflect ¶
func (x *CreateKratosDemoUserRequest) ProtoReflect() protoreflect.Message
func (*CreateKratosDemoUserRequest) Reset ¶
func (x *CreateKratosDemoUserRequest) Reset()
func (*CreateKratosDemoUserRequest) String ¶
func (x *CreateKratosDemoUserRequest) String() string
type DeleteKratosDemoUserReply ¶
type DeleteKratosDemoUserReply struct {
// contains filtered or unexported fields
}
func (*DeleteKratosDemoUserReply) Descriptor
deprecated
func (*DeleteKratosDemoUserReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteKratosDemoUserReply.ProtoReflect.Descriptor instead.
func (*DeleteKratosDemoUserReply) ProtoMessage ¶
func (*DeleteKratosDemoUserReply) ProtoMessage()
func (*DeleteKratosDemoUserReply) ProtoReflect ¶
func (x *DeleteKratosDemoUserReply) ProtoReflect() protoreflect.Message
func (*DeleteKratosDemoUserReply) Reset ¶
func (x *DeleteKratosDemoUserReply) Reset()
func (*DeleteKratosDemoUserReply) String ¶
func (x *DeleteKratosDemoUserReply) String() string
type DeleteKratosDemoUserRequest ¶
type DeleteKratosDemoUserRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户ID // contains filtered or unexported fields }
func (*DeleteKratosDemoUserRequest) Descriptor
deprecated
func (*DeleteKratosDemoUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteKratosDemoUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteKratosDemoUserRequest) GetId ¶
func (x *DeleteKratosDemoUserRequest) GetId() int32
func (*DeleteKratosDemoUserRequest) ProtoMessage ¶
func (*DeleteKratosDemoUserRequest) ProtoMessage()
func (*DeleteKratosDemoUserRequest) ProtoReflect ¶
func (x *DeleteKratosDemoUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteKratosDemoUserRequest) Reset ¶
func (x *DeleteKratosDemoUserRequest) Reset()
func (*DeleteKratosDemoUserRequest) String ¶
func (x *DeleteKratosDemoUserRequest) String() string
type GetKratosDemoUserReply ¶
type GetKratosDemoUserReply struct { UserInfo *UserInfo `protobuf:"bytes,1,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"` // 用户信息 // contains filtered or unexported fields }
func (*GetKratosDemoUserReply) Descriptor
deprecated
func (*GetKratosDemoUserReply) Descriptor() ([]byte, []int)
Deprecated: Use GetKratosDemoUserReply.ProtoReflect.Descriptor instead.
func (*GetKratosDemoUserReply) GetUserInfo ¶
func (x *GetKratosDemoUserReply) GetUserInfo() *UserInfo
func (*GetKratosDemoUserReply) ProtoMessage ¶
func (*GetKratosDemoUserReply) ProtoMessage()
func (*GetKratosDemoUserReply) ProtoReflect ¶
func (x *GetKratosDemoUserReply) ProtoReflect() protoreflect.Message
func (*GetKratosDemoUserReply) Reset ¶
func (x *GetKratosDemoUserReply) Reset()
func (*GetKratosDemoUserReply) String ¶
func (x *GetKratosDemoUserReply) String() string
type GetKratosDemoUserRequest ¶
type GetKratosDemoUserRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户ID // contains filtered or unexported fields }
func (*GetKratosDemoUserRequest) Descriptor
deprecated
func (*GetKratosDemoUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetKratosDemoUserRequest.ProtoReflect.Descriptor instead.
func (*GetKratosDemoUserRequest) GetId ¶
func (x *GetKratosDemoUserRequest) GetId() int32
func (*GetKratosDemoUserRequest) ProtoMessage ¶
func (*GetKratosDemoUserRequest) ProtoMessage()
func (*GetKratosDemoUserRequest) ProtoReflect ¶
func (x *GetKratosDemoUserRequest) ProtoReflect() protoreflect.Message
func (*GetKratosDemoUserRequest) Reset ¶
func (x *GetKratosDemoUserRequest) Reset()
func (*GetKratosDemoUserRequest) String ¶
func (x *GetKratosDemoUserRequest) String() string
type KratosDemoUserClient ¶
type KratosDemoUserClient interface { CreateKratosDemoUser(ctx context.Context, in *CreateKratosDemoUserRequest, opts ...grpc.CallOption) (*CreateKratosDemoUserReply, error) UpdateKratosDemoUser(ctx context.Context, in *UpdateKratosDemoUserRequest, opts ...grpc.CallOption) (*UpdateKratosDemoUserReply, error) DeleteKratosDemoUser(ctx context.Context, in *DeleteKratosDemoUserRequest, opts ...grpc.CallOption) (*DeleteKratosDemoUserReply, error) GetKratosDemoUser(ctx context.Context, in *GetKratosDemoUserRequest, opts ...grpc.CallOption) (*GetKratosDemoUserReply, error) Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PingRsp, error) }
KratosDemoUserClient is the client API for KratosDemoUser 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 NewKratosDemoUserClient ¶
func NewKratosDemoUserClient(cc grpc.ClientConnInterface) KratosDemoUserClient
type KratosDemoUserHTTPClient ¶
type KratosDemoUserHTTPClient interface {
Ping(ctx context.Context, req *PingReq, opts ...http.CallOption) (rsp *PingRsp, err error)
}
func NewKratosDemoUserHTTPClient ¶
func NewKratosDemoUserHTTPClient(client *http.Client) KratosDemoUserHTTPClient
type KratosDemoUserHTTPClientImpl ¶
type KratosDemoUserHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*KratosDemoUserHTTPClientImpl) Ping ¶
func (c *KratosDemoUserHTTPClientImpl) Ping(ctx context.Context, in *PingReq, opts ...http.CallOption) (*PingRsp, error)
type KratosDemoUserServer ¶
type KratosDemoUserServer interface { CreateKratosDemoUser(context.Context, *CreateKratosDemoUserRequest) (*CreateKratosDemoUserReply, error) UpdateKratosDemoUser(context.Context, *UpdateKratosDemoUserRequest) (*UpdateKratosDemoUserReply, error) DeleteKratosDemoUser(context.Context, *DeleteKratosDemoUserRequest) (*DeleteKratosDemoUserReply, error) GetKratosDemoUser(context.Context, *GetKratosDemoUserRequest) (*GetKratosDemoUserReply, error) Ping(context.Context, *PingReq) (*PingRsp, error) // contains filtered or unexported methods }
KratosDemoUserServer is the server API for KratosDemoUser service. All implementations must embed UnimplementedKratosDemoUserServer for forward compatibility
type PingReq ¶
type PingReq struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*PingReq) Descriptor
deprecated
func (*PingReq) ProtoMessage ¶
func (*PingReq) ProtoMessage()
func (*PingReq) ProtoReflect ¶
func (x *PingReq) ProtoReflect() protoreflect.Message
type PingRsp ¶
type PingRsp struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*PingRsp) Descriptor
deprecated
func (*PingRsp) ProtoMessage ¶
func (*PingRsp) ProtoMessage()
func (*PingRsp) ProtoReflect ¶
func (x *PingRsp) ProtoReflect() protoreflect.Message
type UnimplementedKratosDemoUserServer ¶
type UnimplementedKratosDemoUserServer struct { }
UnimplementedKratosDemoUserServer must be embedded to have forward compatible implementations.
func (UnimplementedKratosDemoUserServer) CreateKratosDemoUser ¶
func (UnimplementedKratosDemoUserServer) CreateKratosDemoUser(context.Context, *CreateKratosDemoUserRequest) (*CreateKratosDemoUserReply, error)
func (UnimplementedKratosDemoUserServer) DeleteKratosDemoUser ¶
func (UnimplementedKratosDemoUserServer) DeleteKratosDemoUser(context.Context, *DeleteKratosDemoUserRequest) (*DeleteKratosDemoUserReply, error)
func (UnimplementedKratosDemoUserServer) GetKratosDemoUser ¶
func (UnimplementedKratosDemoUserServer) GetKratosDemoUser(context.Context, *GetKratosDemoUserRequest) (*GetKratosDemoUserReply, error)
func (UnimplementedKratosDemoUserServer) UpdateKratosDemoUser ¶
func (UnimplementedKratosDemoUserServer) UpdateKratosDemoUser(context.Context, *UpdateKratosDemoUserRequest) (*UpdateKratosDemoUserReply, error)
type UnsafeKratosDemoUserServer ¶
type UnsafeKratosDemoUserServer interface {
// contains filtered or unexported methods
}
UnsafeKratosDemoUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KratosDemoUserServer will result in compilation errors.
type UpdateKratosDemoUserReply ¶
type UpdateKratosDemoUserReply struct {
// contains filtered or unexported fields
}
func (*UpdateKratosDemoUserReply) Descriptor
deprecated
func (*UpdateKratosDemoUserReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateKratosDemoUserReply.ProtoReflect.Descriptor instead.
func (*UpdateKratosDemoUserReply) ProtoMessage ¶
func (*UpdateKratosDemoUserReply) ProtoMessage()
func (*UpdateKratosDemoUserReply) ProtoReflect ¶
func (x *UpdateKratosDemoUserReply) ProtoReflect() protoreflect.Message
func (*UpdateKratosDemoUserReply) Reset ¶
func (x *UpdateKratosDemoUserReply) Reset()
func (*UpdateKratosDemoUserReply) String ¶
func (x *UpdateKratosDemoUserReply) String() string
type UpdateKratosDemoUserRequest ¶
type UpdateKratosDemoUserRequest struct { UserInfo *UserInfo `protobuf:"bytes,1,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"` // 用户信息 // contains filtered or unexported fields }
func (*UpdateKratosDemoUserRequest) Descriptor
deprecated
func (*UpdateKratosDemoUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateKratosDemoUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateKratosDemoUserRequest) GetUserInfo ¶
func (x *UpdateKratosDemoUserRequest) GetUserInfo() *UserInfo
func (*UpdateKratosDemoUserRequest) ProtoMessage ¶
func (*UpdateKratosDemoUserRequest) ProtoMessage()
func (*UpdateKratosDemoUserRequest) ProtoReflect ¶
func (x *UpdateKratosDemoUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateKratosDemoUserRequest) Reset ¶
func (x *UpdateKratosDemoUserRequest) Reset()
func (*UpdateKratosDemoUserRequest) String ¶
func (x *UpdateKratosDemoUserRequest) String() string
type UserInfo ¶
type UserInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 用户名 Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // 用户ID // contains filtered or unexported fields }
func (*UserInfo) Descriptor
deprecated
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message