grpc

package
v0.0.0-...-095c751 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_profile_proto protoreflect.FileDescriptor
View Source
var Profile_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Profile",
	HandlerType: (*ProfileServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetProfile",
			Handler:    _Profile_GetProfile_Handler,
		},
		{
			MethodName: "CreateProfile",
			Handler:    _Profile_CreateProfile_Handler,
		},
		{
			MethodName: "SetProfileCity",
			Handler:    _Profile_SetProfileCity_Handler,
		},
		{
			MethodName: "SetProfilePhone",
			Handler:    _Profile_SetProfilePhone_Handler,
		},
		{
			MethodName: "EditProfile",
			Handler:    _Profile_EditProfile_Handler,
		},
		{
			MethodName: "AppendSubByIDs",
			Handler:    _Profile_AppendSubByIDs_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "profile.proto",
}

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

Functions

func RegisterProfileServer

func RegisterProfileServer(s grpc.ServiceRegistrar, srv ProfileServer)

Types

type AppendSubResponse

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

func (*AppendSubResponse) Descriptor deprecated

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

Deprecated: Use AppendSubResponse.ProtoReflect.Descriptor instead.

func (*AppendSubResponse) GetIsAppended

func (x *AppendSubResponse) GetIsAppended() bool

func (*AppendSubResponse) ProtoMessage

func (*AppendSubResponse) ProtoMessage()

func (*AppendSubResponse) ProtoReflect

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

func (*AppendSubResponse) Reset

func (x *AppendSubResponse) Reset()

func (*AppendSubResponse) String

func (x *AppendSubResponse) String() string

type EditProfileRequest

type EditProfileRequest struct {
	ID      uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	Avatar  string `protobuf:"bytes,3,opt,name=Avatar,proto3" json:"Avatar,omitempty"`
	Surname string `protobuf:"bytes,4,opt,name=Surname,proto3" json:"Surname,omitempty"`
	// contains filtered or unexported fields
}

func (*EditProfileRequest) Descriptor deprecated

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

Deprecated: Use EditProfileRequest.ProtoReflect.Descriptor instead.

func (*EditProfileRequest) GetAvatar

func (x *EditProfileRequest) GetAvatar() string

func (*EditProfileRequest) GetID

func (x *EditProfileRequest) GetID() uint64

func (*EditProfileRequest) GetName

func (x *EditProfileRequest) GetName() string

func (*EditProfileRequest) GetSurname

func (x *EditProfileRequest) GetSurname() string

func (*EditProfileRequest) ProtoMessage

func (*EditProfileRequest) ProtoMessage()

func (*EditProfileRequest) ProtoReflect

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

func (*EditProfileRequest) Reset

func (x *EditProfileRequest) Reset()

func (*EditProfileRequest) String

func (x *EditProfileRequest) String() string

type ProfileClient

type ProfileClient interface {
	GetProfile(ctx context.Context, in *ProfileIDRequest, opts ...grpc.CallOption) (*ProfileData, error)
	CreateProfile(ctx context.Context, in *ProfileIDRequest, opts ...grpc.CallOption) (*ProfileData, error)
	SetProfileCity(ctx context.Context, in *SetCityRequest, opts ...grpc.CallOption) (*ProfileData, error)
	SetProfilePhone(ctx context.Context, in *SetPhoneRequest, opts ...grpc.CallOption) (*ProfileData, error)
	EditProfile(ctx context.Context, in *EditProfileRequest, opts ...grpc.CallOption) (*ProfileData, error)
	AppendSubByIDs(ctx context.Context, in *UserIdMerchantIdRequest, opts ...grpc.CallOption) (*AppendSubResponse, error)
}

ProfileClient is the client API for Profile 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 NewProfileClient

func NewProfileClient(cc grpc.ClientConnInterface) ProfileClient

type ProfileData

