userProto

package
v0.0.0-...-f0e6328 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_userProto_api_proto protoreflect.FileDescriptor
View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "userService.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "EditUser",
			Handler:    _UserService_EditUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UserService_DeleteUser_Handler,
		},
		{
			MethodName: "VerifyUserPassword",
			Handler:    _UserService_VerifyUserPassword_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "userProto/api.proto",
}

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

Functions

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type CreateUserRequest

type CreateUserRequest struct {
	Username       string  `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	RealName       string  `protobuf:"bytes,2,opt,name=realName,proto3" json:"realName,omitempty"`
	Pw             string  `protobuf:"bytes,3,opt,name=pw,proto3" json:"pw,omitempty"`
	Email          string  `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	OrganisationId string  `protobuf:"bytes,5,opt,name=organisationId,proto3" json:"organisationId,omitempty"`
	Description    *string `protobuf:"bytes,6,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetDescription

func (x *CreateUserRequest) GetDescription() string

func (*CreateUserRequest) GetEmail

func (x *CreateUserRequest) GetEmail() string

func (*CreateUserRequest) GetOrganisationId

func (x *CreateUserRequest) GetOrganisationId() string

func (*CreateUserRequest) GetPw

func (x *CreateUserRequest) GetPw() string

func (*CreateUserRequest) GetRealName

func (x *CreateUserRequest) GetRealName() string

func (*CreateUserRequest) GetUsername

func (x *CreateUserRequest) GetUsername() string

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type DeleteUserRequest

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

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetId

func (x *DeleteUserRequest) GetId() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

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

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type DeleteUserResponse

type DeleteUserResponse struct {
	Successful bool `protobuf:"varint,1,opt,name=successful,proto3" json:"successful,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserResponse) Descriptor deprecated

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

Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.

func (*DeleteUserResponse) GetSuccessful

func (x *DeleteUserResponse) GetSuccessful() bool

func (*DeleteUserResponse) ProtoMessage

func (*DeleteUserResponse) ProtoMessage()

func (*DeleteUserResponse) ProtoReflect

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

func (*DeleteUserResponse) Reset

func (x *DeleteUserResponse) Reset()

func (*DeleteUserResponse) String

func (x *DeleteUserResponse) String() string

type EditUserRequest

type EditUserRequest struct {
	Id             string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username       *string `protobuf:"bytes,2,opt,name=username,proto3,oneof" json:"username,omitempty"`
	RealName       *string `protobuf:"bytes,3,opt,name=realName,proto3,oneof" json:"realName,omitempty"`
	Pw             *string `protobuf:"bytes,4,opt,name=pw,proto3,oneof" json:"pw,omitempty"`
	Email          *string `protobuf:"bytes,5,opt,name=email,proto3,oneof" json:"email,omitempty"`
	OrganisationId *string `protobuf:"bytes,6,opt,name=organisationId,proto3,oneof" json:"organisationId,omitempty"`
	Description    *string `protobuf:"bytes,7,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*EditUserRequest) Descriptor deprecated

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

Deprecated: Use EditUserRequest.ProtoReflect.Descriptor instead.

func (*EditUserRequest) GetDescription

func (x *EditUserRequest) GetDescription() string

func (*EditUserRequest) GetEmail

func (x *EditUserRequest) GetEmail() string

func (*EditUserRequest) GetId

func (x *EditUserRequest) GetId() string

func (*EditUserRequest) GetOrganisationId

func (x *EditUserRequest) GetOrganisationId() string

func (*EditUserRequest) GetPw

func (x *EditUserRequest) GetPw() string

func (*EditUserRequest) GetRealName

func (x *EditUserRequest) GetRealName() string

func (*EditUserRequest) GetUsername

func (x *EditUserRequest) GetUsername() string

func (*EditUserRequest) ProtoMessage

func (*EditUserRequest) ProtoMessage()

func (*EditUserRequest) ProtoReflect

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

func (*EditUserRequest) Reset

func (x *EditUserRequest) Reset()

func (*EditUserRequest) String

func (x *EditUserRequest) String() string

type GetUserRequest

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

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetId

func (x *GetUserRequest) GetId() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) EditUser

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) VerifyUserPassword

type UnsafeUserServiceServer

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

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

type UserResponse

type UserResponse struct {
	Id             string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username       string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	RealName       string `protobuf:"bytes,3,opt,name=realName,proto3" json:"realName,omitempty"`
	Email          string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	OrganisationId string `protobuf:"bytes,5,opt,name=organisationId,proto3" json:"organisationId,omitempty"`
	Description    string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	EmailVerified  bool   `protobuf:"varint,7,opt,name=emailVerified,proto3" json:"emailVerified,omitempty"`
	// contains filtered or unexported fields
}

func (*UserResponse) Descriptor deprecated

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

Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.

func (*UserResponse) GetDescription

func (x *UserResponse) GetDescription() string

func (*UserResponse) GetEmail

func (x *UserResponse) GetEmail() string

func (*UserResponse) GetEmailVerified

func (x *UserResponse) GetEmailVerified() bool

func (*UserResponse) GetId

func (x *UserResponse) GetId() string

func (*UserResponse) GetOrganisationId

func (x *UserResponse) GetOrganisationId() string

func (*UserResponse) GetRealName

func (x *UserResponse) GetRealName() string

func (*UserResponse) GetUsername

func (x *UserResponse) GetUsername() string

func (*UserResponse) ProtoMessage

func (*UserResponse) ProtoMessage()

func (*UserResponse) ProtoReflect

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

func (*UserResponse) Reset

func (x *UserResponse) Reset()

func (*UserResponse) String

func (x *UserResponse) String() string

type UserServiceClient

type UserServiceClient interface {
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*UserResponse, error)
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*UserResponse, error)
	EditUser(ctx context.Context, in *EditUserRequest, opts ...grpc.CallOption) (*UserResponse, error)
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error)
	VerifyUserPassword(ctx context.Context, in *VerifyUserPasswordRequest, opts ...grpc.CallOption) (*UserResponse, error)
}

UserServiceClient is the client API for UserService 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 UserServiceServer

type UserServiceServer interface {
	GetUser(context.Context, *GetUserRequest) (*UserResponse, error)
	CreateUser(context.Context, *CreateUserRequest) (*UserResponse, error)
	EditUser(context.Context, *EditUserRequest) (*UserResponse, error)
	DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
	VerifyUserPassword(context.Context, *VerifyUserPasswordRequest) (*UserResponse, error)
	// contains filtered or unexported methods
}

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility

type VerifyUserPasswordRequest

type VerifyUserPasswordRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Pw       string `protobuf:"bytes,2,opt,name=pw,proto3" json:"pw,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyUserPasswordRequest) Descriptor deprecated

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

Deprecated: Use VerifyUserPasswordRequest.ProtoReflect.Descriptor instead.

func (*VerifyUserPasswordRequest) GetPw

func (x *VerifyUserPasswordRequest) GetPw() string

func (*VerifyUserPasswordRequest) GetUsername

func (x *VerifyUserPasswordRequest) GetUsername() string

func (*VerifyUserPasswordRequest) ProtoMessage

func (*VerifyUserPasswordRequest) ProtoMessage()

func (*VerifyUserPasswordRequest) ProtoReflect

func (*VerifyUserPasswordRequest) Reset

func (x *VerifyUserPasswordRequest) Reset()

func (*VerifyUserPasswordRequest) String

func (x *VerifyUserPasswordRequest) String() string

Jump to

Keyboard shortcuts

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