commandService

package
v0.0.0-...-e5a474c Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "commandService.commandService",
	HandlerType: (*CommandServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _CommandService_CreateUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _CommandService_UpdateUser_Handler,
		},
		{
			MethodName: "GetUserById",
			Handler:    _CommandService_GetUserById_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user_command.proto",
}

CommandService_ServiceDesc is the grpc.ServiceDesc for CommandService 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_user_command_messages_proto protoreflect.FileDescriptor
View Source
var File_user_command_proto protoreflect.FileDescriptor

Functions

func RegisterCommandServiceServer

func RegisterCommandServiceServer(s grpc.ServiceRegistrar, srv CommandServiceServer)

Types

type CommandServiceClient

type CommandServiceClient interface {
	CreateUser(ctx context.Context, in *CreateUserReq, opts ...grpc.CallOption) (*CreateUserRes, error)
	UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*UpdateUserRes, error)
	GetUserById(ctx context.Context, in *GetUserByIdReq, opts ...grpc.CallOption) (*GetUserByIdRes, error)
}

CommandServiceClient is the client API for CommandService 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 CommandServiceServer

type CommandServiceServer interface {
	CreateUser(context.Context, *CreateUserReq) (*CreateUserRes, error)
	UpdateUser(context.Context, *UpdateUserReq) (*UpdateUserRes, error)
	GetUserById(context.Context, *GetUserByIdReq) (*GetUserByIdRes, error)
}

CommandServiceServer is the server API for CommandService service. All implementations should embed UnimplementedCommandServiceServer for forward compatibility

type CreateUserReq

type CreateUserReq struct {
	ID       string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=Email,proto3" json:"Email,omitempty"`
	Username string `protobuf:"bytes,3,opt,name=Username,proto3" json:"Username,omitempty"`
	Password string `protobuf:"bytes,4,opt,name=Password,proto3" json:"Password,omitempty"`
	Root     bool   `protobuf:"varint,5,opt,name=Root,proto3" json:"Root,omitempty"`
	Active   bool   `protobuf:"varint,6,opt,name=Active,proto3" json:"Active,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserReq) Descriptor deprecated

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

Deprecated: Use CreateUserReq.ProtoReflect.Descriptor instead.

func (*CreateUserReq) GetActive

func (x *CreateUserReq) GetActive() bool

func (*CreateUserReq) GetEmail

func (x *CreateUserReq) GetEmail() string

func (*CreateUserReq) GetID

func (x *CreateUserReq) GetID() string

func (*CreateUserReq) GetPassword

func (x *CreateUserReq) GetPassword() string

func (*CreateUserReq) GetRoot

func (x *CreateUserReq) GetRoot() bool

func (*CreateUserReq) GetUsername

func (x *CreateUserReq) GetUsername() 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 CreateUserRes

type CreateUserRes struct {
	ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRes) Descriptor deprecated

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

Deprecated: Use CreateUserRes.ProtoReflect.Descriptor instead.

func (*CreateUserRes) GetID

func (x *CreateUserRes) GetID() string

func (*CreateUserRes) ProtoMessage

func (*CreateUserRes) ProtoMessage()

func (*CreateUserRes) ProtoReflect

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

func (*CreateUserRes) Reset

func (x *CreateUserRes) Reset()

func (*CreateUserRes) String

func (x *CreateUserRes) String() string

type GetUserByIdReq

type GetUserByIdReq struct {
	ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserByIdReq) Descriptor deprecated

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

Deprecated: Use GetUserByIdReq.ProtoReflect.Descriptor instead.

func (*GetUserByIdReq) GetID

func (x *GetUserByIdReq) GetID() string

func (*GetUserByIdReq) ProtoMessage

func (*GetUserByIdReq) ProtoMessage()

func (*GetUserByIdReq) ProtoReflect

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

func (*GetUserByIdReq) Reset

func (x *GetUserByIdReq) Reset()

func (*GetUserByIdReq) String

func (x *GetUserByIdReq) String() string

type GetUserByIdRes

type GetUserByIdRes struct {
	User *User `protobuf:"bytes,1,opt,name=User,proto3" json:"User,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserByIdRes) Descriptor deprecated

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

Deprecated: Use GetUserByIdRes.ProtoReflect.Descriptor instead.

func (*GetUserByIdRes) GetUser

func (x *GetUserByIdRes) GetUser() *User

func (*GetUserByIdRes) ProtoMessage

func (*GetUserByIdRes) ProtoMessage()

func (*GetUserByIdRes) ProtoReflect

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

func (*GetUserByIdRes) Reset

func (x *GetUserByIdRes) Reset()

func (*GetUserByIdRes) String

func (x *GetUserByIdRes) String() string

type UnimplementedCommandServiceServer

type UnimplementedCommandServiceServer struct {
}

UnimplementedCommandServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedCommandServiceServer) CreateUser

func (UnimplementedCommandServiceServer) GetUserById

func (UnimplementedCommandServiceServer) UpdateUser

type UnsafeCommandServiceServer

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

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

type UpdateUserReq

type UpdateUserReq struct {
	ID       string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=Email,proto3" json:"Email,omitempty"`
	Username string `protobuf:"bytes,3,opt,name=Username,proto3" json:"Username,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserReq) Descriptor deprecated

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

Deprecated: Use UpdateUserReq.ProtoReflect.Descriptor instead.

func (*UpdateUserReq) GetEmail

func (x *UpdateUserReq) GetEmail() string

func (*UpdateUserReq) GetID

func (x *UpdateUserReq) GetID() string

func (*UpdateUserReq) GetUsername

func (x *UpdateUserReq) GetUsername() 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 UpdateUserRes

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

func (*UpdateUserRes) Descriptor deprecated

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

Deprecated: Use UpdateUserRes.ProtoReflect.Descriptor instead.

func (*UpdateUserRes) ProtoMessage

func (*UpdateUserRes) ProtoMessage()

func (*UpdateUserRes) ProtoReflect

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

func (*UpdateUserRes) Reset

func (x *UpdateUserRes) Reset()

func (*UpdateUserRes) String

func (x *UpdateUserRes) String() string

type User

type User struct {
	ID        string                 `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Email     string                 `protobuf:"bytes,2,opt,name=Email,proto3" json:"Email,omitempty"`
	Username  string                 `protobuf:"bytes,3,opt,name=Username,proto3" json:"Username,omitempty"`
	Password  string                 `protobuf:"bytes,4,opt,name=Password,proto3" json:"Password,omitempty"`
	Root      bool                   `protobuf:"varint,5,opt,name=Root,proto3" json:"Root,omitempty"`
	Active    bool                   `protobuf:"varint,6,opt,name=Active,proto3" json:"Active,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetActive

func (x *User) GetActive() bool

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamppb.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetID

func (x *User) GetID() string

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetRoot

func (x *User) GetRoot() bool

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() *timestamppb.Timestamp

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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