type ProfileData struct {
	ID              uint64                 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	UserID          uint64                 `protobuf:"varint,2,opt,name=UserID,proto3" json:"UserID,omitempty"`
	Name            string                 `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
	Surname         string                 `protobuf:"bytes,4,opt,name=Surname,proto3" json:"Surname,omitempty"`
	CityID          uint64                 `protobuf:"varint,5,opt,name=CityID,proto3" json:"CityID,omitempty"`
	CityName        string                 `protobuf:"bytes,6,opt,name=CityName,proto3" json:"CityName,omitempty"`
	Translation     string                 `protobuf:"bytes,7,opt,name=Translation,proto3" json:"Translation,omitempty"`
	Phone           string                 `protobuf:"bytes,8,opt,name=Phone,proto3" json:"Phone,omitempty"`
	Avatar          string                 `protobuf:"bytes,9,opt,name=Avatar,proto3" json:"Avatar,omitempty"`
	RegisterTime    *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=RegisterTime,proto3" json:"RegisterTime,omitempty"`
	Rating          float32                `protobuf:"fixed32,11,opt,name=Rating,proto3" json:"Rating,omitempty"`
	ReactionsCount  float32                `protobuf:"fixed32,12,opt,name=ReactionsCount,proto3" json:"ReactionsCount,omitempty"`
	Approved        bool                   `protobuf:"varint,13,opt,name=Approved,proto3" json:"Approved,omitempty"`
	MerchantsName   string                 `protobuf:"bytes,14,opt,name=MerchantsName,proto3" json:"MerchantsName,omitempty"`
	SubersCount     int64                  `protobuf:"varint,15,opt,name=SubersCount,proto3" json:"SubersCount,omitempty"`
	SubonsCount     int64                  `protobuf:"varint,16,opt,name=SubonsCount,proto3" json:"SubonsCount,omitempty"`
	AvatarIMG       string                 `protobuf:"bytes,17,opt,name=AvatarIMG,proto3" json:"AvatarIMG,omitempty"`
	ActiveAddsCount int64                  `protobuf:"varint,18,opt,name=ActiveAddsCount,proto3" json:"ActiveAddsCount,omitempty"`
	SoldAddsCount   int64                  `protobuf:"varint,19,opt,name=SoldAddsCount,proto3" json:"SoldAddsCount,omitempty"`
	CartNum         int64                  `protobuf:"varint,20,opt,name=CartNum,proto3" json:"CartNum,omitempty"`
	FavNum          int64                  `protobuf:"varint,21,opt,name=FavNum,proto3" json:"FavNum,omitempty"`
	// contains filtered or unexported fields
}

func (*ProfileData) Descriptor deprecated

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

Deprecated: Use ProfileData.ProtoReflect.Descriptor instead.

func (*ProfileData) GetActiveAddsCount

func (x *ProfileData) GetActiveAddsCount() int64

func (*ProfileData) GetApproved

func (x *ProfileData) GetApproved() bool

func (*ProfileData) GetAvatar

func (x *ProfileData) GetAvatar() string

func (*ProfileData) GetAvatarIMG

func (x *ProfileData) GetAvatarIMG() string

func (*ProfileData) GetCartNum

func (x *ProfileData) GetCartNum() int64

func (*ProfileData) GetCityID

func (x *ProfileData) GetCityID() uint64

func (*ProfileData) GetCityName

func (x *ProfileData) GetCityName() string

func (*ProfileData) GetFavNum

func (x *ProfileData) GetFavNum() int64

func (*ProfileData) GetID

func (x *ProfileData) GetID() uint64

func (*ProfileData) GetMerchantsName

func (x *ProfileData) GetMerchantsName() string

func (*ProfileData) GetName

func (x *ProfileData) GetName() string

func (*ProfileData) GetPhone

func (x *ProfileData) GetPhone() string

func (*ProfileData) GetRating

func (x *ProfileData) GetRating() float32

func (*ProfileData) GetReactionsCount

func (x *ProfileData) GetReactionsCount() float32

func (*ProfileData) GetRegisterTime

func (x *ProfileData) GetRegisterTime() *timestamppb.Timestamp

func (*ProfileData) GetSoldAddsCount

func (x *ProfileData) GetSoldAddsCount() int64

func (*ProfileData) GetSubersCount

func (x *ProfileData) GetSubersCount() int64

func (*ProfileData) GetSubonsCount

func (x *ProfileData) GetSubonsCount() int64

func (*ProfileData) GetSurname

func (x *ProfileData) GetSurname() string

func (*ProfileData) GetTranslation

func (x *ProfileData) GetTranslation() string

func (*ProfileData) GetUserID

func (x *ProfileData) GetUserID() uint64

func (*ProfileData) ProtoMessage

func (*ProfileData) ProtoMessage()

func (*ProfileData) ProtoReflect

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

func (*ProfileData) Reset

func (x *ProfileData) Reset()

func (*ProfileData) String

func (x *ProfileData) String() string

type ProfileIDRequest

