accountPb

package
v0.0.0-...-bd22ede Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Account_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "account.Account",
	HandlerType: (*AccountServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Info",
			Handler:    _Account_Info_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _Account_DeleteUser_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _Account_CreateUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _Account_UpdateUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "account.proto",
}

Account_ServiceDesc is the grpc.ServiceDesc for Account service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_account_proto protoreflect.FileDescriptor

Functions

func RegisterAccountServer

func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)

Types

type AccountClient

type AccountClient interface {
	Info(ctx context.Context, in *InfoReq, opts ...grpc.CallOption) (*InfoRsp, error)
	DeleteUser(ctx context.Context, in *DeleteUserReq, opts ...grpc.CallOption) (*DeleteUserRsp, error)
	CreateUser(ctx context.Context, in *CreateUserReq, opts ...grpc.CallOption) (*CreateUserRsp, error)
	UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*UpdateUserRsp, error)
}

AccountClient is the client API for Account 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 NewAccountClient

func NewAccountClient(cc grpc.ClientConnInterface) AccountClient

type AccountServer

type AccountServer interface {
	Info(context.Context, *InfoReq) (*InfoRsp, error)
	DeleteUser(context.Context, *DeleteUserReq) (*DeleteUserRsp, error)
	CreateUser(context.Context, *CreateUserReq) (*CreateUserRsp, error)
	UpdateUser(context.Context, *UpdateUserReq) (*UpdateUserRsp, error)
	// contains filtered or unexported methods
}

AccountServer is the server API for Account service. All implementations must embed UnimplementedAccountServer for forward compatibility

type CreateUserReq

type CreateUserReq struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Sex  string `protobuf:"bytes,2,opt,name=sex,proto3" json:"sex,omitempty"`
	Face string `protobuf:"bytes,3,opt,name=face,proto3" json:"face,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserReq) Descriptor deprecated

func (*CreateUserReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserReq.ProtoReflect.Descriptor instead.

func (*CreateUserReq) GetFace

func (x *CreateUserReq) GetFace() string

func (*CreateUserReq) GetName

func (x *CreateUserReq) GetName() string

func (*CreateUserReq) GetSex

func (x *CreateUserReq) GetSex() string

func (*CreateUserReq) ProtoMessage

func (*CreateUserReq) ProtoMessage()

func (*CreateUserReq) ProtoReflect

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

func (*CreateUserReq) Reset

func (x *CreateUserReq) Reset()

func (*CreateUserReq) String

func (x *CreateUserReq) String() string

type CreateUserRsp

type CreateUserRsp struct {
	Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRsp) Descriptor deprecated

func (*CreateUserRsp) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserRsp.ProtoReflect.Descriptor instead.

func (*CreateUserRsp) GetMid

func (x *CreateUserRsp) GetMid() int64

func (*CreateUserRsp) ProtoMessage

func (*CreateUserRsp) ProtoMessage()

func (*CreateUserRsp) ProtoReflect

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

func (*CreateUserRsp) Reset

func (x *CreateUserRsp) Reset()

func (*CreateUserRsp) String

func (x *CreateUserRsp) String() string

type DeleteUserReq

type DeleteUserReq struct {
	Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserReq) Descriptor deprecated

func (*DeleteUserReq) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserReq.ProtoReflect.Descriptor instead.

func (*DeleteUserReq) GetMid

func (x *DeleteUserReq) GetMid() int64

func (*DeleteUserReq) ProtoMessage

func (*DeleteUserReq) ProtoMessage()

func (*DeleteUserReq) ProtoReflect

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

func (*DeleteUserReq) Reset

func (x *DeleteUserReq) Reset()

func (*DeleteUserReq) String

func (x *DeleteUserReq) String() string

type DeleteUserRsp

type DeleteUserRsp struct {
	// contains filtered or unexported fields
}

func (*DeleteUserRsp) Descriptor deprecated

func (*DeleteUserRsp) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserRsp.ProtoReflect.Descriptor instead.

func (*DeleteUserRsp) ProtoMessage

func (*DeleteUserRsp) ProtoMessage()

func (*DeleteUserRsp) ProtoReflect

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

func (*DeleteUserRsp) Reset

func (x *DeleteUserRsp) Reset()

func (*DeleteUserRsp) String

func (x *DeleteUserRsp) String() string

type InfoReq

type InfoReq struct {
	Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
	// contains filtered or unexported fields
}

func (*InfoReq) Descriptor deprecated

func (*InfoReq) Descriptor() ([]byte, []int)

Deprecated: Use InfoReq.ProtoReflect.Descriptor instead.

func (*InfoReq) GetMid

func (x *InfoReq) GetMid() int64

func (*InfoReq) ProtoMessage

func (*InfoReq) ProtoMessage()

func (*InfoReq) ProtoReflect

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

func (*InfoReq) Reset

func (x *InfoReq) Reset()

func (*InfoReq) String

func (x *InfoReq) String() string

type InfoRsp

type InfoRsp struct {
	Mid  int64  `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Sex  string `protobuf:"bytes,3,opt,name=sex,proto3" json:"sex,omitempty"`
	Face string `protobuf:"bytes,4,opt,name=face,proto3" json:"face,omitempty"`
	// contains filtered or unexported fields
}

