pb

package
v0.0.0-...-b22820e Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Auth_SignUp_FullMethodName      = "/pb.Auth/SignUp"
	Auth_SignIn_FullMethodName      = "/pb.Auth/SignIn"
	Auth_SignOut_FullMethodName     = "/pb.Auth/SignOut"
	Auth_VerifyEmail_FullMethodName = "/pb.Auth/VerifyEmail"
)

Variables

View Source
var Auth_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.Auth",
	HandlerType: (*AuthServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SignUp",
			Handler:    _Auth_SignUp_Handler,
		},
		{
			MethodName: "SignIn",
			Handler:    _Auth_SignIn_Handler,
		},
		{
			MethodName: "SignOut",
			Handler:    _Auth_SignOut_Handler,
		},
		{
			MethodName: "VerifyEmail",
			Handler:    _Auth_VerifyEmail_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "auth_service.proto",
}

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

Functions

func RegisterAuthServer

func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)

Types

type AuthClient

type AuthClient interface {
	SignUp(ctx context.Context, in *SignUpReq, opts ...grpc.CallOption) (*SignUpRes, error)
	SignIn(ctx context.Context, in *SignInReq, opts ...grpc.CallOption) (*SignInRes, error)
	SignOut(ctx context.Context, in *SignOutReq, opts ...grpc.CallOption) (*SignOutRes, error)
	VerifyEmail(ctx context.Context, in *VerifyEmailReq, opts ...grpc.CallOption) (*VerifyEmailRes, error)
}

AuthClient is the client API for Auth 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 NewAuthClient

func NewAuthClient(cc grpc.ClientConnInterface) AuthClient

type AuthServer

type AuthServer interface {
	SignUp(context.Context, *SignUpReq) (*SignUpRes, error)
	SignIn(context.Context, *SignInReq) (*SignInRes, error)
	SignOut(context.Context, *SignOutReq) (*SignOutRes, error)
	VerifyEmail(context.Context, *VerifyEmailReq) (*VerifyEmailRes, error)
	// contains filtered or unexported methods
}

AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility

type SignInReq

type SignInReq struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Code                 string   `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SignInReq) Descriptor

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

func (*SignInReq) GetCode

func (m *SignInReq) GetCode() string

func (*SignInReq) GetName

func (m *SignInReq) GetName() string

func (*SignInReq) ProtoMessage

func (*SignInReq) ProtoMessage()

func (*SignInReq) Reset

func (m *SignInReq) Reset()

func (*SignInReq) String

func (m *SignInReq) String() string

func (*SignInReq) XXX_DiscardUnknown

func (m *SignInReq) XXX_DiscardUnknown()

func (*SignInReq) XXX_Marshal

func (m *SignInReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignInReq) XXX_Merge

func (m *SignInReq) XXX_Merge(src proto.Message)

func (*SignInReq) XXX_Size

func (m *SignInReq) XXX_Size() int

func (*SignInReq) XXX_Unmarshal

func (m *SignInReq) XXX_Unmarshal(b []byte) error

type SignInRes

type SignInRes struct {
	AccessToken          string   `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SignInRes) Descriptor

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

func (*SignInRes) GetAccessToken

func (m *SignInRes) GetAccessToken() string

func (*SignInRes) ProtoMessage

func (*SignInRes) ProtoMessage()

func (*SignInRes) Reset

func (m *SignInRes) Reset()

func (*SignInRes) String

func (m *SignInRes) String() string

func (*SignInRes) XXX_DiscardUnknown

func (m *SignInRes) XXX_DiscardUnknown()

func (*SignInRes) XXX_Marshal

func (m *SignInRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignInRes) XXX_Merge

func (m *SignInRes) XXX_Merge(src proto.Message)

func (*SignInRes) XXX_Size

func (m *SignInRes) XXX_Size() int

func (*SignInRes) XXX_Unmarshal

func (m *SignInRes) XXX_Unmarshal(b []byte) error

type SignOutReq

type SignOutReq struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SignOutReq) Descriptor

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

func (*SignOutReq) ProtoMessage

func (*SignOutReq) ProtoMessage()

func (*SignOutReq) Reset

func (m *SignOutReq) Reset()

func (*SignOutReq) String

func (m *SignOutReq) String() string

func (*SignOutReq) XXX_DiscardUnknown

func (m *SignOutReq) XXX_DiscardUnknown()

func (*SignOutReq) XXX_Marshal

func (m *SignOutReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignOutReq) XXX_Merge

func (m *SignOutReq) XXX_Merge(src proto.Message)

func (*SignOutReq) XXX_Size

func (m *SignOutReq) XXX_Size() int

func (*SignOutReq) XXX_Unmarshal

func (m *SignOutReq) XXX_Unmarshal(b []byte) error

type SignOutRes

type SignOutRes struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SignOutRes) Descriptor

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

func (*SignOutRes) ProtoMessage

func (*SignOutRes) ProtoMessage()

func (*SignOutRes) Reset

func (m *SignOutRes) Reset()

func (*SignOutRes) String

func (m *SignOutRes) String() string

func (*SignOutRes) XXX_DiscardUnknown

func (m *SignOutRes) XXX_DiscardUnknown()

func (*SignOutRes) XXX_Marshal

func (m *SignOutRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignOutRes) XXX_Merge

func (m *SignOutRes) XXX_Merge(src proto.Message)

func (*SignOutRes) XXX_Size

func (m *SignOutRes) XXX_Size() int

