auth

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Authentication_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Authentication",
	HandlerType: (*AuthenticationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RegisterUser",
			Handler:    _Authentication_RegisterUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protos/auth.proto",
}

Authentication_ServiceDesc is the grpc.ServiceDesc for Authentication 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_protos_auth_proto protoreflect.FileDescriptor

Functions

func RegisterAuthenticationServer

func RegisterAuthenticationServer(s grpc.ServiceRegistrar, srv AuthenticationServer)

Types

type AuthenticationClient

type AuthenticationClient interface {
	RegisterUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*Empty, error)
}

AuthenticationClient is the client API for Authentication 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 AuthenticationServer

type AuthenticationServer interface {
	RegisterUser(context.Context, *User) (*Empty, error)
	// contains filtered or unexported methods
}

AuthenticationServer is the server API for Authentication service. All implementations must embed UnimplementedAuthenticationServer for forward compatibility

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type Server

type Server struct {
	UnimplementedAuthenticationServer
}

Server implements proto interface

func (*Server) RegisterUser

func (s *Server) RegisterUser(ctx context.Context, in *User) (_ *Empty, err error)

RegisterUser register user

type UnimplementedAuthenticationServer

type UnimplementedAuthenticationServer struct {
}

UnimplementedAuthenticationServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthenticationServer) RegisterUser

type UnsafeAuthenticationServer

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

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

type User

type User struct {
	FirstName   string `protobuf:"bytes,1,opt,name=FirstName,proto3" json:"FirstName,omitempty"`
	LastName    string `protobuf:"bytes,2,opt,name=LastName,proto3" json:"LastName,omitempty"`
	Email       string `protobuf:"bytes,3,opt,name=Email,proto3" json:"Email,omitempty"`
	Password    string `protobuf:"bytes,4,opt,name=Password,proto3" json:"Password,omitempty"`
	About       string `protobuf:"bytes,5,opt,name=About,proto3" json:"About,omitempty"`
	Avatar      string `protobuf:"bytes,6,opt,name=Avatar,proto3" json:"Avatar,omitempty"`
	PhoneNumber string `protobuf:"bytes,7,opt,name=PhoneNumber,proto3" json:"PhoneNumber,omitempty"`
	Address     string `protobuf:"bytes,8,opt,name=Address,proto3" json:"Address,omitempty"`
	City        string `protobuf:"bytes,9,opt,name=City,proto3" json:"City,omitempty"`
	Country     string `protobuf:"bytes,10,opt,name=Country,proto3" json:"Country,omitempty"`
	Gender      string `protobuf:"bytes,11,opt,name=Gender,proto3" json:"Gender,omitempty"`
	PostCode    string `protobuf:"bytes,12,opt,name=PostCode,proto3" json:"PostCode,omitempty"`
	Birthday    string `protobuf:"bytes,13,opt,name=Birthday,proto3" json:"Birthday,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAbout

func (x *User) GetAbout() string

func (*User) GetAddress

func (x *User) GetAddress() string

func (*User) GetAvatar

func (x *User) GetAvatar() string

func (*User) GetBirthday

func (x *User) GetBirthday() string

func (*User) GetCity

func (x *User) GetCity() string

func (*User) GetCountry

func (x *User) GetCountry() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetFirstName

func (x *User) GetFirstName() string

func (*User) GetGender

func (x *User) GetGender() string

func (*User) GetLastName

func (x *User) GetLastName() string

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetPhoneNumber

func (x *User) GetPhoneNumber() string

func (*User) GetPostCode

func (x *User) GetPostCode() 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