func (*InfoRsp) Descriptor deprecated

func (*InfoRsp) Descriptor() ([]byte, []int)

Deprecated: Use InfoRsp.ProtoReflect.Descriptor instead.

func (*InfoRsp) GetFace

func (x *InfoRsp) GetFace() string

func (*InfoRsp) GetMid

func (x *InfoRsp) GetMid() int64

func (*InfoRsp) GetName

func (x *InfoRsp) GetName() string

func (*InfoRsp) GetSex

func (x *InfoRsp) GetSex() string

func (*InfoRsp) ProtoMessage

func (*InfoRsp) ProtoMessage()

func (*InfoRsp) ProtoReflect

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

func (*InfoRsp) Reset

func (x *InfoRsp) Reset()

func (*InfoRsp) String

func (x *InfoRsp) String() string

type UnimplementedAccountServer

type UnimplementedAccountServer struct {
}

UnimplementedAccountServer must be embedded to have forward compatible implementations.

func (UnimplementedAccountServer) CreateUser

func (UnimplementedAccountServer) DeleteUser

func (UnimplementedAccountServer) Info

func (UnimplementedAccountServer) UpdateUser

type UnsafeAccountServer

type UnsafeAccountServer interface {
	// contains filtered or unexported methods
}

UnsafeAccountServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServer will result in compilation errors.

type UpdateUserReq

type UpdateUserReq struct {
	Mid  int64   `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
	Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Sex  *string `protobuf:"bytes,3,opt,name=sex,proto3,oneof" json:"sex,omitempty"`
	Face *string `protobuf:"bytes,4,opt,name=face,proto3,oneof" json:"face,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserReq) Descriptor deprecated

func (*UpdateUserReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserReq.ProtoReflect.Descriptor instead.

func (*UpdateUserReq) GetFace

func (x *UpdateUserReq) GetFace() string

func (*UpdateUserReq) GetMid

func (x *UpdateUserReq) GetMid() int64

func (*UpdateUserReq) GetName

func (x *UpdateUserReq) GetName() string

func (*UpdateUserReq) GetSex

func (x *UpdateUserReq) GetSex() string

func (*UpdateUserReq) ProtoMessage

func (*UpdateUserReq) ProtoMessage()

func (*UpdateUserReq) ProtoReflect

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

func (*UpdateUserReq) Reset

func (x *UpdateUserReq) Reset()

func (*UpdateUserReq) String

func (x *UpdateUserReq) String() string

type UpdateUserRsp

type UpdateUserRsp struct {
	// contains filtered or unexported fields
}

func (*UpdateUserRsp) Descriptor deprecated

func (*UpdateUserRsp) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserRsp.ProtoReflect.Descriptor instead.

func (*UpdateUserRsp) ProtoMessage

func (*UpdateUserRsp) ProtoMessage()

func (*UpdateUserRsp) ProtoReflect

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

func (*UpdateUserRsp) Reset

func (x *UpdateUserRsp) Reset()

func (*UpdateUserRsp) String

func (x *UpdateUserRsp) String() string

Jump to

Keyboard shortcuts

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