Documentation
¶
Index ¶
- Variables
- func RegisterCommandServiceServer(s grpc.ServiceRegistrar, srv CommandServiceServer)
- type CommandServiceClient
- type CommandServiceServer
- type CreateUserReq
- func (*CreateUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserReq) GetActive() bool
- func (x *CreateUserReq) GetEmail() string
- func (x *CreateUserReq) GetID() string
- func (x *CreateUserReq) GetPassword() string
- func (x *CreateUserReq) GetRoot() bool
- func (x *CreateUserReq) GetUsername() string
- func (*CreateUserReq) ProtoMessage()
- func (x *CreateUserReq) ProtoReflect() protoreflect.Message
- func (x *CreateUserReq) Reset()
- func (x *CreateUserReq) String() string
- type CreateUserRes
- type GetUserByIdReq
- type GetUserByIdRes
- type UnimplementedCommandServiceServer
- func (UnimplementedCommandServiceServer) CreateUser(context.Context, *CreateUserReq) (*CreateUserRes, error)
- func (UnimplementedCommandServiceServer) GetUserById(context.Context, *GetUserByIdReq) (*GetUserByIdRes, error)
- func (UnimplementedCommandServiceServer) UpdateUser(context.Context, *UpdateUserReq) (*UpdateUserRes, error)
- type UnsafeCommandServiceServer
- type UpdateUserReq
- func (*UpdateUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserReq) GetEmail() string
- func (x *UpdateUserReq) GetID() string
- func (x *UpdateUserReq) GetUsername() string
- func (*UpdateUserReq) ProtoMessage()
- func (x *UpdateUserReq) ProtoReflect() protoreflect.Message
- func (x *UpdateUserReq) Reset()
- func (x *UpdateUserReq) String() string
- type UpdateUserRes
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetActive() bool
- func (x *User) GetCreatedAt() *timestamppb.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetID() string
- func (x *User) GetPassword() string
- func (x *User) GetRoot() bool
- func (x *User) GetUpdatedAt() *timestamppb.Timestamp
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
Constants ¶
This section is empty.
Variables ¶
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)
var File_user_command_messages_proto protoreflect.FileDescriptor
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.
func NewCommandServiceClient ¶
func NewCommandServiceClient(cc grpc.ClientConnInterface) CommandServiceClient
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) CreateUser(context.Context, *CreateUserReq) (*CreateUserRes, error)
func (UnimplementedCommandServiceServer) GetUserById ¶
func (UnimplementedCommandServiceServer) GetUserById(context.Context, *GetUserByIdReq) (*GetUserByIdRes, error)
func (UnimplementedCommandServiceServer) UpdateUser ¶
func (UnimplementedCommandServiceServer) UpdateUser(context.Context, *UpdateUserReq) (*UpdateUserRes, error)
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) GetCreatedAt ¶
func (x *User) GetCreatedAt() *timestamppb.Timestamp
func (*User) GetPassword ¶
func (*User) GetUpdatedAt ¶
func (x *User) GetUpdatedAt() *timestamppb.Timestamp
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message