func (*SignOutRes) XXX_Unmarshal

func (m *SignOutRes) XXX_Unmarshal(b []byte) error

type SignUpReq

type SignUpReq struct {
	User                 *User    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SignUpReq) Descriptor

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

func (*SignUpReq) GetUser

func (m *SignUpReq) GetUser() *User

func (*SignUpReq) ProtoMessage

func (*SignUpReq) ProtoMessage()

func (*SignUpReq) Reset

func (m *SignUpReq) Reset()

func (*SignUpReq) String

func (m *SignUpReq) String() string

func (*SignUpReq) XXX_DiscardUnknown

func (m *SignUpReq) XXX_DiscardUnknown()

func (*SignUpReq) XXX_Marshal

func (m *SignUpReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignUpReq) XXX_Merge

func (m *SignUpReq) XXX_Merge(src proto.Message)

func (*SignUpReq) XXX_Size

func (m *SignUpReq) XXX_Size() int

func (*SignUpReq) XXX_Unmarshal

func (m *SignUpReq) XXX_Unmarshal(b []byte) error

type SignUpRes

type SignUpRes struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SignUpRes) Descriptor

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

func (*SignUpRes) ProtoMessage

func (*SignUpRes) ProtoMessage()

func (*SignUpRes) Reset

func (m *SignUpRes) Reset()

func (*SignUpRes) String

func (m *SignUpRes) String() string

func (*SignUpRes) XXX_DiscardUnknown

func (m *SignUpRes) XXX_DiscardUnknown()

func (*SignUpRes) XXX_Marshal

func (m *SignUpRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignUpRes) XXX_Merge

func (m *SignUpRes) XXX_Merge(src proto.Message)

func (*SignUpRes) XXX_Size

func (m *SignUpRes) XXX_Size() int

func (*SignUpRes) XXX_Unmarshal

func (m *SignUpRes) XXX_Unmarshal(b []byte) error

type UnimplementedAuthServer

type UnimplementedAuthServer struct {
}

UnimplementedAuthServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServer) SignIn

func (UnimplementedAuthServer) SignOut

func (UnimplementedAuthServer) SignUp

func (UnimplementedAuthServer) VerifyEmail

type UnsafeAuthServer

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

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

type User

type User struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Code                 string   `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	FullName             string   `protobuf:"bytes,3,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	NationalCode         string   `protobuf:"bytes,4,opt,name=national_code,json=nationalCode,proto3" json:"national_code,omitempty"`
	Phones               []string `protobuf:"bytes,5,rep,name=phones,proto3" json:"phones,omitempty"`
	Emails               []string `protobuf:"bytes,6,rep,name=emails,proto3" json:"emails,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*User) Descriptor

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

func (*User) GetCode

func (m *User) GetCode() string

func (*User) GetEmails

func (m *User) GetEmails() []string

func (*User) GetFullName

func (m *User) GetFullName() string

func (*User) GetName

func (m *User) GetName() string

func (*User) GetNationalCode

func (m *User) GetNationalCode() string

func (*User) GetPhones

func (m *User) GetPhones() []string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*User) XXX_Merge

func (m *User) XXX_Merge(src proto.Message)

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

func (m *User) XXX_Unmarshal(b []byte) error

type VerifyEmailReq

type VerifyEmailReq struct {
	Email                string   `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	VerificationCode     string   `protobuf:"bytes,2,opt,name=verification_code,json=verificationCode,proto3" json:"verification_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VerifyEmailReq) Descriptor

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

func (*VerifyEmailReq) GetEmail

func (m *VerifyEmailReq) GetEmail() string

func (*VerifyEmailReq) GetVerificationCode

func (m *VerifyEmailReq) GetVerificationCode() string

func (*VerifyEmailReq) ProtoMessage

func (*VerifyEmailReq) ProtoMessage()

func (*VerifyEmailReq) Reset

func (m *VerifyEmailReq) Reset()

func (*VerifyEmailReq) String

func (m *VerifyEmailReq) String() string

func (*VerifyEmailReq) XXX_DiscardUnknown

func (m *VerifyEmailReq) XXX_DiscardUnknown()

func (*VerifyEmailReq) XXX_Marshal

func (m *VerifyEmailReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VerifyEmailReq) XXX_Merge

func (m *VerifyEmailReq) XXX_Merge(src proto.Message)

func (*VerifyEmailReq) XXX_Size

func (m *VerifyEmailReq) XXX_Size() int

func (*VerifyEmailReq) XXX_Unmarshal

func (m *VerifyEmailReq) XXX_Unmarshal(b []byte) error

type VerifyEmailRes

type VerifyEmailRes struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VerifyEmailRes) Descriptor

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

func (*VerifyEmailRes) ProtoMessage

func (*VerifyEmailRes) ProtoMessage()

func (*VerifyEmailRes) Reset

func (m *VerifyEmailRes) Reset()

func (*VerifyEmailRes) String

func (m *VerifyEmailRes) String() string

func (*VerifyEmailRes) XXX_DiscardUnknown

func (m *VerifyEmailRes) XXX_DiscardUnknown()

func (*VerifyEmailRes) XXX_Marshal

func (m *VerifyEmailRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VerifyEmailRes) XXX_Merge

func (m *VerifyEmailRes) XXX_Merge(src proto.Message)

func (*VerifyEmailRes) XXX_Size

func (m *VerifyEmailRes) XXX_Size() int

func (*VerifyEmailRes) XXX_Unmarshal

func (m *VerifyEmailRes) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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