type ProfileIDRequest struct {
	ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

func (*ProfileIDRequest) Descriptor deprecated

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

Deprecated: Use ProfileIDRequest.ProtoReflect.Descriptor instead.

func (*ProfileIDRequest) GetID

func (x *ProfileIDRequest) GetID() uint64

func (*ProfileIDRequest) ProtoMessage

func (*ProfileIDRequest) ProtoMessage()

func (*ProfileIDRequest) ProtoReflect

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

func (*ProfileIDRequest) Reset

func (x *ProfileIDRequest) Reset()

func (*ProfileIDRequest) String

func (x *ProfileIDRequest) String() string

type ProfileServer

type ProfileServer interface {
	GetProfile(context.Context, *ProfileIDRequest) (*ProfileData, error)
	CreateProfile(context.Context, *ProfileIDRequest) (*ProfileData, error)
	SetProfileCity(context.Context, *SetCityRequest) (*ProfileData, error)
	SetProfilePhone(context.Context, *SetPhoneRequest) (*ProfileData, error)
	EditProfile(context.Context, *EditProfileRequest) (*ProfileData, error)
	AppendSubByIDs(context.Context, *UserIdMerchantIdRequest) (*AppendSubResponse, error)
	// contains filtered or unexported methods
}

ProfileServer is the server API for Profile service. All implementations must embed UnimplementedProfileServer for forward compatibility

type SetCityRequest

type SetCityRequest struct {
	ID          uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	CityID      uint64 `protobuf:"varint,2,opt,name=CityID,proto3" json:"CityID,omitempty"`
	CityName    string `protobuf:"bytes,3,opt,name=CityName,proto3" json:"CityName,omitempty"`
	Translation string `protobuf:"bytes,4,opt,name=Translation,proto3" json:"Translation,omitempty"`
	// contains filtered or unexported fields
}

func (*SetCityRequest) Descriptor deprecated

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

Deprecated: Use SetCityRequest.ProtoReflect.Descriptor instead.

func (*SetCityRequest) GetCityID

func (x *SetCityRequest) GetCityID() uint64

func (*SetCityRequest) GetCityName

func (x *SetCityRequest) GetCityName() string

func (*SetCityRequest) GetID

func (x *SetCityRequest) GetID() uint64

func (*SetCityRequest) GetTranslation

func (x *SetCityRequest) GetTranslation() string

func (*SetCityRequest) ProtoMessage

func (*SetCityRequest) ProtoMessage()

func (*SetCityRequest) ProtoReflect

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

func (*SetCityRequest) Reset

func (x *SetCityRequest) Reset()

func (*SetCityRequest) String

func (x *SetCityRequest) String() string

type SetPhoneRequest

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

func (*SetPhoneRequest) Descriptor deprecated

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

Deprecated: Use SetPhoneRequest.ProtoReflect.Descriptor instead.

func (*SetPhoneRequest) GetID

func (x *SetPhoneRequest) GetID() uint64

func (*SetPhoneRequest) GetPhone

func (x *SetPhoneRequest) GetPhone() string

func (*SetPhoneRequest) ProtoMessage

func (*SetPhoneRequest) ProtoMessage()

func (*SetPhoneRequest) ProtoReflect

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

func (*SetPhoneRequest) Reset

func (x *SetPhoneRequest) Reset()

func (*SetPhoneRequest) String

func (x *SetPhoneRequest) String() string

type UnimplementedProfileServer

type UnimplementedProfileServer struct {
}

UnimplementedProfileServer must be embedded to have forward compatible implementations.

func (UnimplementedProfileServer) AppendSubByIDs

func (UnimplementedProfileServer) CreateProfile

func (UnimplementedProfileServer) EditProfile

func (UnimplementedProfileServer) GetProfile

func (UnimplementedProfileServer) SetProfileCity

func (UnimplementedProfileServer) SetProfilePhone

type UnsafeProfileServer

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

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

type UserIdMerchantIdRequest

type UserIdMerchantIdRequest struct {
	UserId     uint32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	MerchantId uint32 `protobuf:"varint,2,opt,name=merchantId,proto3" json:"merchantId,omitempty"`
	// contains filtered or unexported fields
}

func (*UserIdMerchantIdRequest) Descriptor deprecated

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

Deprecated: Use UserIdMerchantIdRequest.ProtoReflect.Descriptor instead.

func (*UserIdMerchantIdRequest) GetMerchantId

func (x *UserIdMerchantIdRequest) GetMerchantId() uint32

func (*UserIdMerchantIdRequest) GetUserId

func (x *UserIdMerchantIdRequest) GetUserId() uint32

func (*UserIdMerchantIdRequest) ProtoMessage

func (*UserIdMerchantIdRequest) ProtoMessage()

func (*UserIdMerchantIdRequest) ProtoReflect

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

func (*UserIdMerchantIdRequest) Reset

func (x *UserIdMerchantIdRequest) Reset()

func (*UserIdMerchantIdRequest) String

func (x *UserIdMerchantIdRequest) String() string

Directories

Path Synopsis
Package mock_grpc is a generated GoMock package.
Package mock_grpc is a generated GoMock package.

Jump to

Keyboard shortcuts

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