kratosdemouser

package
v0.0.0-...-726c1b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_kratosdemouser_kratosDemoUser_proto protoreflect.FileDescriptor
View Source
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 (*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 (*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 (*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 (*DeleteKratosDemoUserRequest) ProtoMessage

func (*DeleteKratosDemoUserRequest) ProtoMessage()

func (*DeleteKratosDemoUserRequest) ProtoReflect

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.

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

type KratosDemoUserHTTPServer

type KratosDemoUserHTTPServer interface {
	Ping(context.Context, *PingReq) (*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) Descriptor() ([]byte, []int)

Deprecated: Use PingReq.ProtoReflect.Descriptor instead.

func (*PingReq) GetMsg

func (x *PingReq) GetMsg() string

func (*PingReq) ProtoMessage

func (*PingReq) ProtoMessage()

func (*PingReq) ProtoReflect

func (x *PingReq) ProtoReflect() protoreflect.Message

func (*PingReq) Reset

func (x *PingReq) Reset()

func (*PingReq) String

func (x *PingReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use PingRsp.ProtoReflect.Descriptor instead.

func (*PingRsp) GetMsg

func (x *PingRsp) GetMsg() string

func (*PingRsp) ProtoMessage

func (*PingRsp) ProtoMessage()

func (*PingRsp) ProtoReflect

func (x *PingRsp) ProtoReflect() protoreflect.Message

func (*PingRsp) Reset

func (x *PingRsp) Reset()

func (*PingRsp) String

func (x *PingRsp) String() string

type UnimplementedKratosDemoUserServer

type UnimplementedKratosDemoUserServer struct {
}

UnimplementedKratosDemoUserServer must be embedded to have forward compatible implementations.

func (UnimplementedKratosDemoUserServer) CreateKratosDemoUser

func (UnimplementedKratosDemoUserServer) DeleteKratosDemoUser

func (UnimplementedKratosDemoUserServer) GetKratosDemoUser

func (UnimplementedKratosDemoUserServer) Ping

func (UnimplementedKratosDemoUserServer) UpdateKratosDemoUser

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 (*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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetId

func (x *UserInfo) GetId() int32

func (*UserInfo) GetName

func (x *UserInfo) GetName() string

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

func (x *UserInfo) ProtoReflect() protoreflect.Message

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL